:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --of-accent: #1e40af;
  --of-soft: #eff6ff;
  --of-border: #bfdbfe;
  --mal-accent: #0c6e75;
  --mal-soft: #f0fdfa;
  --mal-border: #99f6e4;
  --accent: #1e40af;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px -8px rgba(15, 23, 42, 0.09);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --surface-muted: #1e293b;
    --ink: #f1f5f9;
    --ink-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: #263348;
    --of-accent: #60a5fa;
    --of-soft: #14223d;
    --of-border: #1e3a8a;
    --mal-accent: #2dd4bf;
    --mal-soft: #0f292e;
    --mal-border: #115e59;
    --accent: #60a5fa;
    --accent-soft: #14223d;
    --accent-border: #1e3a8a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 32px -8px rgba(0, 0, 0, 0.5);
  }
}

body[data-track="malvina"] {
  --accent: var(--mal-accent);
  --accent-soft: var(--mal-soft);
  --accent-border: var(--mal-border);
}

body[data-track="omni_forum"] {
  --accent: var(--of-accent);
  --accent-soft: var(--of-soft);
  --accent-border: var(--of-border);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
.footer-inner,
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--of-accent), var(--mal-accent));
  display: inline-block;
}

.brand-text small {
  display: inline-block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 6px;
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.1s ease;
}

nav a:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

nav a:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
}

nav a:focus-visible,
.button:focus-visible,
.button-secondary:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

nav a.nav-of::before,
nav a.nav-malvina::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

nav a.nav-of::before {
  background: var(--of-accent);
}

nav a.nav-malvina::before {
  background: var(--mal-accent);
}

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

nav a.nav-malvina:hover {
  color: var(--mal-accent);
  border-color: var(--mal-border);
}

nav a.cta {
  background: var(--surface);
  color: var(--accent) !important;
  border: 1.5px solid var(--accent-border);
  font-weight: 650;
  padding: 7px 15px;
  margin-left: 3px;
  box-shadow: var(--shadow-sm);
}

nav a.cta:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent) !important;
}

nav a[aria-current="page"] {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(30, 64, 175, 0.28);
  transform: none;
  /* Odkaz na právě otevřenou stránku: klik by ji jen znovu načetl. */
  pointer-events: none;
  cursor: default;
}

nav a.nav-of[aria-current="page"] {
  background: var(--of-accent);
  box-shadow: 0 3px 12px rgba(30, 64, 175, 0.32);
}

nav a.nav-malvina[aria-current="page"] {
  background: var(--mal-accent);
  box-shadow: 0 3px 12px rgba(12, 110, 117, 0.32);
}

nav a.cta[aria-current="page"] {
  background: var(--accent);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--accent-border), 0 4px 12px rgba(30, 64, 175, 0.28);
}

nav a.nav-of[aria-current="page"]::before,
nav a.nav-malvina[aria-current="page"]::before {
  background: #ffffff;
  transform: scale(1.15);
}

nav a[data-used="true"]:not([aria-current="page"]) {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}

.button {
  background: var(--accent);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.16s ease,
    filter 0.16s ease,
    background-color 0.16s ease;
}

@media (prefers-color-scheme: dark) {
  nav a[aria-current="page"],
  nav a.cta[aria-current="page"],
  .button {
    color: #08111f !important;
  }

  nav a.nav-of[aria-current="page"]::before,
  nav a.nav-malvina[aria-current="page"]::before {
    background: #08111f;
  }
}

.button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.26);
}

.button:active,
.button-secondary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.2);
  filter: brightness(0.95);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: var(--shadow-md);
}

.button-malvina {
  background: var(--mal-accent);
}

.button-of {
  background: var(--of-accent);
}

a.button[data-used="true"] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent), var(--shadow-md);
}

a.button-of[data-used="true"] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--of-accent), var(--shadow-md);
}

a.button-malvina[data-used="true"] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--mal-accent), var(--shadow-md);
}

a.button-secondary[data-used="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-border), var(--shadow-sm);
}

a.button[data-used="true"]::after,
a.button-secondary[data-used="true"]::after {
  content: "✓";
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1;
}

main {
  padding-top: 28px;
  padding-bottom: 56px;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0.4em 0 0.45em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin: 2.2em 0 0.6em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.32;
  margin: 1.2em 0 0.35em;
}

p,
li {
  color: var(--ink-secondary);
  max-width: 74ch;
}

strong {
  color: var(--ink);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.hero h1 {
  margin-top: 0.25em;
}

.hero .lead {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  color: var(--ink-secondary);
  max-width: 66ch;
  margin-bottom: 1.25em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.98fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 36px;
}

.media-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 36px;
}

.media-slot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.media-wide {
  margin: 26px 0 34px;
}

.media-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8fafc;
  overflow: hidden;
  isolation: isolate;
}

.media-wide .media-canvas {
  aspect-ratio: 21 / 7;
  min-height: 208px;
}

.media-canvas::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -68px;
  right: -46px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0) 68%
  );
  z-index: -1;
  pointer-events: none;
}

.media-canvas::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 66px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.36),
    rgba(255, 255, 255, 0.05)
  );
  z-index: -1;
  pointer-events: none;
}

.media-tone-cobalt .media-canvas {
  background:
    radial-gradient(circle at 84% 18%, rgba(96, 165, 250, 0.44), transparent 54%),
    linear-gradient(135deg, #0f2557 0%, #1e40af 58%, #1d4ed8 100%);
}

.media-tone-emerald .media-canvas {
  background:
    radial-gradient(circle at 82% 20%, rgba(45, 212, 191, 0.4), transparent 54%),
    linear-gradient(135deg, #0b3b42 0%, #0c6e75 56%, #0d9488 100%);
}

.media-tone-indigo .media-canvas {
  background:
    radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.36), transparent 50%),
    radial-gradient(circle at 18% 85%, rgba(45, 212, 191, 0.25), transparent 50%),
    linear-gradient(135deg, #17153b 0%, #1e3a8a 54%, #0c6e75 100%);
}

.media-tone-amber .media-canvas {
  background:
    radial-gradient(circle at 82% 22%, rgba(251, 191, 36, 0.35), transparent 54%),
    linear-gradient(135deg, #27201c 0%, #78350f 55%, #b45309 100%);
}

.media-tone-slate .media-canvas {
  background:
    radial-gradient(circle at 80% 20%, rgba(148, 163, 184, 0.32), transparent 54%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #155e75 100%);
}

.media-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc;
}

.media-scene {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #ffffff;
  max-width: 36ch;
}

.media-slot figcaption {
  padding: 12px 16px;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.media-slot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.media-wide img {
  aspect-ratio: 21 / 7;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.eyebrow-of {
  background: var(--of-soft);
  color: var(--of-accent);
  border-color: var(--of-border);
}

.eyebrow-malvina {
  background: var(--mal-soft);
  color: var(--mal-accent);
  border-color: var(--mal-border);
}

.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.12);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.35);
  margin-bottom: 12px;
}

.badge-territory {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface-muted, #f1f5f9);
  color: var(--ink-secondary, #475569);
  border: 1px solid var(--line, #cbd5e1);
  margin-left: 8px;
  vertical-align: middle;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.cta-row > p {
  display: contents;
}

.track-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 36px;
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.track-card h2,
.track-card h3 {
  margin-top: 0.55em;
}

.track-of {
  border-top: 4px solid var(--of-accent);
}

.track-malvina {
  border-top: 4px solid var(--mal-accent);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 1.2em 0 1.8em;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  margin-top: 0;
  color: var(--ink);
}

.tile p {
  margin: 0.4em 0 0;
  font-size: 0.96rem;
}

.packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin: 1.4em 0 2em;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.package-card h3 {
  margin-top: 0.35em;
}

.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
}

.arch-diagram svg {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
}

.svg-bg { fill: var(--surface-muted); stroke: var(--line); stroke-width: 1.5; }
.svg-of { fill: var(--of-soft); stroke: var(--of-accent); stroke-width: 2; }
.svg-mal { fill: var(--mal-soft); stroke: var(--mal-accent); stroke-width: 2; }
.svg-aios { fill: var(--accent-soft); stroke: var(--of-accent); stroke-width: 2; }
.svg-os { fill: var(--surface-muted); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 4; }
.svg-core { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.svg-pill-of { fill: var(--of-accent); }
.svg-pill-mal { fill: var(--mal-accent); }
.svg-pill-aios { fill: #312e81; }
.svg-pill-text { fill: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.svg-title { fill: var(--ink); font-size: 16px; font-weight: 700; }
.svg-sub { fill: var(--ink-secondary); font-size: 12.5px; }
.svg-muted { fill: var(--muted); font-size: 11.5px; }
.svg-connector { stroke: var(--muted); stroke-width: 1.75; stroke-dasharray: 5 4; fill: none; }

@media (prefers-color-scheme: dark) {
  .svg-pill-aios { fill: #818cf8; }
  .svg-pill-text { fill: #08111f; }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 2em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.honest {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  margin: 1.5em 0;
  border-radius: 0 10px 10px 0;
}

.honest p {
  margin: 0.3em 0;
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 1.4em 0 2em;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-item h3 {
  margin: 0 0 0.35em;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
}

.cta-block {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  text-align: center;
  padding: 32px 24px;
  margin-top: 38px;
  box-shadow: var(--shadow-sm);
}

.cta-block h2 {
  margin-top: 0;
}

.cta-block p {
  margin-left: auto;
  margin-right: auto;
}

.cta-block .cta-row {
  justify-content: center;
}

.qr-box {
  display: inline-block;
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 12px 0;
}

.qr-box svg {
  width: 168px;
  height: 168px;
  display: block;
}

/* Executive Briefing Bar for Top Management */
.executive-bar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #cbd5e1);
  border-left: 4px solid var(--accent, #162d64);
  border-radius: var(--radius, 8px);
  padding: 14px 18px;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
}

.executive-bar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.executive-pill {
  display: inline-block;
  background: #162d64;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 12px;
}

.executive-bar-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #0f172a);
  margin: 0;
}

.executive-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.button-brief {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #cbd5e1);
  color: var(--ink, #0f172a);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.button-brief:hover {
  background: #162d64;
  color: #ffffff;
  border-color: #162d64;
}

.package-leaflet-row {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #cbd5e1);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-leaflet-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-muted, #f8fafc);
  border: 1px solid var(--line, #cbd5e1);
  color: var(--accent, #162d64);
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-leaflet-card:hover {
  background: #162d64;
  color: #ffffff;
  border-color: #162d64;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--ink-secondary, #334155);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-share:hover {
  background: #162d64;
  color: #ffffff;
  border-color: #162d64;
}

/* Modal styles for share fallback */
.share-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-modal-backdrop.open {
  display: flex;
}

.share-modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 22px 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.share-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.share-modal-close:hover {
  color: #0f172a;
}

.share-doc-title {
  font-size: 0.92rem;
  color: #475569;
  margin: 0 0 18px 0;
  font-weight: 500;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn-copy {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}

.share-btn-copy:hover {
  background: #1e293b;
}

.share-btn-wa {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #25d366;
}

.share-btn-wa:hover {
  background: #1eb855;
}

.share-btn-mail {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.share-btn-mail:hover {
  background: #e2e8f0;
}

.share-btn-dl {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.share-btn-dl:hover {
  background: #eff6ff;
}

.share-feedback {
  margin-top: 12px;
  padding: 8px 12px;
  background: #dcfce7;
  color: #166534;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 48px;
  padding-top: 36px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0.6em 0 0;
}

.footer-col li {
  margin-bottom: 0.45em;
}

.footer-col a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-col a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer-col a[aria-current="page"]::before {
  content: "• ";
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 920px) {
  .hero-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-wide .media-canvas,
  .media-wide img {
    aspect-ratio: 16 / 9;
  }

  .header-inner {
    justify-content: center;
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .track-split,
  .media-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

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

  nav a,
  .button,
  .button-secondary {
    transition: none;
  }
}

.deployment-mock-section {
  margin: 2.5rem 0;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--of-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--of-soft);
}

.deployment-mock-section > h2,
.order-mock > h2 {
  margin-top: 0;
}

.deployment-intro,
.configuration-caption {
  color: var(--ink-secondary);
}

.deployment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.deployment-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.deployment-option[data-selected="true"] {
  border-color: var(--of-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--of-accent) 22%, transparent);
}

.deployment-option h3,
.deployment-option p {
  margin: 0;
}

.deployment-option ul {
  padding-left: 1.2em;
  margin: 0 0 8px;
}

.deployment-option .button {
  margin-top: auto;
}

.deployment-kicker {
  color: var(--of-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-placeholder {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.order-mock {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-form-grid,
.configuration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.order-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink-secondary);
  font-weight: 650;
}

.order-form-grid select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.configuration-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.configuration-panel h3,
.configuration-panel legend {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.configuration-panel ul {
  padding-left: 1.25em;
  margin-bottom: 0;
}

.optional-checks {
  display: grid;
  gap: 10px;
}

.optional-checks legend {
  padding: 0 6px;
}

.optional-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.optional-checks input {
  margin-top: 0.4em;
  accent-color: var(--of-accent);
}

.mock-order-note,
.order-summary-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.order-summary {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--of-border);
  border-radius: 10px;
  background: var(--of-soft);
}

.order-summary[hidden] {
  display: none;
}

.order-summary h4,
.order-summary h5 {
  margin: 0.7em 0 0.3em;
}

.order-summary-list {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

@media (max-width: 920px) {
  .deployment-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .order-form-grid,
  .configuration-grid {
    grid-template-columns: 1fr;
  }
}

/* Product discovery flow */
.discovery-choice-links,
.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.discovery-note {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent-border);
  color: var(--muted);
  font-size: 0.92rem;
}

.discovery-shell {
  margin: 24px 0 44px;
  padding: clamp(22px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
}

.discovery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.discovery-header h2 {
  margin: 7px 0 8px;
  max-width: 24ch;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.discovery-header p {
  margin: 0;
  max-width: 68ch;
}

.discovery-progress-area {
  margin: 0 0 28px;
}

.discovery-progress-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.discovery-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.discovery-progress-fill {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--of-accent), var(--mal-accent));
  transition: width 180ms ease;
}

.discovery-progress[data-progress-current="2"] .discovery-progress-fill { width: 40%; }
.discovery-progress[data-progress-current="3"] .discovery-progress-fill { width: 60%; }
.discovery-progress[data-progress-current="4"] .discovery-progress-fill { width: 80%; }
.discovery-progress[data-progress-current="5"] .discovery-progress-fill { width: 100%; }

.discovery-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.discovery-step > legend,
.discovery-subgroup > legend {
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.3;
}

.discovery-step > legend:focus,
.discovery-result h3:focus {
  outline: none;
}

.discovery-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.discovery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.discovery-options-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discovery-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 60px;
  padding: 14px;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.discovery-choice:hover,
.discovery-choice:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.discovery-choice[data-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.discovery-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.discovery-choice-copy {
  display: grid;
  gap: 3px;
  line-height: 1.4;
}

.discovery-choice-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.discovery-choice-copy > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.discovery-branch[hidden],
.discovery-step[hidden],
.discovery-result[hidden],
.discovery-controls [hidden] {
  display: none !important;
}

.discovery-subgroup {
  min-width: 0;
  margin: 18px 0 22px;
  padding: 0;
  border: 0;
}

.discovery-subgroup > legend {
  font-size: 1rem;
  margin-bottom: 6px;
}

.discovery-subgroup .discovery-options {
  margin-top: 8px;
  margin-bottom: 16px;
}

.discovery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.discovery-error {
  margin-top: 8px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  font-size: 0.92rem;
}

.discovery-result {
  padding: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.discovery-result h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
}

.discovery-result > p {
  margin: 0 0 14px;
  font-size: 0.92rem;
}

.discovery-summary {
  max-width: 100%;
  margin: 0;
  padding: 15px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 0.91rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.discovery-result-controls {
  align-items: flex-start;
  flex-wrap: wrap;
}

.discovery-actions {
  justify-content: flex-end;
}

.discovery-copy-status {
  min-height: 1.4em;
  margin: 10px 0 0 !important;
  color: var(--muted);
}

.discovery-noscript {
  padding: 12px 14px;
  background: var(--surface-muted);
  border-radius: 10px;
}

.discovery-copy-buffer {
  position: fixed;
  top: -1000px;
  left: -1000px;
}

@media (max-width: 700px) {
  .discovery-options,
  .discovery-options-two {
    grid-template-columns: 1fr;
  }

  .discovery-controls {
    align-items: stretch;
  }

  .discovery-controls > .button,
  .discovery-controls > .button-secondary,
  .discovery-actions > .button,
  .discovery-actions > .button-secondary {
    flex: 1 1 100%;
  }

  .discovery-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discovery-progress-fill,
  .discovery-choice {
    transition: none;
  }
}
