/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero { padding: 64px 0 40px; position: relative; 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-inner { position: relative; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  margin: 0 0 24px;
}
.hero h1 .vs { color: var(--mtk-brand-red); font-style: italic; }
.hero-lede {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0 0 20px;
  max-width: 62ch;
}
.hero-lede + .hero-lede { margin-top: 0; }
.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;
}

/* ---------------------------------------------------------
   Split-screen map
   --------------------------------------------------------- */
.split {
  padding: 24px 0 96px;
}
.split-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 16px; flex-wrap: wrap;
}
.split-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(20px, 3.5vw, 26px);
  margin: 0;
  color: var(--mtk-fg-strong);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.split-head .hint {
  font-family: var(--mtk-font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mtk-fg-subtle);
  display: inline-flex; align-items: center; gap: 6px;
}
.split-head .hint svg { width: 14px; height: 14px; opacity: 0.7; }

/* Full-bleed map stage — same visual pattern as / */
.split-stage {
  --map-inset: max(32px, calc((100vw - 1240px) / 2 + 32px));
  --map-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);
  --split: 50%;
  user-select: none;
}

.split-stage::before,
.split-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;
}
.split-stage::before { left: 0; }
.split-stage::after  { right: 0; }

.split-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.split-map-right {
  clip-path: inset(0 0 0 var(--split));
  z-index: 2;
}

/* Suppress each map's own attribution + logo controls — we render our own overlay */
.split-stage .maplibregl-ctrl-bottom-left,
.split-stage .maplibregl-ctrl-bottom-right,
.split-stage .maplibregl-ctrl-logo,
.split-stage a.maplibregl-ctrl-logo { display: none !important; }

/* Slider handle */
.split-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--mtk-white);
  box-shadow: 0 0 0 1px rgba(25,31,57,.35), 0 6px 18px rgba(25,31,57,.35);
  z-index: 4;
  transform: translateX(-1px);
  cursor: ew-resize;
  touch-action: none;
}
.split-handle::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  background: var(--mtk-white);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(25,31,57,.15), 0 6px 18px rgba(25,31,57,.25);
}
.split-handle::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(to right,
      var(--mtk-fg-strong) 0, var(--mtk-fg-strong) 2px,
      transparent 2px, transparent 9px,
      var(--mtk-fg-strong) 9px, var(--mtk-fg-strong) 11px,
      transparent 11px, transparent 18px,
      var(--mtk-fg-strong) 18px, var(--mtk-fg-strong) 20px);
  border-radius: 2px;
}

/* Style switcher pills at the top corners */
.split-switch {
  position: absolute;
  top: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(25,31,57,.18), 0 0 0 1px rgba(25,31,57,.06);
  font-family: var(--mtk-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--mtk-fg-strong);
}
.split-switch.left  { left:  calc(var(--map-edge) + 12px); }
.split-switch.right { right: calc(var(--map-edge) + 12px); }
.split-switch .switch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mtk-brand-red);
  flex-shrink: 0;
}
.split-switch .switch-provider {
  color: var(--mtk-fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.split-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 2px 22px 2px 4px;
  font-family: var(--mtk-font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--mtk-fg-strong);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23656776' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 12px;
  border-radius: 999px;
}
.split-switch select:focus-visible {
  outline: 2px solid var(--mtk-primary-70);
  outline-offset: 2px;
}

/* Attribution layers — each clipped to its map's visible half.
   Positioning mirrors two standalone maps overlaid: each map's
   attribution belongs to its own container, so the slider naturally
   covers/uncovers them as it moves. */
.attrib-layer {
  position: absolute;
  top: 0; bottom: 0;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}
.attrib-layer.left  { left: 0;               right: calc(100% - var(--split)); }
.attrib-layer.right { left: var(--split);    right: 0; }
.attrib-layer > * { pointer-events: auto; }

.attrib-copy {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  font-family: var(--mtk-font-sans);
  font-size: 11px;
  color: var(--mtk-fg-strong);
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(25,31,57,.06);
  white-space: nowrap;
}
.attrib-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* MTK copy: right edge of MTK's visible area (next to slider on left side) */
.attrib-layer.left .attrib-copy { right: 8px; }

/* MTK logo: left edge of container, past the left gray overlay */
.attrib-logo-left {
  position: absolute;
  bottom: 10px;
  left: calc(var(--map-edge) + 8px);
  display: block;
}
.attrib-logo-left img { height: 24px; width: auto; display: block; }

/* Provider copy: left edge of its visible area (next to slider on right side) */
.attrib-layer.right .attrib-copy { left: 8px; }

.split-tiles { padding-top: 72px; padding-bottom: 24px; }
@media (max-width: 640px) { .split-tiles { padding-top: 48px; } }

/* Zoom control — right side, vertically centered, same as / */
.split-zoom {
  position: absolute;
  right: calc(var(--map-edge) + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex; flex-direction: column;
  background: var(--mtk-white);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(25,31,57,.15), 0 0 0 1px rgba(25,31,57,.06);
  overflow: hidden;
  opacity: 0.9;
}
.split-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;
}
.split-zoom button + button { border-top: 1px solid var(--mtk-border); }
.split-zoom button:hover { background: var(--mtk-neutral-10); }

.split-caption {
  margin-top: 20px;
  font-family: var(--mtk-font-serif);
  font-size: 14.5px;
  color: var(--mtk-fg-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Comparison table — light, inline with page flow
   --------------------------------------------------------- */
.compare {
  padding: 32px 0 16px;
  background: var(--mtk-bg);
  color: var(--mtk-fg);
}
.compare-head { margin-bottom: 28px; }
.compare-head .eyebrow { color: var(--mtk-fg-accent-text); }
.compare-head .eyebrow::before { background: var(--mtk-brand-red); }
.compare-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(20px, 3.5vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--mtk-fg-strong);
  margin: 8px 0 8px;
  font-weight: 400;
}
.compare-head p {
  font-family: var(--mtk-font-serif);
  font-size: 15px; line-height: 1.6;
  color: var(--mtk-fg-muted);
  margin: 0;
}
.compare-table-wrap {
  overflow-x: auto;
}
table.compare-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
  font-family: var(--mtk-font-sans);
}
table.compare-table th, table.compare-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--mtk-border);
}
table.compare-table thead th {
  font-family: var(--mtk-font-sans);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mtk-fg-subtle);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 2px solid var(--mtk-border-strong);
  text-align: center;
}
table.compare-table thead th.feat { text-align: left; padding-left: 0; }

/* Highlight the two columns this page is actually about (Maptoolkit +
   OpenMapTiles) so they read as a group against the extra reference
   columns (Protomaps / OpenFreeMap / VersaTiles). */
table.compare-table th.col-highlight,
table.compare-table td.col-highlight {
  background: rgba(83, 106, 198, .05);
}
table.compare-table tbody tr:hover td.col-highlight { background: rgba(83, 106, 198, .09); }
table.compare-table th.col-highlight-start,
table.compare-table td.col-highlight-start {
  border-left: 2px solid var(--mtk-primary-50);
}
table.compare-table th.col-highlight-end,
table.compare-table td.col-highlight-end {
  border-right: 2px solid var(--mtk-primary-50);
}
table.compare-table thead th.col-highlight { border-top: 2px solid var(--mtk-primary-50); }
table.compare-table thead th.col-highlight-start { border-top-left-radius: 10px; }
table.compare-table thead th.col-highlight-end { border-top-right-radius: 10px; }
table.compare-table tbody tr:last-child td.col-highlight { border-bottom: 2px solid var(--mtk-primary-50); }
table.compare-table tbody tr:last-child td.col-highlight-start { border-bottom-left-radius: 10px; }
table.compare-table tbody tr:last-child td.col-highlight-end { border-bottom-right-radius: 10px; }

table.compare-table thead th .plan-name {
  display: block;
  font-family: var(--mtk-font-sans);
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--mtk-fg-strong);
  margin-top: 4px;
}
table.compare-table thead th .plan-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--mtk-border-strong);
  padding-bottom: 1px;
}
table.compare-table thead th .plan-name a:hover { border-bottom-color: var(--mtk-fg-strong); }
table.compare-table thead th.plan-mtk .plan-name { color: var(--mtk-fg-accent-text); }
table.compare-table thead th.plan-mtk .plan-name a { border-bottom-color: rgba(199,12,5,.35); }
table.compare-table thead th.plan-mtk .plan-name a:hover { border-bottom-color: var(--mtk-fg-accent-text); }
table.compare-table tbody td {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mtk-fg);
  font-family: var(--mtk-font-serif);
  text-align: center;
}
table.compare-table tbody td.feat-cell {
  text-align: left;
  padding-left: 0;
  font-family: var(--mtk-font-sans);
  font-weight: 600;
  color: var(--mtk-fg-strong);
  font-size: 13.5px;
}
table.compare-table tbody tr:hover td { background: var(--mtk-bg-subtle); }
table.compare-table tbody td .yes, table.compare-table tbody td .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
}
table.compare-table tbody td .yes { background: rgba(47,143,94,.14); color: var(--mtk-success); }
table.compare-table tbody td .yes svg { width: 15px; height: 15px; stroke-width: 3; }
table.compare-table tbody td .no { color: var(--mtk-neutral-30); }
table.compare-table tbody td .no::after { content: "—"; font-size: 14px; font-weight: 600; }
table.compare-table tbody td a { color: var(--mtk-fg-link); text-decoration: underline; text-underline-offset: 2px; }
table.compare-table tbody td a:hover { color: var(--mtk-primary-80); }
table.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------
   Pick-which cards
   --------------------------------------------------------- */
.pick { padding: 96px 0; }
.pick-head { margin-bottom: 48px; }
.pick-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;
}
.pick-head p {
  font-family: var(--mtk-font-serif);
  font-size: 18px; line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0;
}
.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pick-card {
  background: var(--mtk-white);
  border: 1px solid var(--mtk-border);
  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.pick-card.mtk {
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  border-color: var(--mtk-primary-100);
}
.pick-card h3 {
  font-family: var(--mtk-font-sans);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--mtk-fg-strong);
  font-weight: 400;
}
.pick-card.mtk h3 { color: var(--mtk-white); }
.pick-card > p.pick-sub {
  font-family: var(--mtk-font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mtk-fg-muted);
  margin: 0 0 20px;
}
.pick-card.mtk p.pick-sub { color: var(--mtk-secondary-30); }
.pick-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 14px; }
.pick-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;
}
.pick-card.mtk .pick-list li { color: rgba(255,255,255,.85); }
.pick-list li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--mtk-success); }
.pick-card.mtk .pick-list li svg { color: var(--mtk-secondary-40); }
.pick-list li strong { color: var(--mtk-fg-strong); font-weight: 600; }
.pick-card.mtk .pick-list li strong { color: var(--mtk-white); }
.pick-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--mtk-font-sans);
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: background var(--mtk-duration-fast) var(--mtk-ease);
  align-self: flex-start;
}
.pick-card:not(.mtk) .pick-cta {
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
}
.pick-card:not(.mtk) .pick-cta:hover { background: var(--mtk-primary-90); color: var(--mtk-white); text-decoration: none; }
.pick-card.mtk .pick-cta {
  background: var(--mtk-white);
  color: var(--mtk-primary-100);
}
.pick-card.mtk .pick-cta:hover { background: var(--mtk-neutral-10); color: var(--mtk-primary-100); text-decoration: none; }
.pick-cta svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
  .pick-grid { grid-template-columns: 1fr; }
  .split-stage { height: 500px; }
  table.compare-table th, table.compare-table td { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: clamp(26px, 8vw, 32px); }
  .pick { padding: 64px 0; }
  .pick-head h2 { font-size: 28px; }
  .split-stage { height: 440px; }
  .split-side-label { font-size: 10px; padding: 4px 8px; top: 10px; }
  table.compare-table thead th { font-size: 10px; padding: 12px 8px; }
  table.compare-table thead th .plan-name { font-size: 13px; }
  table.compare-table tbody td { font-size: 12.5px; padding: 10px 8px; }
  table.compare-table tbody td.feat-cell { font-size: 12.5px; }
  table.compare-table tbody td .yes, table.compare-table tbody td .no { width: 22px; height: 22px; }
  table.compare-table tbody td .yes svg { width: 12px; height: 12px; }
  .split-attrib { font-size: 10px; padding: 3px 8px; }
  .split-attrib img.attrib-logo { height: 20px; }
}
