/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero { padding: 64px 0 48px; 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-lede {
  font-family: var(--mtk-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtk-fg);
  margin: 0 0 20px;
  max-width: 68ch;
}
.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;
}

/* ---------------------------------------------------------
   Alternatives comparison table — light, inline with page flow
   --------------------------------------------------------- */
.compare {
  padding: 32px 0 96px;
  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(24px, 3.8vw, 32px);
  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;
  max-width: 78ch;
}
.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; }

/* Only Maptoolkit.org is highlighted on this overview page. */
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-strong); }
table.compare-table thead th.plan-mtk .plan-name a { border-bottom-color: var(--mtk-border-strong); }
table.compare-table thead th.plan-mtk .plan-name a:hover { border-bottom-color: var(--mtk-fg-strong); }
table.compare-table thead th.plan:not(.plan-mtk) .plan-name a { color: var(--mtk-secondary-80); border-bottom-color: rgba(199,12,5,.35); }
table.compare-table thead th.plan:not(.plan-mtk) .plan-name a:hover { color: var(--mtk-secondary-90); border-bottom-color: var(--mtk-secondary-80); }
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; }

/* ---------------------------------------------------------
   Maptoolkit Enterprise License — separate, visually distinct chapter
   --------------------------------------------------------- */
.enterprise {
  padding: 96px 0;
  margin-top: 32px;
  background: var(--mtk-primary-100);
  color: var(--mtk-white);
  position: relative;
  overflow: hidden;
}
.enterprise::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;
}
.enterprise .wrap { position: relative; }
.enterprise-head { margin-bottom: 40px; }
.enterprise-head .eyebrow { color: var(--mtk-secondary-40); max-width: 68ch; }
.enterprise-head .eyebrow::before { background: var(--mtk-secondary-40); }
.enterprise-head h2 {
  font-family: var(--mtk-font-sans);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--mtk-white);
  margin: 12px 0 16px;
  font-weight: 400;
  max-width: 68ch;
}
.enterprise-head p {
  font-family: var(--mtk-font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin: 0 0 10px;
  max-width: 100ch;
}
.enterprise-head p:last-child { margin-bottom: 0; }

.enterprise-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.enterprise-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mtk-font-sans);
}
table.enterprise-table th, table.enterprise-table td {
  padding: 7px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
table.enterprise-table tbody td.feat-cell { padding-left: 36px; }
table.enterprise-table tbody tr.group-head td { padding-left: 18px; }
table.enterprise-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.enterprise-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.enterprise-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.enterprise-table thead th .plan-name a:hover { border-bottom-color: rgba(255,255,255,.7); text-decoration: none; }
table.enterprise-table thead th.plan-community .plan-name { color: var(--mtk-secondary-40); }
table.enterprise-table thead th.plan-logo { width: 64%; padding-left: 32px; }
table.enterprise-table thead th.plan-logo img { height: 56px; width: auto; max-width: none; display: block; }
table.enterprise-table thead th.plan { width: 18%; text-align: center; }
table.enterprise-table tbody td {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  font-family: var(--mtk-font-serif);
}
table.enterprise-table tbody td.feat-cell { width: 64%; }
table.enterprise-table tbody td.val {
  width: 18%;
  text-align: center;
  font-family: var(--mtk-font-sans);
  font-weight: 600;
}
table.enterprise-table tbody td.val .yes,
table.enterprise-table tbody td.val .no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
}
table.enterprise-table tbody td.val .yes { background: rgba(47,143,94,.18); color: var(--mtk-success); }
table.enterprise-table tbody td.val .yes svg { width: 16px; height: 16px; stroke-width: 3; }
table.enterprise-table tbody td.val .no { color: rgba(255,255,255,.32); }
table.enterprise-table tbody td.val .no::after { content: "—"; font-size: 14px; font-weight: 600; }
table.enterprise-table tbody td.val .text {
  font-family: var(--mtk-font-sans);
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
table.enterprise-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.enterprise-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.enterprise-table tbody tr:last-child td { border-bottom: none; }

.enterprise-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 32px;
  gap: 14px;
}
.enterprise-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; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 980px) {
  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); }
  .enterprise { padding: 64px 0; }
  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; }
  table.enterprise-table th, table.enterprise-table td { padding: 8px 8px; }
  table.enterprise-table thead th { padding: 16px 6px; font-size: 10px; }
  table.enterprise-table thead th.plan-logo { padding-left: 14px; width: 52%; }
  table.enterprise-table thead th.plan-logo img { height: 36px; }
  table.enterprise-table thead th .plan-name { font-size: 13px; letter-spacing: -0.005em; }
  table.enterprise-table thead th.plan { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.enterprise-table tbody td { font-size: 12.5px; }
  table.enterprise-table tbody td.feat-cell { padding-left: 14px; padding-right: 6px; width: 52%; }
  table.enterprise-table tbody tr.group-head td { padding-left: 14px; }
  table.enterprise-table tbody td.val { width: 24%; padding-left: 4px; padding-right: 4px; }
  table.enterprise-table tbody td.val .yes,
  table.enterprise-table tbody td.val .no { width: 24px; height: 24px; }
}
