/*
 * Pricing + questions. Page-specific only: type, colour, space, the card, the grid, the device
 * frame and the .qa disclosure are all decided by tokens.css and styles.css.
 *
 * This page is mostly words, so almost everything here is about space and about making the
 * membership card the thing the eye lands on. Two shots, both answering a question a sentence
 * could not.
 *
 * .ticks moved to styles.css on 2026-11-15. The old note said it would be useful on
 * a second page and really belongs in styles.css. It is here because this rebuild was scoped to
 * pricing.html and pages/pricing.css only.
 */

/* ---------- hero ---------- */

.pricing-hero .lead { margin-top: var(--space-3); }

/* The hero's words keep a readable measure inside the page's own column, rather than sitting in
   a narrower column that started 208px to the right of everything under it. */
.pricing-hero .lead,
.pricing-hero .hero-note { max-width: 52ch; }

.hero-note { margin-top: var(--space-2); max-width: 46ch; }

/* ---------- plans ---------- */

.plan h3 { margin-bottom: var(--space-1); }

/*
 * THE PRICE IS NO LONGER THE LARGEST OBJECT IN THE CARD, and the note above this one used to say
 * it should be. Both reviewers measured the same thing against real pages and reached the same
 * conclusion independently. Price size as a multiple of each page's own body size: Apple 1.0x,
 * Linear 1.0x, Rolex 1.08x (at weight 300), Things 0.85x, Nothing 0.69x. The two pages that set
 * their price larger than 1.4x were Koala and Peak Design - the two discount-led pages in the
 * sample, both with a struck-through price beside it. At --step-3 against 16px body this card was
 * at 2.4x, shouting its price harder than any page either reviewer measured, premium or not.
 *
 * --step-1 puts it at about 1.2x, between Rolex and Aesop, and below the plan name at --step-2 -
 * so "Premium" outranks "$15", which is the right way round for something sold as a plan rather
 * than a deal. "a month" is set at the SAME size as the number, not smaller: Apple renders $1199
 * and "or $49.95/mo." at one size and one weight joined by "or", refusing to privilege either.
 */
.plan-price {
  margin: 0 0 var(--space-1);
  font-size: var(--step-1);
  font-family: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
/* ONE FAMILY FOR THE WHOLE STRING. "A$15" was Manrope and "a month" was Inter, at the same size,
   in one line - the texture change is visible at reading size and no premium page does it.
   Linear, Superhuman and Apple each set the number and its unit in one face. Tabular figures so
   "15" and "22" occupy the same width down the row of cards. */
.plan-price { font-variant-numeric: tabular-nums; }

.plan-price span {
  font-size: var(--step-1);
  letter-spacing: 0;
  margin-left: 0.15em;
}
.plan--member .plan-price { color: var(--on-ink); }

.plan-for { margin-bottom: 0; }

.plan .plan-note { margin: var(--space-3) 0 0; }

/* A checked list, not a bulleted one: each line is something you get. */

/*
 * The membership is the plan being sold, so it is the only dark object in a light section. One
 * inverted card does more than a badge, a border or a "most popular" label would.
 */
.plan--member {
  background:
    radial-gradient(40rem 20rem at 20% -20%, hsl(154 40% 24% / 0.55), transparent 65%),
    var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.plan--member h3 { color: var(--on-ink); }
.plan--member p,
.plan--member li,
.plan--member .meta { color: var(--on-ink-secondary); }
.plan--member .eyebrow { color: hsl(154 40% 62%); }
.plan--member .ticks li::before { border-color: hsl(154 40% 62%); }

/*
 * Each card is its own height rather than stretched to match: the free plan has two lines in it
 * and padding it out to the membership's height left a hole in the middle of the card. The dark
 * one being taller, and sitting a touch proud, is the hierarchy.
 */
@media (min-width: 46rem) {
  .plans .grid { align-items: start; }
  .plan--member { transform: translateY(-0.5rem); }
}

/* ---------- what stays the same ---------- */

.constants .ticks { margin-top: var(--space-3); }
.constants .meta { margin-top: var(--space-3); }

/* ---------- questions ---------- */

.questions h2 { margin-bottom: var(--space-4); }

/* .qa draws its own top rule; the last one needs a line under the stack to close it off. */
.qa:last-of-type { border-bottom: 1px solid var(--line); }

/* The summary already carries the question's type; the heading inside it is for structure. */
.qa summary h3 {
  font: inherit;
  letter-spacing: inherit;
  margin: 0;
  max-width: 44ch;
}

/* A shot inside an answer stays smaller than a section shot: it is evidence, not a feature. */
.qa-shot { margin: var(--space-3) 0 0; }
.qa-shot .device { width: min(100%, 15rem); }
.qa-shot .shot-caption { max-width: none; }

/* ---------- closing ---------- */

.pricing-close { text-align: center; }
.pricing-close .lead { margin-inline: auto; }
.pricing-close .cta-row { justify-content: center; }
.pricing-close .hero-note { margin-inline: auto; }

/* The strongest commercial argument on the site was collapsed inside an FAQ answer. It now
   leads the plans, so it is read before the cards rather than after a click. */
.plans-lead { margin-top: var(--space-2); }

/* ---------- the plan's own button ---------- */

/*
 * Each card ends in the decision it is asking for, so the button sits with the plan rather
 * than in a shared row underneath. Full width because a card is already a column: a button
 * floating at its natural width inside one reads as an afterthought.
 *
 * The note stays below the button. It qualifies what you are about to buy, and a reader
 * should meet it before the click, not after.
 */
.plan-cta {
  display: flex;
  width: 100%;
  margin-top: var(--space-3);
  justify-content: center;
}

.plan .plan-note { margin-top: var(--space-2); }

/* Inside the inverted card the quiet button would paint a light surface on dark; the
   membership card's own button is the primary one, so only the light cards need this. */
.plan--member .plan-cta { color: var(--on-ink); }

/* ---------- the cards line up ---------- */

/*
 * THE THREE BUTTONS SAT AT THREE DIFFERENT HEIGHTS.
 *
 * Measured at 1440px: Free's call to action landed 92px above Premium's and 50px above
 * Platinum's, because each card was its own height and each had a different number of bullet
 * points. Three primary controls at three heights is the strongest "assembled from parts" tell
 * on the page, and it sits on the one screen where a reader is deciding.
 *
 * AND IT DID NOT WORK. Reverted 2026-11-21, on three independent reviews across two cycles.
 *
 * The reasoning above was that the hole appeared "because the extra height landed in the
 * middle", so anchoring the pair to the floor would put the slack under the bullets where it
 * would read "as the card breathing". It does not. Free has two one-line bullets against
 * Premium's three, so the stretch hands it about 200px of slack and margin-top:auto collects
 * all of it into one gap between "Your first face-on swing" and "Coming to the App Store".
 * Three reviewers measured that gap on the desktop capture without being told to look.
 *
 * So the earlier comment was right the first time: do not stretch them. Three buttons at three
 * heights is a smaller fault than one card with a hole in its middle, and the membership card's
 * lift and dark fill already carry the ranking. Linear's pricing columns are different heights
 * and nobody notices, because nothing inside them is empty.
 */
@media (min-width: 46rem) {
  .plans .grid { align-items: start; }

  .plan {
    display: flex;
    flex-direction: column;
  }

  .plan .plan-note { margin-top: var(--space-3); padding-top: 0; }
  .plan .plan-cta { margin-top: var(--space-3); }

  /* The membership still sits proud. That is the hierarchy, and it survives the stretch. */
  .plan--member { transform: translateY(-0.5rem); }
}

/* ---------- what every plan carries ---------- */

/*
 * These four facts were four clauses inside the eight-line centred paragraph under the cards,
 * where nobody read them. They are the constants - true of free, Premium and Platinum alike -
 * so they are set as a row that can be taken in without reading a sentence.
 */
/* The `.plan-constants` rules lived here. The list they styled was the third telling of the same
   four caveats and has been deleted from the markup. */

.plan-footnote {
  max-width: 62ch;
  margin: var(--space-3) auto 0;
  text-align: center;
}

@media (max-width: 45.99rem) {
  .plan-footnote { text-align: left; margin-inline: 0; }
}

/* ---------- the product shots on this page ---------- */

/* 20rem here was beating the global `@media (min-width: 64rem) { .device { width: min(100%, 24rem) } }`
   on specificity (0,2,0 against 0,1,0) - so the one piece of evidence on the page a golfer pays
   from rendered about 308px wide on a 1440px screen, and the in-app text in it was too small to
   read. That global rule exists because of a founder complaint in exactly those terms. Raising
   this one rather than deleting it, because the shot still wants to be narrower than a hero. */
.pricing-proof .device { width: min(100%, 22rem); }
@media (min-width: 64rem) { .pricing-proof .device { width: min(100%, 26rem); } }

/* THE CARDS READ TRIAL, PREMIUM, PLATINUM AT EVERY WIDTH (owner, 2026-11-21).
   This block used to set `.plan--member { order: -1 }` below 46rem so Premium came first on a
   phone. It bought one thing and cost another: `order` moves the painted box and not the
   document, so a sighted visitor read Premium, Trial, Platinum while a keyboard or VoiceOver
   visitor still got Trial, Premium, Platinum - WCAG 2.4.3 Focus Order, level A, and the Flexbox
   spec says in as many words that `order` must not be used to reorder content meaningfully.
   The owner ruled for the one true order rather than for Premium leading, so there is nothing
   left to reorder and the mismatch is gone rather than patched.
   `.plans .grid--3 { display: grid }` went with it: `.grid` already declares `display: grid`,
   and it was only here to give `order` a flex/grid parent to act in. */

