/* The plan step (/setup/plan), the confirming page (/setup/plan/confirming) and the public /pricing (spec 6.2; plan 1
   Task 9): the plan card (plan-card.js), the code row, the human and source lines, the confirming states, and the
   phone beside the panel where it fits. The frame (frame.css) owns the top bar, the rail, the two columns and the
   action bar; /pricing borrows its top bar and column classes without mounting it, and the phone's slot rule (R150).
   Load after frame.css. Class names carry pl- so nothing meets another page's or the Telegram replica's. */

/* ---------------------------------------------------------------- the heading */
/* the size: every setup step's, from frame.css (R74); /pricing, not a step, keeps the house h1.title size */
.pl .pl-title { line-height: 1.06; }
.pl-sub { margin-top: 12px; overflow-wrap: anywhere; }
.pl-sub:empty { display: none; }
/* R56: the flash host sits in the panel, under the sub-line (frame.css styles it only above the panel); it can hold
   two notices (a server flash, then "You're subscribed.", R75) */
.pl-flash:empty { display: none; }
.pl-flash:not(:empty) { display: grid; gap: var(--s3); margin-top: var(--s5); }

/* ---------------------------------------------------------------- the plan card (plan-card.js) */
.pl-card { margin-top: var(--s6); }
.pl-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.pl-amount {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 750; font-size: clamp(56px, 8vw, 88px);
  line-height: .95; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pl-per { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--body); white-space: nowrap; }
.pl-terms { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--body); }
/* the comparison: a quiet fill inside the panel (the kit's --sunk, "a price row"), ink text */
.pl-compare {
  margin-top: var(--s5); padding: 14px var(--s4); border-radius: var(--r-m); background: var(--sunk);
  font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--ink); text-wrap: pretty;
}
.pl-ticks { list-style: none; display: grid; gap: 12px; margin-top: var(--s5); }
.pl-ticks > li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.pl-ticks .tick { width: 22px; height: 22px; margin-top: -.5px; }
.pl-ticks .tick::after { width: 13px; height: 13px; }
.pl-guarantee { margin-top: var(--s5); font-size: 16px; line-height: 1.4; font-weight: 650; color: var(--ink); }
/* /pricing: Start free trial a little bigger, in the text face, bold, as the homepage's (Mason, 2026-11-20; home.css);
   a least height, not a height (R271) */
[data-page="pricing"] .pl-start {
  height: auto; min-height: 62px; padding-inline: 36px;
  font-family: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -.01em;
}


/* ---------------------------------------------------------------- under a line: the code row and the human line */
.pl-more { display: grid; justify-items: start; gap: 8px; margin-top: var(--s6); padding-top: var(--s4); border-top: 1.5px solid var(--line); }
.pl-code { display: grid; justify-items: start; gap: 8px; width: 100%; }
.pl-code-toggle { gap: 6px; }
.pl-code-toggle::after {
  content: ''; width: 16px; height: 16px; background: currentColor; transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pl-code-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.pl-code-form { width: 100%; padding-bottom: 6px; }
/* the field and Apply: the kit's field row (R278, C-I6, C-M7: div.field-row, Apply as tall as the field, under it on a
   narrow phone) */
.pl-code-field .err { text-wrap: pretty; }
.pl-human { font-size: 16px; line-height: 1.45; color: var(--body); text-wrap: pretty; }
.pl-human a { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* the source of the bookkeeper figure: the page's last line (R56) */
.pl-source { margin-top: var(--s5); text-wrap: pretty; }

/* ---------------------------------------------------------------- the action bar (R56: the lines under the button) */
.pl-checkout { display: grid; justify-items: inherit; width: 100%; }
/* R245, R246: a press whose status read got no answer says so right under Subscribe, inside the bar (sticky below 600 px:
   the bar grows upward, the button stays on the screen); the bar's own gap above it; empty, it takes no room */
.pl-press-msg { justify-self: stretch; margin-top: 10px; }
.pl-press-msg:empty { display: none; }
.pl-bar .help { text-wrap: pretty; }
/* until plan.js knows the account, the bar keeps its place without showing a button that may not be the right one */
.pl-bar[data-pending] > * { visibility: hidden; }
@media (min-width: 600px) {
  /* R73: the frame puts the bar in the card, right under the terms line (this outranks frame.css's .panel .actionbar);
     the comparison keeps its own gap under it */
  .pl .pl-card > .pl-bar { margin-top: var(--s5); }
}

/* ---------------------------------------------------------------- /pricing: the frame's top bar, no frame */
.pl-top .fr-top { gap: var(--s3); }
/* R73: Get started and the Stripe line, moved by pricing.js right under the terms line, as the plan page's bar */
.pl-go { display: grid; justify-items: start; gap: 10px; margin-top: var(--s5); }
/* the human line under a hairline after the card */
.pl-card + .pl-human { margin-top: var(--s6); padding-top: var(--s4); border-top: 1.5px solid var(--line); }
@media (max-width: 599.98px) {
  .pl-go { justify-items: stretch; }
}

/* ---------------------------------------------------------------- the confirming page (R81: a centred status card) */
/* R93: no preview on this page, so its setup column is one centred column at every width (this outranks frame.css's
   two-column .setup at 980 × 700 and up): the card sits on the page's axis; under 980 px the one track fills the wrap */
.setup.pl-alone { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; }
/* the panel surface (border, radius, shadow) and its side padding are the kit's .panel, as on every step; centred in
   the setup column, everything in it on one vertical axis */
.pl-confirm { width: 100%; max-width: 560px; margin-inline: auto; padding-block: var(--s7); text-align: center; }
@media (max-width: 599.98px) { .pl-confirm { padding-block: var(--s5); } }
/* mark, heading, line: one column, centred (mark to heading 20 px, heading to line 12 px) */
.pl-state { display: grid; justify-items: center; container-type: inline-size; }
/* R240 (B2) with M1 (fix round 2): until the first status answer the heading is empty (no trial words before the server
   has said there is a trial). For the whole waiting phase (the spinner: from the first paint to the confirmed state)
   the heading keeps one height whatever its words, at every width and in any font: two lines, the words centred in
   them, so neither waiting heading (one line or two) moves the card. The tick (confirmed) releases it. */
.pl-state:has(> .pl-mark.spinner) > .pl-title { display: grid; align-content: center; min-height: 2lh; }
.pl-mark { margin-bottom: 20px; }
/* 40 × 40, spinner and tick alike (these outrank the kit's .spinner.lg and .tick sizes) */
.pl-mark.spinner { display: block; width: 40px; height: 40px; }
/* the kit tick draws its check in ::after, a grid item: the tick stays a grid */
.pl-mark.tick { display: grid; width: 40px; height: 40px; }
.pl-mark.tick::after { width: 23px; height: 23px; }
/* R94: the line wraps pretty (balance broke "November / 13, 2026" at 390); confirming.js puts the day in a span.nowrap */
.pl-done-line { margin-top: 12px; overflow-wrap: anywhere; text-wrap: pretty; }
.pl-done-line .nowrap { white-space: nowrap; }
/* the notice spans the card's content width; its text reads as a sentence (left); R96: its action sits on the card's
   axis, so the action row reaches back under the kit's 22 px icon and its gap (controls.css .notice) and spans the
   notice's full inner width, centred there */
.pl-notice:empty { display: none; }
.pl-notice:not(:empty) { margin-top: var(--s5); }
.pl-confirm .notice { text-align: left; }
.pl-confirm .notice .notice-acts { justify-content: center; margin-left: calc(-1 * (22px + var(--s3))); }
/* Continue: its own centred row (a block-level box, so no line box adds to the gap above it) */
.pl-continue { display: flex; width: fit-content; margin: var(--s4) auto 0; }

/* the phone's slot: one rule in frame.css (R150) */
