/* ===========================================================================
   /pricing — page layer (also imported by select-plan.css)
   Decision shape: the five self-serve plans sit in one row whose inner rows
   line up across cards (name, price, who it is for, limits, extras, action);
   Enterprise is a quiet full-width row below. The comparison is a real table.
   Every rule: foundation prefix + one more class. 4px grid, ink tokens only.
   =========================================================================== */

/* ---------- Plans bar: the billing toggle starts on the cards' left edge --- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  margin: 0 0 24px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans-bar .sentinel-billing-toggle {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 0;
}

/* ---------- Plan grid ------------------------------------------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans {
  --pricing-rows: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
@media (min-width: 600px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plans { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 24px 20px;
  text-align: left;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Rows line up across the cards of one grid row */
@supports (grid-template-rows: subgrid) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan {
    display: grid;
    grid-row: span var(--pricing-rows);
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan > * { margin: 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan h3 { margin: 0; }

/* Price: one figure, "$20 /month", tabular */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-price .currency {
  margin-right: 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 40px;
  color: var(--on-surface-variant);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-price .amount {
  font-size: 40px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-price .period {
  margin-left: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--outline);
}

/* Who it is for */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

/* Limits (sites, monthly crawl visits): the figures that decide the plan */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-limits {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-limits li {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}

/* Everything else the plan includes: same rhythm, secondary text, no ticks */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-features {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 8px;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-pricing-features li {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-plan .sentinel-btn {
  align-self: end;
  width: 100%;
  margin-top: 24px;
  padding-inline: 12px;
}

/* ---------- Enterprise: a quiet full-width row ----------------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 24px 20px;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-head h3 { margin: 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-head .sentinel-pricing-note { margin: 4px 0 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 24px;
  align-content: center;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-features li {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise .sentinel-btn { justify-self: start; }

@media (min-width: 600px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto;
    align-items: center;
    gap: 24px;
  }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-enterprise-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Feature comparison: a real table ------------------------------- */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare {
  position: relative; /* keeps the visually hidden mark text inside the scroller */
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-lg);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: none;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table :is(th, td) {
  padding: 12px 16px;
  background: var(--surface-container-lowest);
  border: 0;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-surface-variant);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--border-strong);
  font-size: 13px;
  line-height: 20px;
  color: var(--outline);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table tbody tr:first-child > * { border-top: 0; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table thead th:first-child { width: 24%; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table tbody th {
  min-width: 176px;
  white-space: normal;
  color: var(--on-surface);
}
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table tbody tr:hover > * { background: var(--surface-container); }

/* The feature column stays put while the plans scroll */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table :is(thead th, tbody th):first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}
@media (max-width: 1099px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table :is(thead th, tbody th):first-child { box-shadow: inset -1px 0 0 var(--border-subtle); }
}

/* Marks: text colour, no coloured ticks */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table .pricing-mark { display: block; color: var(--on-surface); }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table svg.pricing-mark { width: 18px; height: 18px; }
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table .pricing-mark--no { width: 18px; text-align: center; color: var(--outline); }

body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-note { max-width: 40rem; }

/* Visually hidden text for the marks */
body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table :is(th, td) { padding: 12px; }
  body.sentinel-body:is(.sentinel-flow, .sentinel-home):not(.auth-body) .pricing-compare-table tbody th { min-width: 144px; }
}
