/* ==========================================================================
   The public price list.

   Built on theme.css's tokens rather than a palette of its own. The concept it
   came from was a dark standalone mockup; a pricing page that looks like a
   different product than the one it is selling is the fastest way to make a
   price look like it belongs to someone else.

   Three column layout that collapses to one, and every wide thing — the
   assistant table especially — scrolls inside its own box so the page body
   never scrolls sideways.
   ========================================================================== */

.pr {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) 0 72px;
}

/* --- Head ---------------------------------------------------------------- */

.pr__head { text-align: center; }

.pr__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.pr__h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.pr__lede {
  max-width: 660px;
  margin: 0 auto 28px;
  color: var(--ink-2);
  font-size: 16px;
}

.pr__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-bottom: 34px;
}

/* The billing toggle. A radio group wearing a segmented control: the input is
   hidden from sight but not from the accessibility tree or the keyboard, and
   `:has()` is what lets the label under it light up without a script. */
.pr__toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.pr__opt { display: inline-flex; cursor: pointer; }
.pr__opt input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.pr__opt span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.pr__opt i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent-ink);
}
.pr__opt input:checked + span { background: var(--accent); color: #fff; }
.pr__opt input:checked + span i { color: rgba(255, 255, 255, .82); }
.pr__opt input:focus-visible + span { box-shadow: var(--ring); }

.pr__sites {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.pr__sites input {
  width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.pr__sites input:focus-visible { outline: none; box-shadow: var(--ring); }

.pr__siteshint {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- Plan cards ---------------------------------------------------------- */

.pr__tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.prc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* The one card that is meant to be picked. Ring plus lift rather than a
   different colour: three cards in three colours is a chart, not a choice. */
.prc--pop {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-lg);
}

.prc__tag {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prc__name { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.prc__who { margin: 2px 0 16px; font-size: 13px; color: var(--ink-3); }

.prc__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.03em;
  /* Tabular figures, so 19 -> 15.83 does not shuffle the layout under the
     billing toggle. */
  font-variant-numeric: tabular-nums;
}
.prc__cur { font-size: 22px; }
.prc__price small {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
}

.prc__total {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.prc__total:empty { margin: 0; }

.prc__feats {
  flex: 1;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}
.prc__feats li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.prc__feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.prc__cta {
  display: block;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.prc__cta:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.prc__cta--pop {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.prc__cta--pop:hover { background: var(--accent-2); color: #fff; }
.prc__cta[disabled], .prc__cta[aria-disabled="true"] {
  opacity: .6;
  cursor: progress;
}

.pr__trialnote {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* --- End-to-End strip ---------------------------------------------------- */

.pr__strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.1fr);
  gap: 28px;
  margin-top: 44px;
  padding: 30px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pr__stript h2 { margin: 0 0 8px; font-size: 20px; }
.pr__stript p { margin: 0; font-size: 14px; color: var(--ink-2); }

.pr__form { display: grid; gap: 12px; }
.pr__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pr__field { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); }
.pr__field input, .pr__field textarea {
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
}
.pr__field input:focus-visible, .pr__field textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* The honeypot. Off-canvas rather than display:none — some bots skip fields
   that are display:none, and this one is meant to be filled in. */
.pr__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr__acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pr__acts .prc__cta { flex: none; padding: 11px 24px; }
.pr__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.pr__note[data-state="ok"] { color: var(--ok); }
.pr__note[data-state="bad"] { color: var(--danger); }

/* --- Assistant table ----------------------------------------------------- */

.pr__assistant {
  margin-top: 44px;
  padding: 30px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pr__assistant h2 { margin: 0 0 8px; font-size: 20px; }
.pr__sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); max-width: 760px; }
.pr__sub b { color: var(--ink); font-weight: 500; }

.pr__scroll { overflow-x: auto; }

.pr__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.pr__table th, .pr__table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.pr__table thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pr__table tbody th { font-weight: 500; color: var(--ink); }
.pr__table tbody td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr__table tbody tr:last-child th,
.pr__table tbody tr:last-child td { border-bottom: 0; }

.pr__foot { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

.pr__legal {
  margin: 32px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* --- Narrow -------------------------------------------------------------- */

@media (max-width: 760px) {
  .pr__strip { grid-template-columns: 1fr; padding: 22px; }
  .pr__row { grid-template-columns: 1fr; }
  .pr__assistant { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr__opt span { transition: none; }
}

/* --- Comparison ----------------------------------------------------------
   The three cards answer "what do I get". Only this answers "what do I lose by
   going down a tier", which is the question somebody comparing prices is
   actually asking — and it is a table, because three parallel prose lists are
   three chances to promise something a tier does not include.
   ------------------------------------------------------------------------- */

.pr__compare {
  margin-top: 44px;
  padding: 30px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pr__compare h2 { margin: 0 0 8px; font-size: 20px; }

.pr__table--cmp { min-width: 640px; }
.pr__table--cmp th[scope="row"] { width: 38%; font-weight: 400; }

/* Framed and banded like the billing page's copy of this table, so the two
   surfaces show one design. overflow-x stays auto for narrow screens. */
.pr__scroll:has(> .pr__table--cmp) {
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow-x: auto;
}
.pr__table--cmp thead th {
  text-align: center;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.pr__table--cmp tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
}
.pr__table--cmp .pr__ccol { border-left: 1px solid var(--rule); }
.pr__table--cmp th, .pr__table--cmp td { vertical-align: middle; }

.pr__clbl { display: block; color: var(--ink); font-weight: 500; }
.pr__cnote {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 52ch;
}

/* Centered over the column. Named with the table's own class because
   `.pr__table td` sets text-align: left at higher specificity. */
.pr__table--cmp .pr__ccol { text-align: center; }
.pr__ccol { text-align: center; font-size: 13.5px; }
/* The popular column, tinted the whole way down rather than outlined: a border
   on every cell of one column draws a ladder. */
.pr__ccol--pop { color: var(--accent-ink); }
.pr__table--cmp tbody td:nth-child(3) { background: var(--accent-soft); }
.pr__table--cmp thead th:nth-child(3) { background: var(--accent-soft); }

.pr__yes { color: var(--accent); font-weight: 700; }
.pr__no { color: var(--ink-faint); }

@media (max-width: 760px) {
  .pr__compare { padding: 22px; }
}
