/* ------------------------------------------------------- */
/* Hero                                                    */
/* ------------------------------------------------------- */
.hero { position: relative; padding: 28px 0 20px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(226,231,253,.55) 0%, rgba(255,255,255,0) 65%),
    radial-gradient(700px 400px at 5% 10%, rgba(255,230,230,.4) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
}
.hero-bg svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
}
.hero-inner { position: relative; }
.btn-wrap { position: relative; display: inline-block; }
.ai-ready {
  position: absolute;
  top: -28px;
  right: -52px;
  font-family: "The Girl Next Door", cursive;
  font-size: 17px;
  color: var(--mtk-brand-red);
  transform: rotate(-8deg);
  transform-origin: left bottom;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.ai-ready::after {
  content: "";
  display: block;
  width: 20px;
  height: 18px;
  margin-top: 3px;
  margin-right: auto;
  border-right: 1.5px solid var(--mtk-brand-red);
  border-bottom: 1.5px solid var(--mtk-brand-red);
  border-radius: 0 0 6px 0;
  transform: rotate(8deg) translateX(-2px);
}
.stoerer {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  transform: rotate(3deg);
  transform-origin: 100% 50%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: var(--mtk-font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--mtk-duration-base) var(--mtk-ease);
}
.stoerer:hover { opacity: 0.7; text-decoration: none; }
.stoerer-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--mtk-fg-muted);
}
.stoerer img { height: 40px; width: auto; display: block; }
@media (max-width: 900px) { .stoerer { display: none; } }

.hero h1 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  max-width: 19ch;
}
.hero h1 .accent { color: var(--mtk-brand-red); }
  .hero h1 .no-limits { color: var(--mtk-fg-strong); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: 16px;
}
.hero-lede {
  font-family: var(--mtk-font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--mtk-fg);
  margin: 0 0 12px;
  max-width: 56ch;
}
.hero-lede strong {
  color: var(--mtk-fg-strong);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 65%, rgba(250,63,56,.18) 65%);
  padding: 0 2px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.btn-primary {
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  border: none;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease), transform var(--mtk-duration-fast) var(--mtk-ease);
}
.btn-primary:hover { background: var(--mtk-primary-90); color: var(--mtk-white); text-decoration: none; }
.btn-primary:active { transform: scale(.99); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--mtk-fg-strong);
  border: 1px solid var(--mtk-border-strong);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease), border-color var(--mtk-duration-fast) var(--mtk-ease);
}
.btn-ghost:hover { background: var(--mtk-neutral-10); border-color: var(--mtk-neutral-40); color: var(--mtk-fg-strong); text-decoration: none; }

.hero-rules {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--mtk-border);
  border-radius: 12px;
  padding: 18px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(25,31,57,.12), 0 1px 0 rgba(255,255,255,.6) inset;
}
.hero-rules-title {
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 11px;
  color: var(--mtk-fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-rules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-rules-list li {
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mtk-fg-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-rules-list li svg { width: 14px; height: 14px; color: var(--mtk-success); flex-shrink: 0; }

.hero-refs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mtk-border);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-refs-label {
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mtk-fg-muted);
  white-space: nowrap;
}
.hero-refs-label .accent { color: var(--mtk-brand-red); }
.hero-refs-list {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex: 1;
}
.hero-refs-list img {
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(0);
  transition: opacity var(--mtk-duration-base) var(--mtk-ease);
}
.hero-refs-list img:hover { opacity: 0.85; }
.hero-refs-list img.r-vienna  { height: 26px; }
.hero-refs-list img.r-db      { height: 30px; }
.hero-refs-list img.r-rbmh    { height: 34px; }
.hero-refs-list img.r-hilton  { height: 36px; }

/* ------------------------------------------------------- */
/* Try It Live                                             */
/* ------------------------------------------------------- */
.try { padding: 8px 0 96px; }
.try-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.try-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(16px, 3.5vw, 26px);
  margin: 6px 0 0;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
}
@media (max-width: 640px) {
  .try-head h2 { white-space: normal; }
}
.try-stat {
  text-align: right;
  line-height: 1.2;
}
.try-stat-num {
  font-family: var(--mtk-font-sans);
  font-size: clamp(16px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mtk-fg-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.try-stat-label {
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mtk-fg-subtle);
  margin-top: 3px;
}
.try-head-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.try-g2 img {
  display: block;
  width: 123px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(25,31,57,0.08), 0 1px 2px rgba(25,31,57,0.04);
}
.try-styles {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--mtk-neutral-10);
  border-radius: 12px;
  border: 1px solid var(--mtk-border);
}
.try-style {
  background: transparent;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--mtk-fg-muted);
  cursor: pointer;
  transition: background var(--mtk-duration-fast) var(--mtk-ease), color var(--mtk-duration-fast) var(--mtk-ease);
}
.try-style:hover { color: var(--mtk-fg-strong); }
.try-style.active {
  background: var(--mtk-white);
  color: var(--mtk-fg-strong);
  box-shadow: 0 1px 3px rgba(25,31,57,.08), 0 0 0 1px rgba(25,31,57,.06);
}

/* Full-bleed map stage */
.map-stage {
  /* Content-aligned inset: matches the .wrap left/right edge */
  --map-inset: max(32px, calc((100vw - 1240px) / 2 + 32px));
  /* Inner edge of the right gray overlay — controls align here */
  --map-right-edge: max(0px, calc(var(--map-inset) - 40px));

  position: relative;
  width: 100vw;
  height: 600px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--mtk-neutral-10);
}

/* Gray edge overlays — 20px wider than content inset */
.map-stage::before,
.map-stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: calc(var(--map-inset) - 40px);
  background: rgba(40, 41, 50, 0.10);
  z-index: 3;
  pointer-events: none;
}
.map-stage::before { left: 0; }
.map-stage::after  { right: 0; }

/* Map container fills the stage; stacked above the placeholder image below */
#try-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Static placeholder shown until initHeroMap() runs (after load/idle) — keeps
   the hero's LCP a plain cached image instead of the WebGL map/style/tiles. */
.map-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay: top-right (language dropdown) — aligned with overlay inner edge */
.map-top-right {
  position: absolute;
  top: 18px;
  right: calc(var(--map-right-edge) + 10px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
/* Overlay: top-center (style switcher + customize) */
.map-top-center {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-stage .try-styles {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(25,31,57,.18), 0 0 0 1px rgba(25,31,57,.06);
  border: none;
  opacity: 0.9;
  padding: 3px;
}
.map-stage .try-style {
  padding: 4px 10px;
  font-size: 12px;
}

/* Language dropdown — sits next to the style switcher */
.map-lang {
  position: relative;
  font-family: var(--mtk-font-sans);
  font-size: 12.5px;
  opacity: 0.9;
}
.map-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(25,31,57,.18), 0 0 0 1px rgba(25,31,57,.06);
  border-radius: 8px;
  border: none;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 12px;
  color: var(--mtk-fg-strong);
  cursor: pointer;
  height: 100%;
}
.map-lang-trigger .map-lang-caret {
  width: 12px;
  height: 12px;
  color: var(--mtk-fg-muted);
}
.map-lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(25,31,57,.22), 0 0 0 1px rgba(25,31,57,.06);
  border-radius: 10px;
  padding: 4px;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.map-lang.open .map-lang-panel { display: block; }
/* When dropdown is open, lift the whole top-right cluster above other overlays */
.map-top-right:has(.map-lang.open) { z-index: 10; }
.map-lang-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--mtk-font-sans);
  font-size: 12.5px;
  color: var(--mtk-fg-strong);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.map-lang-option:hover { background: var(--mtk-neutral-10); }
.map-lang-option.active { background: var(--mtk-primary-100); color: var(--mtk-white); }
.map-lang-option .map-lang-field {
  font-family: var(--mtk-font-mono);
  font-size: 11px;
  color: var(--mtk-fg-muted);
}
.map-lang-option.active .map-lang-field { color: rgba(255,255,255,.7); }

/* City preset buttons — horizontally centered, lifted above logo & attribution */
.map-cities {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 56px;
  z-index: 5;
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  padding: 3px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(25,31,57,.18), 0 0 0 1px rgba(25,31,57,.06);
  opacity: 0.9;
}
.map-city {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 12px;
  color: var(--mtk-fg-muted);
  cursor: pointer;
  transition: background var(--mtk-duration-fast) var(--mtk-ease), color var(--mtk-duration-fast) var(--mtk-ease);
}
.map-city:hover { color: var(--mtk-fg-strong); }
.map-city.active { background: var(--mtk-primary-100); color: var(--mtk-white); }
.map-city-icon { display: inline-flex; align-items: center; justify-content: center; }
.map-city-icon .icon { width: 14px; height: 14px; }

/* Right-middle cluster — zoom buttons vertically centered, aligned with overlay inner edge */
.map-bottom-right {
  position: absolute;
  right: calc(var(--map-right-edge) + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}
.map-customize {
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(25,31,57,.25);
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease);
}
.map-customize:hover { background: var(--mtk-primary-90); color: var(--mtk-white); text-decoration: none; }
.map-customize svg { width: 14px; height: 14px; }

.map-zoom {
  display: flex;
  flex-direction: column;
  background: var(--mtk-white);
  border-radius: 6px;
  box-shadow: var(--mtk-shadow-map);
  overflow: hidden;
}
.map-zoom button {
  width: 26px; height: 26px;
  border: none;
  background: transparent;
  color: var(--mtk-fg-strong);
  font-family: var(--mtk-font-sans);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.map-zoom button + button { border-top: 1px solid var(--mtk-border); }
.map-zoom button:hover { background: var(--mtk-neutral-10); }

/* Hide MapLibre logo entirely (bottom-left) */
.map-stage .maplibregl-ctrl-logo,
.map-stage a.maplibregl-ctrl-logo { display: none !important; }

/* Maptoolkit logo control — keep above the gray edge overlay (z-index: 3), align with overlay inner edge */
.map-stage .maptoolkit-logo-control { z-index: 4 !important; left: calc(var(--map-right-edge) + 8px) !important; }

/* Align bottom-left (logo) and bottom-right (attribution) with overlay inner edges */
.map-stage .maplibregl-ctrl-bottom-left  { left:  var(--map-right-edge); }
.map-stage .maplibregl-ctrl-bottom-right { right: var(--map-right-edge); }
.maplibregl-cooperative-gesture-screen { background: rgba(0,0,0,0.3) !important; }

/* Snippet row */
.try-snippet {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mtk-font-mono);
  font-size: 13px;
  color: var(--mtk-fg-muted);
}
.snippet-code-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-width: 0;
}
.snippet-note {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 20px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "The Girl Next Door", cursive;
  font-size: 15px;
  line-height: 1.15;
  color: var(--mtk-brand-red);
  text-align: right;
  transform: rotate(-2deg);
  transform-origin: right top;
  pointer-events: none;
}
.snippet-note::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 20px;
  margin-bottom: 4px;
  background: var(--mtk-brand-red);
  border-radius: 1px;
  transform: rotate(18deg);
  transform-origin: bottom center;
}
.try-snippet code {
  background: var(--mtk-neutral-10);
  border: 1px solid var(--mtk-border);
  color: var(--mtk-fg-strong);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mtk-font-mono);
  font-size: 12.5px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.try-snippet code .key { color: var(--mtk-primary-70); }
.try-snippet code .str { color: var(--mtk-secondary-80); }
.try-snippet button {
  background: transparent;
  border: 1px solid var(--mtk-border-strong);
  color: var(--mtk-fg-strong);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mtk-font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.try-snippet button svg { width: 13px; height: 13px; }

/* ------------------------------------------------------- */
/* License Terms                                           */
/* ------------------------------------------------------- */
.terms {
  padding: 96px 0;
  background: var(--mtk-bg-subtle);
  border-top: 1px solid var(--mtk-border);
  border-bottom: 1px solid var(--mtk-border);
}
.terms-head { margin-bottom: 56px; }
.terms-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--mtk-fg-strong);
  margin: 12px 0 16px;
  font-weight: 400;
}
.terms-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0;
}
.terms-note {
  margin-top: 20px;
  font-family: var(--mtk-font-sans);
  font-size: var(--mtk-fs-small);
  color: var(--mtk-fg-muted);
}
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.term-card {
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.term-card-num {
  font-family: var(--mtk-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--mtk-fg-subtle);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.term-card h3 {
  font-family: var(--mtk-font-sans);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.term-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.term-list li {
  font-family: var(--mtk-font-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mtk-fg);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.term-list li svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.term-list li .check { color: var(--mtk-success); }
.term-list li .cross { color: var(--mtk-fg-subtle); }
.term-list li strong { color: var(--mtk-fg-strong); font-weight: 600; }
.term-callout {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--mtk-secondary-10);
  border-radius: 8px;
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mtk-secondary-100);
}
.term-callout a {
  color: var(--mtk-secondary-100);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------- */
/* Attribution                                             */
/* ------------------------------------------------------- */
.attrib { padding: 96px 0; background: var(--mtk-white); }
.attrib-head { margin-bottom: 48px; }
.attrib-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--mtk-fg-strong);
  margin: 12px 0 16px;
  font-weight: 400;
}
.attrib-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0;
}
.attrib-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  background: var(--mtk-bg-subtle);
  border: 1px solid var(--mtk-border);
  border-radius: 14px;
  padding: 32px;
}
.attrib-showcase-figure {
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  max-width: 680px;
  width: 100%;
}
.attrib-showcase-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.attrib-showcase-body h3 {
  font-family: var(--mtk-font-sans);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.attrib-req-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
.attrib-req-list li {
  font-family: var(--mtk-font-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mtk-fg);
}
.attrib-req-list li strong {
  display: block;
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mtk-fg-strong);
  margin-bottom: 4px;
}
.attrib-req-list li code {
  font-family: var(--mtk-font-mono);
  font-size: 12.5px;
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  color: var(--mtk-fg-strong);
  padding: 1px 6px;
  border-radius: 4px;
}
.attrib-plugins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.attrib-plugin {
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  border-radius: 14px;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--mtk-duration-base) var(--mtk-ease),
              box-shadow var(--mtk-duration-base) var(--mtk-ease),
              transform var(--mtk-duration-base) var(--mtk-ease);
}
.attrib-plugin:hover {
  border-color: var(--mtk-border-strong);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transform: translateY(-1px);
  text-decoration: none;
}
.attrib-plugin-logos {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: 88px;
}
.attrib-plugin-logo { display: block; height: auto; }
.attrib-plugin-logo.maplibre { width: 88px; }
.attrib-plugin-logo.leaflet { width: 72px; }
.attrib-plugin-logo.npm { width: 42px; }
.attrib-plugin-logo.download { width: 88px; }
.attrib-plugin-divider { display: none; }
.attrib-plugin-body { flex: 1; min-width: 0; }
.attrib-plugin-name {
  font-family: var(--mtk-font-mono);
  font-size: 13px;
  color: var(--mtk-fg-strong);
  font-weight: 600;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.attrib-plugin-meta {
  font-family: var(--mtk-font-sans);
  font-size: 12.5px;
  color: var(--mtk-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.attrib-plugin-meta .arrow {
  transition: transform var(--mtk-duration-base) var(--mtk-ease);
}
.attrib-plugin:hover .attrib-plugin-meta { color: var(--mtk-fg-strong); }
.attrib-plugin:hover .attrib-plugin-meta .arrow { transform: translateX(3px); }

/* ------------------------------------------------------- */
/* Fair Use                                                */
/* ------------------------------------------------------- */
.fair { padding: 96px 0; }
.fair-head { margin-bottom: 48px; }
.fair-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--mtk-fg-strong);
  margin: 12px 0 16px;
  font-weight: 400;
}
.fair-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0;
}
.fair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fair-card {
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fair-card.registered {
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  border-color: var(--mtk-primary-100);
}
.fair-card.coming-soon { overflow: hidden; }
.fair-card.coming-soon > *:not(.coming-soon-banner) {
  opacity: 0.35;
  filter: grayscale(1);
}
.fair-card.coming-soon .fair-cta {
  pointer-events: none;
  cursor: not-allowed;
}
.coming-soon-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  font-family: var(--mtk-font-sans);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mtk-secondary-60);
  z-index: 10;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.fair-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--mtk-fg-muted);
  background: var(--mtk-neutral-10);
  align-self: flex-start;
}
.fair-card.registered .fair-card-tag {
  color: var(--mtk-secondary-30);
  background: rgba(255,255,255,.08);
}
.fair-card.registered .fair-card-tag svg { color: var(--mtk-secondary-40); }
.fair-card-tag svg { width: 12px; height: 12px; }
.fair-card h3 {
  font-family: var(--mtk-font-sans);
  font-size: 22px;
  margin: 14px 0 4px;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.fair-card.registered h3 { color: var(--mtk-white); }
.fair-card p {
  font-family: var(--mtk-font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--mtk-fg-muted);
  margin: 0 0 24px;
  max-width: 42ch;
}
.fair-card.registered p { color: rgba(255,255,255,.7); }
.fair-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.fair-metric { padding-right: 16px; }
.fair-metric + .fair-metric {
  border-left: 1px solid var(--mtk-border);
  padding-left: 24px;
  padding-right: 0;
}
.fair-card.registered .fair-metric + .fair-metric { border-left-color: rgba(255,255,255,.15); }
.fair-metric-label {
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mtk-fg-muted);
  margin-bottom: 6px;
}
.fair-card.registered .fair-metric-label { color: rgba(255,255,255,.55); }
.fair-metric-value {
  font-family: var(--mtk-font-sans);
  font-size: 44px;
  line-height: 1;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.fair-card.registered .fair-metric-value { color: var(--mtk-white); }
.fair-metric-value .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--mtk-fg-muted);
  letter-spacing: 0.02em;
}
.fair-card.registered .fair-metric-value .unit { color: rgba(255,255,255,.55); }
.fair-metric-note {
  font-family: var(--mtk-font-serif);
  font-size: 12.5px;
  color: var(--mtk-fg-muted);
  margin-top: 6px;
}
.fair-card.registered .fair-metric-note { color: rgba(255,255,255,.55); }
.fair-metric-value.boost { color: var(--mtk-secondary-40); }
.fair-metrics.single { grid-template-columns: 1fr; }
.fair-metrics-group {
  border-top: 1px solid var(--mtk-border);
  padding-top: 16px;
}
.fair-card.registered .fair-metrics-group { border-top-color: rgba(255,255,255,.15); }
.fair-metrics-group + .fair-metrics-group { margin-top: 20px; }
.fair-metrics-group-label {
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mtk-fg-strong);
  margin-bottom: 14px;
}
.fair-card.registered .fair-metrics-group-label { color: var(--mtk-white); }
.fair-card-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--mtk-primary-10);
  border: 1px solid var(--mtk-primary-20);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fair-card-note svg { width: 17px; height: 17px; margin-top: 3px; color: var(--mtk-primary-80); flex-shrink: 0; }
.fair-card-note p {
  margin: 0;
  max-width: none;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mtk-primary-100);
}
.fair-card-note strong { font-weight: 700; }
.fair-card p.fair-app-note {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--mtk-border);
  max-width: none;
  font-size: 13px;
}
.fair-card.registered p.fair-app-note { border-top-color: rgba(255,255,255,.15); }
.fair-license-note {
  margin: 32px 0 0;
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
}

/* Cloudflare data centers globe — controls-free MapLibre stage */
.cf-map-stage {
  --map-inset: max(32px, calc((100vw - 1240px) / 2 + 32px));
  --map-right-edge: max(0px, calc(var(--map-inset) - 40px));
  position: relative;
  width: 100vw;
  height: 600px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 24px;
  background: var(--mtk-neutral-10);
}
.cf-map-head { margin-top: 64px; }
.cf-map-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(16px, 3.5vw, 26px);
  margin: 0;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cf-map-stage::before,
.cf-map-stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: calc(var(--map-inset) - 40px);
  background: rgba(40, 41, 50, 0.10);
  z-index: 3;
  pointer-events: none;
}
.cf-map-stage::before { left: 0; }
.cf-map-stage::after  { right: 0; }
#cf-map { width: 100%; height: 100%; }
.cf-map-stage .maplibregl-ctrl-logo,
.cf-map-stage a.maplibregl-ctrl-logo { display: none !important; }
.cf-map-stage .maptoolkit-logo-control { z-index: 4 !important; left: calc(var(--map-right-edge) + 8px) !important; }
.cf-map-stage .maplibregl-ctrl-bottom-left  { left:  var(--map-right-edge); }
.cf-map-stage .maplibregl-ctrl-bottom-right { right: var(--map-right-edge); }
.cf-map-stage .maplibregl-marker {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  transform-origin: bottom center;
}
.cf-map-stage .maplibregl-marker > svg { transform: scale(0.6); transform-origin: bottom center; }
.cf-map-caption {
  margin: 24px 0 0;
  text-align: left;
}
.cf-map-caption h3 {
  font-family: var(--mtk-font-sans);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--mtk-fg-strong);
  font-weight: 600;
  margin: 0 0 10px;
}
.cf-map-caption p {
  font-family: var(--mtk-font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0;
}
.fair-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: var(--mtk-secondary-80); /* darker red so 14px bold white text passes WCAG AA */
  color: var(--mtk-white);
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--mtk-duration-fast) var(--mtk-ease), background var(--mtk-duration-fast) var(--mtk-ease);
  align-self: flex-start;
}
.fair-cta:hover { background: var(--mtk-secondary-90); color: var(--mtk-white); text-decoration: none; }
.fair-cta:active { transform: scale(.99); }
.fair-cta svg { width: 16px; height: 16px; }

/* ------------------------------------------------------- */
/* Comparison table                                        */
/* ------------------------------------------------------- */
.compare {
  padding: 96px 0;
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  position: relative;
  overflow: hidden;
}
.compare::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 15% 15%, rgba(64,84,165,.45) 0%, rgba(25,31,57,0) 60%),
    radial-gradient(800px 500px at 85% 85%, rgba(250,63,56,.18) 0%, rgba(25,31,57,0) 65%);
  pointer-events: none;
}
.compare .wrap { position: relative; }
.compare-head { margin-bottom: 48px; }
.compare-head .eyebrow { color: var(--mtk-secondary-40); }
.compare-head .eyebrow::before { background: var(--mtk-secondary-40); }
.compare-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--mtk-white);
  margin: 12px 0 16px;
  font-weight: 400;
}
.compare-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.compare-table-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  max-width: 600px;
  margin: 0 auto;
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mtk-font-sans);
}
table.compare-table th, table.compare-table td {
  padding: 7px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
table.compare-table tbody td.feat-cell { padding-left: 36px; }
table.compare-table tbody tr.group-head td { padding-left: 18px; }
table.compare-table thead th {
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding-top: 24px;
  padding-bottom: 22px;
  background: rgba(255,255,255,.03);
}
table.compare-table thead th .plan-name {
  display: block;
  font-family: var(--mtk-font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--mtk-white);
  margin-top: 0;
}
table.compare-table thead th .plan-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 1px;
  transition: border-color 120ms ease;
}
table.compare-table thead th .plan-name a:hover { border-bottom-color: rgba(255,255,255,.7); text-decoration: none; }
table.compare-table thead th.plan-community .plan-name { color: var(--mtk-secondary-40); }
table.compare-table thead th.plan-logo { width: 64%; padding-left: 32px; }
table.compare-table thead th.plan-logo img { height: 56px; width: auto; max-width: none; display: block; }
table.compare-table thead th.plan { width: 18%; text-align: center; }
table.compare-table tbody td {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  font-family: var(--mtk-font-serif);
}
table.compare-table tbody td.feat-cell { width: 64%; }
table.compare-table tbody td.val {
  width: 18%;
  text-align: center;
  font-family: var(--mtk-font-sans);
  font-weight: 600;
}
table.compare-table tbody td.val .yes,
table.compare-table tbody td.val .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
}
table.compare-table tbody td.val .yes { background: rgba(47,143,94,.18); color: var(--mtk-success); }
table.compare-table tbody td.val .yes svg { width: 16px; height: 16px; stroke-width: 3; }
table.compare-table tbody td.val .no { color: rgba(255,255,255,.32); }
table.compare-table tbody td.val .no::after { content: "—"; font-size: 14px; font-weight: 600; }
table.compare-table tbody td.val .text {
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
table.compare-table tbody tr.group-head td {
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.025);
  padding-top: 18px;
  padding-bottom: 12px;
}
table.compare-table tbody tr.group-head td .group-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mtk-secondary-40);
  margin-right: 10px;
  transform: translateY(-2px);
}
table.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 32px;
  gap: 14px;
}
.compare-cta-note {
  color: rgba(255,255,255,.65);
  font-family: var(--mtk-font-serif);
  font-size: 14px;
}
.btn-light {
  background: var(--mtk-white);
  color: var(--mtk-primary-100);
  border: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--mtk-font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease);
}
.btn-light:hover { background: var(--mtk-neutral-10); color: var(--mtk-primary-100); text-decoration: none; }
.btn-light svg { width: 16px; height: 16px; }

/* ------------------------------------------------------- */
/* Responsive                                              */
/* ------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .terms-grid { grid-template-columns: 1fr; }
  .fair-grid { grid-template-columns: 1fr; }
  .attrib-showcase { gap: 24px; padding: 24px; }
  .attrib-req-list { grid-template-columns: 1fr; gap: 18px; }
  .attrib-plugins { grid-template-columns: 1fr; }
  table.compare-table th, table.compare-table td { padding: 12px 16px; }
  .try-head { align-items: flex-end; }
  .map-cities { overflow-x: auto; max-width: calc(100vw - 32px); }
  .hero-rules { display: none; }
}
@media (max-width: 640px) {
  /* Hide language selector on small screens */
  .map-lang { display: none; }
  /* Shrink style switcher so all tabs fit on small screens */
  .map-stage .try-styles { gap: 2px; padding: 2px; }
  .map-stage .try-style { padding: 3px 6px; font-size: 10px; }
  /* Shrink city switcher so all presets fit on small screens */
  .map-cities { gap: 1px; padding: 2px; }
  .map-city { padding: 3px 6px; font-size: 10px; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 32px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 36px); }
  .hero h1 br { display: none; }
  .terms, .fair, .compare { padding: 64px 0; }
  .terms-head h2, .fair-head h2, .compare-head h2 { font-size: 30px; }
  .map-bottom-right .map-customize span { display: none; }

  /* Compare table: shrink header type and padding so all 3 columns fit */
  table.compare-table th, table.compare-table td { padding: 8px 8px; }
  table.compare-table thead th { padding: 16px 6px; font-size: 10px; }
  table.compare-table thead th.plan-logo { padding-left: 14px; width: 52%; }
  table.compare-table thead th.plan-logo img { height: 36px; }
  table.compare-table thead th .plan-name { font-size: 13px; letter-spacing: -0.005em; }
  table.compare-table thead th.plan { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.compare-table tbody td { font-size: 12.5px; }
  table.compare-table tbody td.feat-cell { padding-left: 14px; padding-right: 6px; width: 52%; }
  table.compare-table tbody tr.group-head td { padding-left: 14px; }
  table.compare-table tbody td.val { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.compare-table tbody td.val .yes,
  table.compare-table tbody td.val .no { width: 24px; height: 24px; }
  table.compare-table tbody td.val .yes svg { width: 14px; height: 14px; }
}
