/* EDD product pages: content inside the Overview / Insight / Free vs Pro / Highlights tabs. */
.single-download #tabs .prose {
  color: #334155;
  font-size: 17px;
  line-height: 1.7;
}
.single-download #tabs .prose > :first-child {
  margin-top: 0;
}
.single-download #tabs .prose h2 {
  margin: 40px 0 14px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}
.single-download #tabs .prose h3 {
  margin: 28px 0 8px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.single-download #tabs .prose p {
  margin: 0 0 16px;
}
.single-download #tabs .prose ul,
.single-download #tabs .prose ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}
.single-download #tabs .prose ul { list-style: disc; }
.single-download #tabs .prose ol { list-style: decimal; }
.single-download #tabs .prose li {
  margin: 0 0 8px;
  padding-left: 4px;
}
.single-download #tabs .prose strong {
  color: #0f172a;
  font-weight: 600;
}
.single-download #tabs .prose a {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-download #tabs .prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}
.single-download #tabs .prose table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.single-download #tabs .prose th,
.single-download #tabs .prose td {
  padding: 11px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.single-download #tabs .prose thead th {
  border-bottom: 2px solid #c7d2fe;
  background: #eef2ff;
  color: #1e1b4b;
  font-weight: 600;
}
/* Comparison tables: centre the yes/no columns. */
.single-download #tabs .prose table:has(th:nth-child(3)) th:not(:first-child),
.single-download #tabs .prose table:has(th:nth-child(3)) td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
.single-download #tabs .prose table td:first-child {
  color: #0f172a;
}
@media (max-width: 700px) {
  .single-download #tabs .prose table {
    display: block;
    overflow-x: auto;
  }
  .single-download #tabs .prose table:has(th:nth-child(3)) th:not(:first-child),
  .single-download #tabs .prose table:has(th:nth-child(3)) td:not(:first-child) {
    white-space: normal;
  }
}

/* The parent theme styles tables in monospace capitals; keep product tables in the body font. */
.single-download #tabs .prose table,
.single-download #tabs .prose thead,
.single-download #tabs .prose tbody,
.single-download #tabs .prose tr,
.single-download #tabs .prose th,
.single-download #tabs .prose td {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

/* =========================================================
   Product page design: hero, tabs card, pricing card, related
   ========================================================= */

/* ---------- Hero ---------- */
.kp-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 42%, #6d28d9 100%);
  color: #fff;
}
.kp-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(167, 139, 250, 0.45), transparent 70%),
    radial-gradient(520px 340px at 10% 110%, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}
.kp-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.kp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kp-hero__eyebrow .material-symbols-outlined {
  font-size: 18px;
}
.kp-hero__title {
  margin: 20px 0 16px;
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.kp-hero__lead {
  max-width: 560px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.6;
}
.kp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.kp-hero__chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: #eef2ff;
  font-size: 13px;
  font-weight: 500;
}
.kp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.kp-btn .material-symbols-outlined {
  font-size: 20px;
}
.kp-btn--light {
  background: #fff;
  color: #312e81;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}
.kp-btn--light:hover,
.kp-btn--light:focus-visible {
  color: #312e81;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.32);
}
.kp-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.kp-btn--ghost:hover,
.kp-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.kp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}
.kp-hero__trust > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kp-hero__trust .material-symbols-outlined {
  color: #6ee7b7;
  font-size: 18px;
}
.kp-hero__media {
  margin: 0;
}
.kp-browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.kp-browser:hover {
  transform: none;
}
.kp-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.kp-browser__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f87171;
}
.kp-browser__bar span:nth-child(2) { background: #fbbf24; }
.kp-browser__bar span:nth-child(3) { background: #34d399; }
.kp-browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Tabs card ---------- */
.single-download .kp-tabs-card {
  padding: 28px 32px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.single-download .kp-tabs-card > div:first-child {
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: 0;
}
.single-download .kp-tabs-card > div:first-child ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
}
.single-download .kp-tabs-card .tab-link {
  display: inline-block;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.single-download .kp-tabs-card .tab-link:hover {
  color: #3730a3;
}
.single-download .kp-tabs-card .ui-tabs-active .tab-link,
.single-download .kp-tabs-card .ui-state-active .tab-link {
  background: #fff;
  color: #3730a3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}
.single-download .kp-tabs-card .ui-tabs-active,
.single-download .kp-tabs-card .ui-state-active {
  border: 0;
  background: none;
}

/* ---------- Pricing card ---------- */
.single-download .kp-price-card {
  border-color: #e0e7ff;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(55, 48, 163, 0.1);
}
.single-download #kp-pricing {
  scroll-margin-top: 110px;
}
.kp-included {
  margin: 4px 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
}
.kp-included__title {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kp-included ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kp-included li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}
.kp-included li:last-child {
  margin-bottom: 0;
}
.kp-included .material-symbols-outlined {
  color: #10b981;
  font-size: 18px;
  line-height: 1.2;
}

/* ---------- Related products ---------- */
.kp-related {
  padding: 72px 0 80px;
  border-top: 1px solid #eef2ff;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.kp-related__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.kp-related__title {
  margin: 0 0 8px;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.kp-related__lead {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 17px;
}
.kp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.kp-card:hover,
.kp-card:focus-visible {
  border-color: #c7d2fe;
  box-shadow: 0 18px 40px rgba(55, 48, 163, 0.12);
  transform: translateY(-3px);
}
.kp-card__price {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 700;
}
.kp-card__price small {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 500;
}
.kp-card__title {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
}
.kp-card__text {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}
.kp-card__more {
  margin-top: auto;
  padding-top: 6px;
  color: #4338ca;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .kp-hero {
    padding: 56px 0 64px;
  }
  .kp-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 0 20px;
  }
  .kp-browser {
    transform: none;
  }
  .kp-related__inner {
    padding: 0 20px;
  }
}
@media (max-width: 640px) {
  .single-download .kp-tabs-card {
    padding: 20px 18px 24px;
  }
  .kp-hero__lead {
    font-size: 17px;
  }
  .kp-btn {
    justify-content: center;
    width: 100%;
  }
}

/* jQuery UI tab styles override the pill track; keep ours. */
.single-download .kp-tabs-card ul.ui-tabs-nav,
.single-download .kp-tabs-card > div:first-child ul {
  gap: 4px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
}
.single-download .kp-tabs-card .ui-tabs-nav li {
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
.single-download .kp-tabs-card .tab-link,
.single-download .kp-tabs-card .tab-link:focus {
  border-bottom: 0 !important;
  outline-offset: 2px;
}
/* Pull the content up under the hero. */
.single-download #main.site-main {
  padding-top: 48px;
}

@media (max-width: 640px) {
  .single-download .kp-tabs-card ul.ui-tabs-nav,
  .single-download .kp-tabs-card > div:first-child ul {
    flex-wrap: nowrap !important;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .single-download #main.site-main {
    padding-top: 24px;
  }
}

/* =========================================================
   Downloads listing (archive + categories)
   ========================================================= */
.kp-hero--listing {
  padding: 72px 0 120px;
}
.kp-hero__inner--center {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
}
.kp-hero__inner--center .kp-hero__copy {
  max-width: 820px;
  margin: 0 auto;
}
.kp-hero__inner--center .kp-hero__lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}
.kp-hero__inner--center .kp-hero__chips {
  justify-content: center;
  margin-bottom: 0;
}
.kp-listing {
  position: relative;
  max-width: 1280px;
  margin: -72px auto 0;
  padding: 0 32px 72px;
}
.kp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}
.kp-filters a {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #3730a3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.kp-filters a.is-active,
.kp-filters a:hover {
  background: #fff;
  color: #1e1b4b;
}
.kp-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kp-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kp-product:hover {
  border-color: #c7d2fe;
  box-shadow: 0 26px 56px rgba(55, 48, 163, 0.16);
  transform: translateY(-4px);
}
.kp-product.is-premium {
  border-color: #c7d2fe;
}
.kp-product__media {
  display: block;
  padding: 20px 20px 0;
  background: linear-gradient(160deg, #eef2ff 0%, #f5f3ff 60%, #fff 100%);
}
.kp-browser--flat {
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: none;
}
.kp-browser--flat:hover {
  transform: none;
}
.kp-browser--flat img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.kp-product__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: #eef2ff;
  color: #6366f1;
}
.kp-product__placeholder .material-symbols-outlined {
  font-size: 48px;
}
.kp-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
}
.kp-product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kp-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kp-badge--free {
  background: #ecfdf5;
  color: #047857;
}
.kp-badge--pro {
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  color: #fff;
}
.kp-product__price {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}
.kp-product__price small {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.kp-product__title {
  margin: 4px 0 0;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.kp-product__title a {
  color: #0f172a;
  text-decoration: none;
}
.kp-product__title a:hover {
  color: #4338ca;
}
.kp-product__text {
  margin: 0;
  color: #475569;
  font-size: 15.5px;
  line-height: 1.6;
}
.kp-product__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.kp-product__facts li {
  padding: 3px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
}
.kp-product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.kp-btn--primary {
  padding: 12px 18px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25);
}
.kp-btn--primary:hover,
.kp-btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.32);
}
.kp-btn--outline {
  padding: 12px 18px;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 15px;
}
.kp-btn--outline:hover,
.kp-btn--outline:focus-visible {
  background: #eef2ff;
  color: #312e81;
}
.kp-product__docs {
  margin-left: auto;
  color: #4338ca;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.kp-empty {
  padding: 48px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}
.kp-compare {
  border-top: 1px solid #eef2ff;
  background: #f8fafc;
}
@media (max-width: 1024px) {
  .kp-listing {
    padding: 0 20px 56px;
  }
}
@media (max-width: 640px) {
  .kp-hero--listing {
    padding: 48px 0 104px;
  }
  .kp-product__docs {
    margin-left: 0;
  }
}
.kp-compare {
  padding: 72px 0 80px;
}
.kp-compare__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.kp-compare__table {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.kp-compare__table > * {
  margin: 0 !important;
}
@media (max-width: 640px) {
  .kp-compare__inner { padding: 0 16px; }
  .kp-compare__table { overflow-x: auto; }
}

/* ---------- Plan selector (Freemius) ---------- */
.kp-plans { margin: 0 0 20px; padding: 0; border: 0; display: grid; gap: 10px; }
.kp-plans__title { margin: 0 0 10px; padding: 0; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kp-plan { position: relative; display: block; margin: 0; cursor: pointer; }
.kp-plan__input { position: absolute; opacity: 0; pointer-events: none; }
.kp-plan__card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.kp-plan:hover .kp-plan__card { border-color: #a5b4fc; transform: translateY(-1px); }
.kp-plan__radio { flex: none; width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 50%; background: #fff; transition: all .15s; }
.kp-plan__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kp-plan__name { color: #0f172a; font-size: 16px; font-weight: 700; }
.kp-plan__desc { margin-top: 2px; color: #64748b; font-size: 13px; line-height: 1.4; }
.kp-plan__price { color: #0f172a; font-size: 18px; font-weight: 800; white-space: nowrap; }
.kp-plan__input:checked + .kp-plan__card { border-color: #4f46e5; background: #eef2ff; box-shadow: 0 6px 18px rgba(79, 70, 229, .15); }
.kp-plan__input:checked + .kp-plan__card .kp-plan__radio { border-color: #4f46e5; background: radial-gradient(circle, #4f46e5 0 45%, #fff 50%); }
.kp-plan__input:checked + .kp-plan__card .kp-plan__price { color: #4f46e5; }
.kp-plan__input:focus-visible + .kp-plan__card { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.kp-plan__badge { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
