/* Pricing page (ACR-1587, 13 Oct): Codex version 1 (builds, ownership) + version 2 (support table, classes kx-pricing-t-*).
   Only the site's allowed colours and text styles. */
.kx-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin-inline: auto;
  color: #202d32;
  font-family: NexusInter, Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 27.2px;
  letter-spacing: normal;
}
.kx-pricing-grid *, .kx-pricing-grid *::before, .kx-pricing-grid *::after { box-sizing: border-box; }
.kx-pricing-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid #d6e2ea;
  border-radius: 24px;
  background: #ffffff;
}
.kx-pricing-build { display: flex; flex-direction: column; }
.kx-pricing-featured {
  color: #ffffff;
  border-color: #173249;
  background: radial-gradient(ellipse 110% 30% at 10% 0%, #14638f, #173249 100%);
  box-shadow: 0 16px 40px -20px #2180b8;
}
.kx-pricing-tag, .kx-pricing-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 18.2px;
  letter-spacing: normal;
}
.kx-pricing-tag { color: #14638f; margin-bottom: 16px; }
.kx-pricing-featured .kx-pricing-tag { color: #dbeaf4; }
.kx-pricing-title {
  margin: 0;
  color: inherit;
  font-family: NexusManrope, Manrope, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 31.2px;
  letter-spacing: -0.52px;
}
.kx-pricing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.kx-pricing-figure {
  font-family: NexusManrope, Manrope, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 52.8px;
  letter-spacing: -1.2px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.kx-pricing-qualifier { color: #606b70; font-size: 13px; font-weight: 600; line-height: 18.2px; }
.kx-pricing-featured .kx-pricing-qualifier { color: #dbeaf4; }
.kx-pricing-description { min-height: 108.8px; margin: 0 0 28px; color: #606b70; }
.kx-pricing-featured .kx-pricing-description { color: #dbeaf4; }
.kx-pricing-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 999px;
  background: #173249;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 16.9px;
  transition: transform 150ms ease-out;
}
.kx-pricing-featured .kx-pricing-button { background: #ffffff; color: #173249; box-shadow: 0 0 24px -9px #35b9e4; }
.kx-pricing-button:hover { background: #14638f; color: #ffffff; }
.kx-pricing-featured .kx-pricing-button:hover { background: #dbeaf4; color: #173249; }
.kx-pricing-button:focus-visible { outline: 3px solid #2180b8; outline-offset: 5px; }
.kx-pricing-featured .kx-pricing-button:focus-visible { outline-color: #35b9e4; }
.kx-pricing-button:active { transform: scale(0.98); }
.kx-pricing-inclusions { margin-top: 28px; padding-top: 28px; border-top: 1px solid #d6e2ea; }
.kx-pricing-featured .kx-pricing-inclusions { border-color: #526b7e; }
.kx-pricing-small-heading {
  margin: 0 0 20px;
  font-family: NexusManrope, Manrope, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 25.2px;
  letter-spacing: -0.18px;
}
.kx-pricing-checklist { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.kx-pricing-checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.kx-pricing-icon { width: 20px; height: 20px; margin-top: 3px; color: #14638f; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kx-pricing-featured .kx-pricing-icon { color: #35b9e4; }
.kx-pricing-scope { padding-top: 32px; margin-top: auto; }
.kx-pricing-scope .kx-pricing-label { margin-bottom: 12px; }
.kx-pricing-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.kx-pricing-chips li { padding: 10px 4px; text-align: center; border-radius: 8px; background: #edf3f8; color: #173249; font-size: 13px; font-weight: 600; line-height: 18.2px; }
.kx-pricing-featured .kx-pricing-chips li { background: #14638f; color: #ffffff; }
.kx-pricing-support-grid, .kx-pricing-ownership-grid { margin-top: 48px; }
.kx-pricing-support { padding-bottom: 16px; }
.kx-pricing-support .kx-pricing-price { margin-bottom: 28px; }
.kx-pricing-rows { list-style: none; padding: 0; margin: 0; }
.kx-pricing-rows li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid #d6e2ea; min-height: 112px; }
.kx-pricing-rows li:first-child { min-height: 122px; }
.kx-pricing-rows li:last-child { min-height: 149px; }
.kx-pricing-rows .kx-pricing-label { color: #606b70; margin-bottom: 8px; }
.kx-pricing-value { margin: 0; }
.kx-pricing-note { max-width: 960px; margin: 32px auto 0; color: #606b70; text-align: center; font-family: NexusInter, Inter, system-ui, sans-serif; font-size: 16px; font-weight: 400; line-height: 27.2px; letter-spacing: normal; }
.kx-pricing-ownership { background: #fafbfc; }
.kx-pricing-ownership-icon { display: block; width: 48px; height: 48px; padding: 10px; margin-bottom: 28px; border: 1px solid #d4e6f0; border-radius: 16px; color: #14638f; background: #ffffff; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kx-pricing-ownership .kx-pricing-title { min-height: 62.4px; margin-bottom: 28px; }
.kx-pricing-ownership .kx-pricing-checklist { color: #606b70; gap: 20px; }
@media (max-width: 1100px) {
  .kx-pricing-card { padding: 24px; }
  .kx-pricing-price { column-gap: 6px; }
  .kx-pricing-chips li { padding-inline: 8px; }
}
@media (max-width: 900px) {
  .kx-pricing-grid { grid-template-columns: 1fr; max-width: 560px; gap: 24px; }
  .kx-pricing-description { min-height: 0; }
  .kx-pricing-rows li, .kx-pricing-rows li:first-child, .kx-pricing-rows li:last-child { min-height: 0; }
  .kx-pricing-ownership .kx-pricing-title { min-height: 0; }
}
@media (max-width: 600px) {
  .kx-pricing-title { font-size: 24px; line-height: 28.8px; letter-spacing: -0.48px; }
  .kx-pricing-figure { font-size: 30px; line-height: 34.5px; letter-spacing: -0.75px; }
  .kx-pricing-price { margin-top: 24px; gap: 8px; }
  .kx-pricing-small-heading { font-size: 16px; line-height: 22.4px; letter-spacing: -0.16px; }
  .kx-pricing-support-grid, .kx-pricing-ownership-grid { margin-top: 32px; }
  .kx-pricing-note { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .kx-pricing-button { transition: none; }
  .kx-pricing-button:active { transform: none; }
}

.kx-pricing-chips li span { display: block; margin-bottom: 2px; font-family: NexusManrope, Manrope, system-ui, sans-serif; font-size: 18px; font-weight: 600; line-height: 25.2px; letter-spacing: -0.18px; }
@media (max-width: 600px) { .kx-pricing-chips li { padding-inline: 3px; font-size: 12px; line-height: 15.6px; } .kx-pricing-chips li span { font-size: 16px; line-height: 22.4px; letter-spacing: -0.16px; } }

/* ---- support table (version 2) ---- */
/* New colour / text-style values: none. Host page supplies section spacing,
   .wrap, .marketing-heading and .marketing-subheading. */
.kx-pricing-builds,
.kx-pricing-t-wrap,
.kx-pricing-note,
.kx-pricing-ownership {
  color: #606b70;
  font: 400 16px/27.2px NexusInter, Inter, system-ui, sans-serif;
}
.kx-pricing-builds *,
.kx-pricing-t-wrap *,
.kx-pricing-ownership * { box-sizing: border-box; }
.kx-pricing-t-wrap { margin-top: 48px; border: 1px solid #d6e2ea; border-radius: 24px; overflow: hidden; background: #ffffff; }
.kx-pricing-t { width: 100%; table-layout: fixed; border-spacing: 0; text-align: left; }
.kx-pricing-t th, .kx-pricing-t td { padding: 22px 24px; vertical-align: top; font-weight: 400; }
.kx-pricing-t thead th { padding-top: 32px; padding-bottom: 32px; }
.kx-pricing-t h3 { margin: 0 0 16px; color: #202d32; font: 600 26px/31.2px NexusManrope, Manrope, system-ui, sans-serif; letter-spacing: -0.52px; }
.kx-pricing-t-corner { color: #202d32; vertical-align: bottom !important; }
.kx-pricing-t-corner span { color: #606b70; }
.kx-pricing-t-price { margin: 0; color: #173249; font: 600 48px/52.8px NexusManrope, Manrope, system-ui, sans-serif; letter-spacing: -1.2px; }
.kx-pricing-t-price span { display: block; margin-top: 8px; color: #606b70; font: 400 16px/27.2px NexusInter, Inter, system-ui, sans-serif; letter-spacing: normal; }
.kx-pricing-t tbody th, .kx-pricing-t tbody td { border-top: 1px solid #d6e2ea; }
.kx-pricing-t tbody th { color: #202d32; }
.kx-pricing-t strong { color: #173249; font: 600 28px/36.4px NexusManrope, Manrope, system-ui, sans-serif; }
.kx-pricing-t-label { display: none; }
@media (max-width: 1100px) {
  .kx-pricing-t th, .kx-pricing-t td { padding: 20px; }
  .kx-pricing-t-price { font-size: 30px; line-height: 37.5px; letter-spacing: -0.6px; }
}
@media (max-width: 767px) {
  .kx-pricing-build h3, .kx-pricing-t h3, .kx-pricing-ownership h3 { font-size: 24px; line-height: 28.8px; letter-spacing: -0.48px; }
  .kx-pricing-price, .kx-pricing-t-price { font-size: 30px; line-height: 34.5px; letter-spacing: -0.75px; }
  .kx-pricing-t-wrap { border: 0; border-radius: 0; background: none; margin-top: 32px; overflow: visible; }
  .kx-pricing-t { display: grid; grid-template-columns: minmax(0, 1fr); }
  .kx-pricing-t thead, .kx-pricing-t tbody, .kx-pricing-t tr { display: contents; }
  .kx-pricing-t .kx-pricing-t-corner { display: none; }
  .kx-pricing-t tbody th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
  .kx-pricing-t thead th { grid-column: 1; padding: 24px; border: 1px solid #d6e2ea; border-bottom: 0; border-radius: 24px 24px 0 0; background: #ffffff; }
  .kx-pricing-t thead th:nth-child(2) { grid-row: 1; }
  .kx-pricing-t thead th:nth-child(3) { grid-row: 7; margin-top: 24px; }
  .kx-pricing-t thead th:nth-child(4) { grid-row: 13; margin-top: 24px; }
  .kx-pricing-t td { grid-column: 1; background: #ffffff; border-left: 1px solid #d6e2ea; border-right: 1px solid #d6e2ea; padding: 16px 24px; }
  .kx-pricing-t tr:nth-child(1) td:nth-child(2) { grid-row: 2; }
  .kx-pricing-t tr:nth-child(2) td:nth-child(2) { grid-row: 3; }
  .kx-pricing-t tr:nth-child(3) td:nth-child(2) { grid-row: 4; }
  .kx-pricing-t tr:nth-child(4) td:nth-child(2) { grid-row: 5; }
  .kx-pricing-t tr:nth-child(5) td:nth-child(2) { grid-row: 6; }
  .kx-pricing-t tr:nth-child(1) td:nth-child(3) { grid-row: 8; }
  .kx-pricing-t tr:nth-child(2) td:nth-child(3) { grid-row: 9; }
  .kx-pricing-t tr:nth-child(3) td:nth-child(3) { grid-row: 10; }
  .kx-pricing-t tr:nth-child(4) td:nth-child(3) { grid-row: 11; }
  .kx-pricing-t tr:nth-child(5) td:nth-child(3) { grid-row: 12; }
  .kx-pricing-t tr:nth-child(1) td:nth-child(4) { grid-row: 14; }
  .kx-pricing-t tr:nth-child(2) td:nth-child(4) { grid-row: 15; }
  .kx-pricing-t tr:nth-child(3) td:nth-child(4) { grid-row: 16; }
  .kx-pricing-t tr:nth-child(4) td:nth-child(4) { grid-row: 17; }
  .kx-pricing-t tr:nth-child(5) td:nth-child(4) { grid-row: 18; }
  .kx-pricing-t tr:last-child td { border-bottom: 1px solid #d6e2ea; border-radius: 0 0 24px 24px; padding-bottom: 24px; }
  .kx-pricing-t-label { display: block; color: #202d32; margin-bottom: 6px; font: 600 13px/18.2px NexusInter, Inter, system-ui, sans-serif; }
  .kx-pricing-t strong { font-size: 22px; line-height: 27.5px; letter-spacing: -0.44px; }
}

/* Site type rules (checker S1): small words beside the price keep normal tracking; phone buttons use the phone button size. */
.kx-pricing-qualifier { letter-spacing: normal; }
@media (max-width: 600px) {
  .kx-pricing-button { font-size: 12px; line-height: 15.6px; }
}

/* Consistency review (13 Oct): the ownership headings inherited the muted body colour; headings use the heading ink, as on How we work. */
.kx-pricing-ownership .kx-pricing-title { color: #202d32; }

/* 13 Oct ~20:45 UTC: prices use the section heading size (48px / 30px) so the page title stays the largest type (James: "the smae size as the heading in the hero"). */

/* Premium pass (13 Oct ~21:30 UTC): on a phone the three support plans sit side by side and swipe, the next plan peeking in,
   instead of three full stacked cards (the page was 8,194px long on a phone). Rows stay aligned across the plans. */
@media (max-width: 767px) {
  .kx-pricing-t-wrap { margin-inline: -24px; padding: 0 24px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .kx-pricing-t-wrap::-webkit-scrollbar { display: none; }
  .kx-pricing-t { width: 100%; grid-template-columns: repeat(3, 84%); column-gap: 12px; }
  .kx-pricing-t thead th:nth-child(2), .kx-pricing-t thead th:nth-child(3), .kx-pricing-t thead th:nth-child(4) { grid-row: 1; margin-top: 0; scroll-snap-align: start; }
  .kx-pricing-t thead th:nth-child(2), .kx-pricing-t td:nth-child(2) { grid-column: 1; }
  .kx-pricing-t thead th:nth-child(3), .kx-pricing-t td:nth-child(3) { grid-column: 2; }
  .kx-pricing-t thead th:nth-child(4), .kx-pricing-t td:nth-child(4) { grid-column: 3; }
  .kx-pricing-t-wrap .kx-pricing-t tr:nth-child(1) td { grid-row: 2; }
  .kx-pricing-t-wrap .kx-pricing-t tr:nth-child(2) td { grid-row: 3; }
  .kx-pricing-t-wrap .kx-pricing-t tr:nth-child(3) td { grid-row: 4; }
  .kx-pricing-t-wrap .kx-pricing-t tr:nth-child(4) td { grid-row: 5; }
  .kx-pricing-t-wrap .kx-pricing-t tr:nth-child(5) td { grid-row: 6; }
}

/* 14 Oct ~16:00 UTC, James: "can we centre align the 'Care' priing table". The three plan columns (Care, Growth, Priority)
   centre their name, price and every row value, on a phone too; the row names down the left and the corner stay left. */
.kx-pricing-t thead th:not(.kx-pricing-t-corner), .kx-pricing-t td { text-align: center; }
