/* Public pricing page (`/pricing`): quiet, spacious, single-slider layout.
   Inherits style.css tokens (Public Sans + JetBrains Mono, #FCFCFA sheet on
   #F2F3F0 ground, #14213D ink, hairline rules, OS-driven dark mode). */

body.pricing main { max-width: none; padding: 0; }

.pricing-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Header & Single Agent Slider ----------------------------------------- */

.pricing-top {
  padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 7vw, 96px);
}

.pricing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.pricing-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: -0.028em;
  margin: 0 auto 14px;
  max-width: 18ch;
}

.pricing-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 52ch;
}

/* Clean, unboxed single slider */
.fleet-slider {
  max-width: 540px;
  margin: 0 auto 40px;
}

.fleet-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.fleet-slider-head label {
  font-size: 14px;
  font-weight: 560;
  color: var(--ink-2);
}

.fleet-slider-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}

#agent-tier {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  min-height: 24px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#agent-tier::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) var(--fill, calc(9px + (100% - 18px) / 5)),
    var(--rule) var(--fill, calc(9px + (100% - 18px) / 5)),
    var(--rule) 100%
  );
}

#agent-tier::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
}

#agent-tier::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
}

#agent-tier::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.22);
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

#agent-tier::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sheet);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.22);
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

#agent-tier:hover::-webkit-slider-thumb { transform: scale(1.1); }
#agent-tier:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Each stop sits under the thumb's centre at that step: the thumb is 18px
   wide, so its centre travels from 9px to 100% - 9px. */
.fleet-slider-stops {
  position: relative;
  height: 28px;
}

.fleet-slider-stops button {
  all: unset;
  position: absolute;
  top: 0;
  left: calc(9px + var(--i) * (100% - 18px) / 5);
  transform: translateX(-50%);
  min-width: 32px;
  height: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 28px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 120ms ease-out;
}
.fleet-slider-stops button:hover { color: var(--ink); }
.fleet-slider-stops button.is-active {
  color: var(--ink);
  font-weight: 650;
}

/* --- Three Clean Plan Columns --------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  min-width: 0;
  transition: box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.plan + .plan {
  border-left: 1px solid var(--rule);
}

.plan.is-selected {
  box-shadow: inset 0 0 0 1.5px var(--rule-ink);
  z-index: 1;
}

.plan-top {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-2);
}

.plan h2 {
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.plan-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 22px;
  min-height: 3em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 36px;
  line-height: 1;
  font-weight: 660;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-amount.num {
  font-family: var(--mono);
}

.price-period {
  font-size: 14px;
  color: var(--ink-3);
}

.plan-btn {
  width: 100%;
  min-height: 40px;
}

.plan-list {
  list-style: none;
  padding: 22px 0 0;
  margin: 0;
  display: grid;
  gap: 11px;
  align-content: start;
}

.plan-list li {
  position: relative;
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Crisp SVG-like check drawn with borders, no emoji */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--pass);
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

.plan-list strong {
  color: var(--ink);
  font-weight: 600;
}
.plan-list .num {
  font-family: var(--mono);
  font-size: 13px;
}

.pricing-footnote {
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 20px auto 0;
}

/* --- Sections ------------------------------------------------------------- */

.pricing-section {
  padding: clamp(56px, 6.5vw, 84px) 0;
  border-top: 1px solid var(--rule);
}

.pricing-section h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

/* --- A typical agent beside an assured one, inside its FAQ answer ---------- */

.assured-grid {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  background: transparent;
  font-size: 14px;
}

.assured-grid th,
.assured-grid td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--rule-2);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.assured-grid thead th {
  padding-bottom: 10px;
  font-size: 13.5px;
  font-weight: 640;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule-ink);
  white-space: normal;
}

.assured-grid thead th:last-child { color: var(--ink); }
.assured-grid tbody th { width: 22%; font-weight: 620; color: var(--ink); }
.assured-grid td { width: 39%; color: var(--ink-3); }
.assured-grid td:last-child { color: var(--ink); padding-right: 0; }
.assured-grid tbody tr:hover { background: transparent; }
/* style.css drops the rule under a table's last row for cells only; the row
   header has to follow or it leaves a stub. */
.assured-grid tbody tr:last-child th { border-bottom: 0; }

/* Outlined buttons on the dark set: the shared control border falls short of
   3:1 against the sheet, and here the outline is the whole button. */
@media (prefers-color-scheme: dark) {
  body.pricing .button:not(.primary):not(:hover) { border-color: #66738C; }
}

/* --- Contact Row ---------------------------------------------------------- */

.pricing-contact {
  padding: clamp(44px, 5vw, 64px) 0 clamp(56px, 6vw, 80px);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.contact-row h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.contact-row p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* --- Clean Flat Comparison Table ------------------------------------------ */

.compare-wrap {
  overflow-x: auto;
}

.compare-grid {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: transparent;
  font-size: 14px;
}

.compare-grid th,
.compare-grid td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule-2);
  text-align: left;
  vertical-align: baseline;
}

.compare-grid th:first-child,
.compare-grid td:first-child {
  padding-left: 0;
}

.compare-grid thead th {
  padding-bottom: 12px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 640;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-ink);
}

.compare-grid thead th:first-child {
  width: 38%;
  color: var(--ink-3);
  font-weight: 500;
}

.compare-grid tbody th[scope="row"] {
  font-weight: 480;
  color: var(--ink);
}

.compare-grid td {
  color: var(--ink-2);
}

.compare-grid td.yes {
  color: var(--pass);
  font-weight: 560;
}

.compare-grid td.no {
  color: var(--ink-3);
}

.compare-grid .num {
  font-family: var(--mono);
  font-size: 13px;
}

.compare-grid tr.group-row th {
  padding: 26px 0 8px;
  font-size: 12.5px;
  font-weight: 640;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}

.compare-grid tbody:first-of-type tr.group-row th {
  padding-top: 14px;
}

.compare-grid tbody tr:hover {
  background: transparent;
}

/* Every group keeps the rule under its last row, so the row header and its
   cells end together; only the table's final row goes without. */
.compare-grid tbody tr:last-child td { border-bottom: 1px solid var(--rule-2); }
.compare-grid tbody:last-of-type tr:last-child th,
.compare-grid tbody:last-of-type tr:last-child td { border-bottom: 0; }

/* --- Credits & FAQ Two-Column Splits -------------------------------------- */

.credits-split {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 24px 56px;
  align-items: start;
}

.credits-copy p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 64ch;
}
.credits-copy p:last-child { margin-bottom: 0; }
.credits-copy strong { color: var(--ink); }
.credits-copy .num { font-family: var(--mono); font-size: 13.5px; }

.faq-clean {
  border-top: 1px solid var(--rule);
}

.faq-clean details,
.faq-static {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.faq-clean summary,
.faq-static h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 580;
  color: var(--ink);
  padding: 2px 0;
}

.faq-clean details > p,
.faq-static > p {
  margin: 10px 0 4px 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

/* The one answer that is always shown has no caret, so it sits flush left. */
.faq-static { padding: 18px 0 20px; }
.faq-static > p { margin-left: 0; }

/* --- Footer --------------------------------------------------------------- */

.home-foot {
  padding: 22px 0;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 13px;
}

.home-foot .pricing-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.home-foot .vail-mark { width: 16px; height: 16px; color: var(--ink-2); }
.home-foot a { color: var(--ink-2); }
/* The footer links are set apart by space, not by a separator character. */
.home-foot-right { margin-left: auto; display: inline-flex; gap: 18px; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 880px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .plan-desc { min-height: 0; }
  .credits-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .credits-split > h2 { margin-bottom: 0; }
}

@media (max-width: 760px) {
  .pricing-wrap { padding: 0 20px; }
  .plan { padding: 24px 20px; }
  .home-foot-right { margin-left: 0; }

  /* Both tables stack: the row's name on a line of its own, then each value
     under the name of the column it belongs to. Nothing scrolls sideways. */
  .compare-wrap { overflow: visible; }
  .compare-grid,
  .assured-grid { display: block; min-width: 0; overflow: visible; }
  .compare-grid thead,
  .assured-grid thead { display: none; }
  .compare-grid tbody,
  .assured-grid tbody { display: block; }

  .compare-grid tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; border-bottom: 1px solid var(--rule-2); }
  .compare-grid th[scope="row"] { grid-column: 1 / -1; padding: 12px 0 4px; border-bottom: 0; font-weight: 560; }
  .compare-grid td,
  .compare-grid tbody tr:last-child td { padding: 0 0 12px; border-bottom: 0; font-size: 13.5px; }
  .compare-grid tbody:last-of-type tr:last-child { border-bottom: 0; }
  .compare-grid td::before,
  .assured-grid td::before {
    display: block;
    margin-bottom: 1px;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-3);
  }
  .compare-grid td::before { content: attr(data-plan); }
  .compare-grid tr.group-row { display: block; border-bottom: 1px solid var(--rule); }
  .compare-grid tr.group-row th { display: block; padding: 28px 0 8px; border-bottom: 0; }

  .assured-grid tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
  .assured-grid tbody th,
  .assured-grid td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .assured-grid td { margin-top: 8px; }
  .assured-grid td::before { content: attr(data-label); }
}
