/* The pricing page. Wider than the manual because the plans want to sit
   beside each other, and quiet for the same reason everything else here is:
   a page that shouts is a page that is compensating. */

.sell { max-width: var(--widest); margin: 0 auto; padding: 3rem 1.2rem 5rem; }
/* The page shares the manual's styles, and docs.css lifts the width cap on
   every main (body.docs main), which outranks .sell. Without this the text
   stayed in its column while the boxes and plan cards ran the full width of
   the window - 1440px of cards under 670px of text. */
body.pricing-page main.sell { max-width: var(--widest); }

.hero { text-align: center; padding: 2rem 0 3rem; }
.hero h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -0.035em; }
.hero .lede { max-width: 42rem; margin: 1.2rem auto 2rem; font-size: 1.02rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
/* The clip sits between the headline and the words that explain it, in the
   same column as those words: wider than the text, its edges ran past the
   paragraph's on a laptop and the two read as misaligned. The width and
   height attributes reserve its box. */
.promo { max-width: 42rem; margin: 2rem auto 0; }
.promo video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #000;
}
.promo + .lede { margin-top: 2rem; }
.hero .fine { margin-top: .9rem; }

.sell h2 {
  font-size: 1.35rem; letter-spacing: -0.02em;
  margin: 3.2rem 0 1.2rem; text-align: center;
}

/* Two columns that make one point: the left is what you hand over, the
   right is what you keep. Struck through would be too cute; muted and
   smaller says it without the joke. */
.swap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.swap-col {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; background: var(--raised);
}
.swap-col h3 { font-size: .95rem; margin: 0 0 .8rem; }
.swap-col ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.9; }
.swap-col.gone { color: var(--muted); }
.swap-col.gone li { text-decoration: line-through; text-decoration-thickness: 1px; }
.swap-col.kept { border-color: var(--ink); }
.swap-col.kept li { font-weight: 500; }

.ticks {
  list-style: none; padding: 0; margin: 0 auto; max-width: 46rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.6rem;
  font-size: .92rem;
}
.ticks li { padding-left: 1.5rem; position: relative; line-height: 1.6; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem;
  font-size: .8rem; color: var(--ink);
}

.cadence { display: flex; justify-content: center; gap: 0; margin-bottom: 1.6rem; }
.cad {
  font: inherit; font-size: .85rem; padding: .45rem 1.1rem; cursor: pointer;
  background: none; color: var(--muted);
  border: 1px solid var(--line);
}
.cad:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cad:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.cad.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; background: var(--raised);
  display: flex; flex-direction: column; min-height: 100%;
}
/* One plan is marked, and by border weight rather than by colour: the only
   hue in this palette is reserved for refusals. */
.plan.featured { border-color: var(--ink); border-width: 2px; padding: 1.35rem 1.25rem; }
.plan h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.plan .tagline { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: 0 0 1rem; min-height: 2.4rem; }
.plan .amount { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; }
.plan .per { color: var(--muted); font-size: .82rem; }
.plan .saving { display: block; font-size: .76rem; color: var(--muted); margin-top: .2rem; min-height: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; font-size: .85rem; line-height: 1.75; flex: 1; }
.plan li { padding-left: 1.1rem; position: relative; }
.plan li::before { content: "·"; position: absolute; left: .3rem; color: var(--muted); }
.plan li.caveat { color: var(--muted); }
.plan .btn, .plan .ghost { width: 100%; text-align: center; }
.plan .badge {
  display: inline-block; font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}

.fine.mid { text-align: center; margin-top: 1.4rem; }

.faq { max-width: 44rem; margin: 0 auto; }
.faq h3 { font-size: .98rem; margin: 1.8rem 0 .4rem; }
.faq p { font-size: .92rem; }

/* Room after the last button, so scrolling to the end leaves the call to
   action in the middle of the screen rather than on its bottom edge. */
.closer { text-align: center; margin-top: 4rem; padding-bottom: 8rem; }
.closer p { margin: .6rem 0; }

/* Amber, like every other panel here that asks for attention rather than
   reporting a result. Test mode is not an error and must not read as one. */
.testbanner {
  max-width: 46rem; margin: 0 auto 1rem; padding: .7rem 1rem;
  border: 1px solid var(--warn-line); background: var(--warn-bg);
  color: var(--warn); border-radius: var(--radius);
  font-size: .85rem; text-align: center;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 620px) {
  .cards, .swap, .ticks { grid-template-columns: 1fr; }
  .plan .tagline, .plan .saving { min-height: 0; }
  .hero h1 { font-size: 1.8rem; }
  /* The two sentences flow together on a phone; the space before the
     <br> in the markup is what keeps them from touching. */
  .hero h1 br { display: none; }
}
