@charset "UTF-8";

/*
  Bounty Operator: method and landing pages

  /method, /gauntlet, /panel-review, the profile landing pages,
  /your-model-your-key, /compare and /pricing. Page modules live in
  web/site/pages/method/. Everything here is built from the tokens in
  base.css; shared components are not restyled, only placed.

   1. Page hero
   2. Example frame
   3. Lists: ticks, points, needs, related links
   4. Verdict list
   5. Method: closure table, check index, check cards, what lands
   6. Gauntlet: pipeline, stage run, stage cards, dossier ledger
   7. Panel review
   8. Ledger card (claims, rejection reasons, overlap)
   9. Your model, your key: data path, providers
  10. Compare: table and sources
  11. Pricing
  12. Call-to-action band
  13. Tables on a phone, links on a touch screen
*/

/* ==========================================================================
   1. Page hero
   ========================================================================== */

.lp-hero {
  padding-block: var(--sp-24) var(--sp-48);
}

.lp-hero .breadcrumbs {
  margin-bottom: var(--sp-32);
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-32);
  align-items: start;
}

.lp-hero__text {
  max-width: 46rem;
}

.lp-hero__text > * + * {
  margin-top: var(--sp-16);
}

.lp-hero__text > .lede {
  margin-top: var(--sp-24);
}

.lp-hero__text > .lp-hero__actions {
  margin-top: var(--sp-32);
}

.lp-hero__aside {
  min-width: 0;
}

/* On a phone the two actions share the row width, one above the other. */
@media (max-width: 29.99em) {
  .lp-hero__actions > .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 64em) {
  .lp-hero {
    padding-block: var(--sp-32) var(--sp-72);
  }

  .lp-hero--split .lp-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: var(--sp-48);
  }

  /* The text stays in view while a tall example scrolls past it. */
  .lp-hero__text--sticky {
    position: sticky;
    top: var(--sp-24);
  }
}

/* Tradi3's linked results: the only proof the site shows. */
.proofline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-8);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.lp-hero__text > .proofline {
  margin-top: var(--sp-32);
}

.proofline > .icon {
  margin-top: 0.25em;
  color: var(--accent);
}

/* The verdict vocabulary beside the /method headline. */
.glance {
  display: grid;
  gap: var(--sp-16);
  padding: var(--sp-24);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.glance .kv__row:first-child {
  padding-top: 0;
}

.glance .kv__row:last-child {
  padding-bottom: 0;
}

/* ==========================================================================
   2. Example frame
   ========================================================================== */

/* Invented output is always framed and labelled, so nobody reads it as a real finding. */
.example {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-hero);
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}

.example__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8) var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  border-bottom: 1px dashed var(--line-strong);
}

.example__body {
  padding: var(--sp-12);
}

@media (min-width: 48em) {
  .example__body {
    padding: var(--sp-16);
  }
}

/* In a half-width column the dossier stacks and the ledger margin narrows. */
.example--narrow .dossier {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 1.25rem;
}

.example--narrow .dossier .counts {
  grid-column: auto;
  grid-row: auto;
}

@media (min-width: 44em) {
  .example--narrow .finding {
    --rail-label: 9.25rem;
  }

  .example--narrow .rail__label {
    padding-inline: var(--sp-16) var(--sp-8);
  }

  .example--narrow .finding__head,
  .example--narrow .finding__bar {
    padding-left: var(--sp-16);
  }
}

/* ==========================================================================
   3. Lists
   ========================================================================== */

/* A tick in front of every item. */
.ticks {
  display: grid;
  gap: var(--sp-12);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.ticks > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-12);
}

.ticks .icon {
  margin-top: 0.25em;
  color: var(--accent);
}

/* Numbered points in the ledger voice: a hairline, a mono index, a title, a line. */
.points {
  counter-reset: point;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-24) var(--sp-32);
}

.points__item {
  counter-increment: point;
  padding-top: var(--sp-16);
  border-top: 1px solid var(--line-strong);
}

.points__item::before {
  content: counter(point, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-8);
  color: var(--accent);
  font: 600 var(--fs-12) / 1.4 var(--font-mono);
  letter-spacing: 0.06em;
}

.points__title {
  font-size: var(--fs-18);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.points__text {
  margin-top: var(--sp-8);
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.6;
}

@media (min-width: 40em) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .points--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .points--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* What to paste in. */
.needs {
  display: grid;
  gap: var(--sp-16);
}

.needs__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-12);
  padding: var(--sp-16);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
}

.needs__item > .icon {
  margin-top: 0.2em;
  color: var(--muted);
}

.needs__name {
  font-weight: 600;
  line-height: 1.4;
}

.needs__opt {
  margin-left: var(--sp-8);
  color: var(--muted);
  font: 600 var(--fs-12) / 1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.needs__note {
  margin-top: var(--sp-4);
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.needs__limits {
  margin-top: var(--sp-16);
}

/* Links to the pages that follow from this one. */
.related {
  padding-top: var(--sp-24);
  border-top: 1px solid var(--line);
}

.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-12);
  margin-top: var(--sp-16);
}

.related__link {
  display: grid;
  gap: var(--sp-4);
  height: 100%;
  min-height: var(--tap);
  padding: var(--sp-16);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}

.related__link:hover {
  border-color: var(--accent);
}

.related__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-weight: 600;
  line-height: 1.4;
}

.related__label .icon {
  color: var(--accent);
}

.related__text {
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.5;
}

/* ==========================================================================
   4. Verdict list
   ========================================================================== */

.verdicts {
  display: grid;
  font-size: var(--fs-14);
  line-height: 1.55;
}

.verdicts__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  padding-block: var(--sp-12);
  border-top: 1px solid var(--line);
}

.verdicts__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.verdicts__row:last-child {
  padding-bottom: 0;
}

.verdicts dd {
  color: var(--muted);
}

.verdicts--boxed {
  padding: var(--sp-24);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

@media (min-width: 30em) {
  .verdicts__row {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: var(--sp-16);
    align-items: start;
  }
}

/* ==========================================================================
   5. Method
   ========================================================================== */

/* Links to checks: 04 05 */
.checkrefs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.checkref {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 1.75rem;
  padding: 0 var(--sp-8);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--accent);
  font: 600 var(--fs-12) / 1 var(--font-mono);
  text-decoration: none;
  transition: border-color var(--t-fast);
}

.checkref:hover {
  border-color: var(--accent);
}

@media (pointer: coarse) {
  .checkref {
    min-width: var(--tap);
    min-height: var(--tap);
  }
}

/* Closure reasons: a list, so the check links stay in view on a phone. */
.closures {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: clip;
}

.closures__head {
  display: none;
}

.closures__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-16);
}

.closures__row + .closures__row {
  border-top: 1px solid var(--line);
}

.closures__reason {
  font-weight: 650;
  line-height: 1.4;
}

.closures__saw {
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.55;
}

@media (min-width: 48em) {
  .closures__head,
  .closures__row {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr) 8.5rem;
    gap: var(--sp-24);
    align-items: center;
    padding: var(--sp-12) var(--sp-24);
  }

  .closures__head {
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font: 600 var(--fs-12) / 1.5 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .closures__head + .closures__row {
    border-top: 0;
  }

  .closures__saw {
    color: var(--text);
  }
}

/* The index beside the twelve checks: a grid on small screens, a sticky column on wide ones. */
.checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-32);
}

.toc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0 var(--sp-16);
  margin-top: var(--sp-8);
}

.toc__list a {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  min-height: var(--tap);
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--t-fast);
}

.toc__list a:hover {
  color: var(--text);
}

.toc__n {
  flex: none;
  color: var(--accent);
  font: 600 var(--fs-12) / 1 var(--font-mono);
}

@media (min-width: 64em) {
  .checks {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--sp-48);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: var(--sp-24);
  }

  .toc__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc__list a {
    min-height: 2.25rem;
  }
}

.checks__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-24);
  min-width: 0;
}

/* A check is a ledger card: the question it asks, why reports die on it, the verdict it leads to. */
.check-card {
  scroll-margin-top: var(--sp-24);
}

.check-card__asks {
  max-width: 62ch;
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.5;
}

.check-card__leads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

/* The one line under the checks: where the executable version runs. */
.checks__run {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-16) var(--sp-24);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  font-weight: 600;
  line-height: 1.5;
}

.checks__run > .icon {
  flex: none;
  color: var(--accent);
}

.checks__run .link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* What makes a report land. */
.lands {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.lands__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-8) var(--sp-12);
  align-items: start;
  padding: var(--sp-16);
}

.lands__item + .lands__item {
  border-top: 1px solid var(--line);
}

.lands__item > .icon {
  margin-top: 0.3em;
  color: var(--ok);
}

.lands__text {
  font-weight: 500;
  line-height: 1.5;
}

.lands__item > .checkrefs {
  grid-column: 2;
}

@media (min-width: 48em) {
  .lands__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--sp-16) var(--sp-24);
  }

  .lands__item > .icon {
    margin-top: 0;
  }

  .lands__item > .checkrefs {
    grid-column: 3;
  }
}

/* ==========================================================================
   6. Gauntlet
   ========================================================================== */

/* Eight steps do not fit one row on a phone: two columns there, one row from 64em. */
.pipeline {
  margin-bottom: var(--sp-32);
}

.pipeline.stepper ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pipeline .stepper__step {
  justify-content: flex-start;
  text-decoration: none;
}

@media (min-width: 40em) {
  .pipeline.stepper ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .pipeline.stepper ol {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .pipeline .stepper__step {
    justify-content: center;
    padding-inline: var(--sp-8);
  }
}

/* The stages as a vertical run: a numbered marker on a spine, then the stage. */
.stages {
  display: grid;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--sp-16);
  padding-bottom: var(--sp-24);
  scroll-margin-top: var(--sp-24);
}

.stage::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 0;
  left: calc(1.125rem - 1px);
  width: 2px;
  background: var(--line-strong);
}

.stage:last-child {
  padding-bottom: 0;
}

.stage:last-child::before {
  display: none;
}

.stage__marker {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font: 600 var(--fs-14) / 1 var(--font-mono);
}

.stage__body {
  min-width: 0;
  padding: var(--sp-16);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stage:target .stage__body {
  border-color: var(--accent);
}

.stage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8) var(--sp-12);
}

.stage__name {
  font-size: var(--fs-18);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.stage__id {
  color: var(--muted);
}

.stage__checks {
  margin-left: auto;
}

/* A link inside a line of text is told apart by more than its colour. */
.stage__checks a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.stage__checks a:hover {
  text-decoration-thickness: 2px;
}

.stage__decides {
  max-width: 84ch;
  margin-top: var(--sp-8);
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.6;
}

.stage__out {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-8) var(--sp-12);
  margin-top: var(--sp-12);
}

.stage__outputs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.stage__outputs > li {
  padding: 0.1875rem var(--sp-8);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  font-size: var(--fs-13);
  line-height: 1.4;
}

@media (min-width: 48em) {
  .stage__body {
    padding: 1.25rem var(--sp-24);
  }
}

.gauntlet-end {
  display: grid;
  gap: var(--sp-12);
  margin-top: var(--sp-32);
}

/* The stages as cards on /gauntlet. */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-16);
}

.stage-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stage-card__n {
  color: var(--accent);
}

.stage-card__name {
  font-size: var(--fs-18);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.stage-card__decides {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.stage-card .stage__outputs {
  margin-top: var(--sp-4);
}

/* The decision under the dossier: blocker, cheapest action, severity, deadline. */
.ledger {
  padding: var(--sp-4) 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.decision .kv__row:first-child dd {
  font-weight: 600;
}

.stage-cell {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  white-space: nowrap;
}

.stage-cell__n {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border: 1px solid var(--line-control);
  border-radius: 50%;
  color: var(--muted);
  font: 600 var(--fs-12) / 1 var(--font-mono);
}

/* ==========================================================================
   7. Panel review
   ========================================================================== */

.panel-seats {
  padding: var(--sp-16) 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.panel-seats__list {
  display: grid;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  font-size: var(--fs-14);
}

.panel-seats__list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-8) var(--sp-12);
}

.panel-seats__n {
  color: var(--muted);
  font: 600 var(--fs-12) / 1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* How many reviewers reported a finding: 2/3 and a dot per reviewer. */
.tally {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  white-space: nowrap;
}

.tally__n {
  margin-right: var(--sp-4);
  font: 600 var(--fs-13) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tally__dot {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--line-control);
  border-radius: 50%;
}

.tally__dot[data-on] {
  border-color: var(--accent);
  background: var(--accent);
}

.agree-mini {
  display: grid;
  margin-top: var(--sp-8);
  font-size: var(--fs-14);
  line-height: 1.45;
}

.agree-mini > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-8) var(--sp-12);
  align-items: center;
  padding-block: var(--sp-12);
  border-top: 1px solid var(--line);
}

.agree-mini > li:first-child {
  border-top: 0;
}

.agree-mini__finding {
  grid-column: 1 / -1;
}

.agree-mini .tally,
.agree-mini .chip {
  justify-self: start;
}

@media (min-width: 30em) {
  .agree-mini > li {
    grid-template-columns: minmax(0, 1fr) auto 6rem;
  }

  .agree-mini__finding {
    grid-column: auto;
  }
}

.cell-note {
  display: block;
  margin-top: var(--sp-8);
  color: var(--muted);
}

/* ==========================================================================
   8. Ledger card
   ========================================================================== */

/* Claims, rejection reasons and overlap rows share the finding card's ledger. */
.ledger-card .rail__label {
  overflow-wrap: anywhere;
}

.ledger-card__name {
  font-weight: 650;
  line-height: 1.4;
}

/* The class chip sits above its explanation, whatever its length. */
.ledger-card .rail__answer {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
  justify-items: start;
}

.ledger-card__refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.ledger-card__refs > .ref {
  min-width: 0;
}

/* ==========================================================================
   9. Your model, your key
   ========================================================================== */

/* Three stops, in the order the request travels. */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-32);
}

.flow__node {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* The arrow to the next stop. */
.flow__node + .flow__node::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--sp-32) + 0.375rem);
  left: var(--sp-24);
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
  transform: rotate(90deg);
}

.flow__head {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-bottom: var(--sp-4);
}

.flow__head .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
}

.flow__name {
  font-size: var(--fs-18);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.flow__does {
  display: grid;
  gap: var(--sp-8);
  margin-top: var(--sp-16);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--line);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.flow__note {
  margin-top: var(--sp-16);
}

@media (min-width: 60em) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow__node + .flow__node::before {
    top: 1.375rem;
    left: calc(-1 * var(--sp-32) + 0.375rem);
    transform: none;
  }
}

.stored {
  display: grid;
  gap: var(--sp-12);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.stored > li {
  position: relative;
  padding-left: var(--sp-16);
}

.stored > li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 1px;
  background: var(--line-control);
}

.model-list {
  display: grid;
  gap: var(--sp-4);
}

/* ==========================================================================
   10. Compare
   ========================================================================== */

/* On a phone one option is readable at a time and the row label stays in view. */
.table.compare :is(th, td):not(.num) {
  min-width: max(11rem, calc(100vw - 2 * var(--gutter) - 9.5rem - 2px));
  padding-inline: var(--sp-12);
}

.table.compare tr > :first-child:not(.num) {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 9.5rem;
  min-width: 9.5rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.table.compare thead tr > :first-child {
  background: var(--surface-2);
}

.compare__hint {
  margin: calc(-1 * var(--sp-16)) 0 var(--sp-16);
}

@media (min-width: 64em) {
  .compare__hint {
    display: none;
  }
}

.compare tbody th {
  color: var(--muted);
  font: 600 var(--fs-12) / 1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 64em) {
  .table.compare :is(th, td):not(.num) {
    min-width: 0;
    padding-inline: var(--sp-16);
  }

  .table.compare tr > :first-child:not(.num) {
    width: 10.5rem;
    min-width: 10.5rem;
  }
}

/* The product's own column carries the observed colour. */
.compare :is(th, td):nth-child(2) {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.compare thead th:nth-child(2) {
  color: var(--accent);
}

.cmp-stack {
  display: grid;
  gap: var(--sp-8);
}

/* The four tools on the same ground. As a table the description gets the
   room; below 60em it stacks (.stack-table--wide in base.css). */
.table.compare-tools tbody td:last-child {
  color: var(--muted);
}

@media (min-width: 60em) {
  .compare-tools :is(th, td):nth-child(1) {
    width: 15%;
  }

  .compare-tools :is(th, td):nth-child(2) {
    width: 37%;
  }

  .compare-tools :is(th, td):nth-child(3) {
    width: 20%;
  }

  .table.compare-tools tbody td:last-child {
    min-width: 9rem;
  }
}

.src {
  color: var(--accent);
  font: 600 var(--fs-12) / 1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
}

.src:hover {
  text-decoration: underline;
}

.compare__note {
  max-width: 80ch;
  margin-top: var(--sp-16);
}

.sources {
  display: grid;
  gap: var(--sp-12);
  font-size: var(--fs-14);
  line-height: 1.55;
}

.sources__item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--sp-8);
  scroll-margin-top: var(--sp-24);
}

.sources__item:target {
  color: var(--text);
  outline: 1px dashed var(--accent);
  outline-offset: var(--sp-8);
  border-radius: var(--r-chip);
}

.sources__n {
  color: var(--accent);
  font: 600 var(--fs-12) / 1.9 var(--font-mono);
}

.sources__date {
  display: block;
  color: var(--muted);
  font-size: var(--fs-13);
}

/* ==========================================================================
   11. Pricing
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-24);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  padding: var(--sp-24);
  border: 1px solid var(--line);
  border-radius: var(--r-hero);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.plan--accent {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}

.plan__name {
  font-size: var(--fs-22);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-8);
}

.plan__amount {
  font-size: var(--fs-40);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__per {
  color: var(--muted);
}

.plan__for {
  color: var(--muted);
}

.plan .ticks {
  flex: 1 1 auto;
  align-content: start;
  padding-top: var(--sp-16);
  border-top: 1px solid var(--line);
}

.plan__cta {
  margin-top: var(--sp-8);
}

.plans__terms {
  margin-top: var(--sp-16);
}

/* Where the account script writes "Checkout closed. Nothing was charged." */
.plans__note:not(:empty) {
  margin-bottom: var(--sp-16);
}

.plan-yes {
  color: var(--ok);
}

.plans-table :is(th, td):not(:first-child) {
  min-width: 9rem;
}

/* Three short columns fit a phone once the column minimums are lifted and the
   header may wrap. */
@media (max-width: 43.99em) {
  .table.plans-table :is(th, td):not(.num),
  .table.plans-table tbody th:not(.num),
  .table.plans-table tbody td:not(.num, .mono):last-child {
    min-width: 0;
    padding-inline: var(--sp-8);
  }

  .table.plans-table tr > :first-child {
    padding-left: var(--sp-12);
  }

  .table.plans-table thead th {
    white-space: normal;
  }
}

/* On the narrowest phones the chip may break after its first word. */
@media (max-width: 22.49em) {
  .plans-table .chip {
    height: auto;
    padding-block: 0.125rem;
    white-space: normal;
  }
}

@media (min-width: 48em) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan {
    padding: var(--sp-32);
  }
}

/* ==========================================================================
   12. Call-to-action band
   ========================================================================== */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-24);
  padding: var(--sp-24);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-hero);
  background: var(--surface-2);
}

.cta-band__title {
  max-width: 24ch;
}

.cta-band__lede {
  max-width: 48ch;
  margin-top: var(--sp-12);
  color: var(--muted);
}

.cta-band__actions {
  display: grid;
  gap: var(--sp-12);
  align-content: center;
}

@media (min-width: 60em) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-48);
    padding: var(--sp-48);
  }
}

/* ==========================================================================
   13. Tables on a phone, links on a touch screen
   ========================================================================== */

/* The tables stack on a phone (.stack-table in base.css). The note under a
   reference then sits on its own line. */
@media (max-width: 43.99em) {
  .stack-table .cell-note {
    margin-top: var(--sp-4);
  }
}

/* A link that stands alone, outside a sentence, takes the full tap height. */
@media (pointer: coarse) {
  .section-head__aside > .link,
  .card__foot > .link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }
}

@media print {
  .cta-band,
  .related,
  .pipeline {
    display: none;
  }
}
