/* Signal Brief rebuilt site: the pricing page's layout rules (pricing.html).
   Split out of site.css 2026-11-07 to keep it under the file-size ratchet. Loaded on every rebuilt route
   after /css/site.css and /css/site-legal.css and before /css/site-high-zoom.css, so the high-zoom
   overrides still follow these rules.
   Authoring copy: design-system/site/2026-08-16/site-pricing.css (byte-exact mirror at
   signalbrief-web/css/site-pricing.css, checked by tools/build-rebuilt-site-pages.mjs --check). */

/* First screen (pricing layer 2, 2026-11-07): the headline runs the full width, the lead sits directly above
   the plan card in the left column, and the painting fills the right column with the offer centred against it, so both
   plans and the trial button show without scrolling at 1280x800. The plan summary reads once, at the top of
   the card, at every width. */
.page-pricing .hero { padding-bottom: 0; }
.page-pricing .pricing { padding-top: 10px; }
.page-pricing .pricing-offer { min-width: 0; }
.page-pricing .pricing-offer > .lead { max-width: 36rem; margin: 0 0 24px; font-size: var(--marketing-lead-size); line-height: var(--marketing-lead-line-height); text-wrap: pretty; }
/* Owner D2a, 2026-11-08: what the subscription includes reads first, under the card heading and above the plans. */
.page-pricing .price-card .price-includes-card { display: block; max-width: none; margin: 6px 0 16px; color: var(--body); font-size: 16px; font-weight: 400; line-height: 1.45; text-align: left; text-wrap: pretty; }

/* The header trial button only jumps to the plans already on screen, so Pricing hides it. */
body[data-page-id="pricing"] .nav .masthead-cta { display: none; }

/* Designer "clearly wrong" pass, 2026-11-07: the offer outranks the questions, the painting and radios
   line up with the plan column, and the questions read as two aligned rows. No rules: the owner ruled the lines off brand (2026-11-07). */
.page-pricing .price-card .price-lead { font-size: 32px; line-height: 1.2; text-wrap: balance !important; }
.page-pricing .pricing { padding-bottom: 40px; }
.page-pricing .faq { padding: 40px 0 48px; }
.page-pricing .faq-head { font-size: 28px; margin-bottom: 8px; }
.page-pricing .faq-item,
.page-pricing .faq-item:last-child { padding: 20px 0 22px; border-top: 0; border-bottom: 0; }
.page-pricing .faq-item h3 { font-size: 21px; }
/* Pricing layer 4: the questions end on their own trial button, which jumps back to the plans. */
.page-pricing .faq-action { margin: 12px 0 0; }
@media (min-width: 821px) {
  .page-pricing .pricing-decision > .pricing-art { align-self: start; margin-top: 0; }
  .page-pricing .billing-option { align-items: start; }
  .page-pricing .billing-option .billing-radio { margin-top: 0; }
  .page-pricing .billing-badge { align-self: start; }
}
/* Independent designer verify, 2026-11-07: at 1100px and up the painting stretches to the plan card's height
   (cropped to 69-78% of its width, the cup and paper kept), so the right column ends with the card. At
   1100-1199px the lead runs above both columns and the plan column takes more of the width, so the reasons fit
   one line and the crop keeps 69-76%. At 821-1099px two columns
   leave the card too tall beside too small a painting, so the page stacks as tablets do: one 728px column with
   the lead, the card, then the painting. */
@media (min-width: 1100px) {
  .page-pricing .pricing-decision > .pricing-art { align-self: stretch; }
  .page-pricing .pricing-art img { height: 100%; object-fit: cover; object-position: 62% center; }
}
/* Owner 2026-11-08: the offer sits vertically centred against the painting. The painting reaches 32px past the
   offer at the top and at the bottom, so the lead and card centre on the painting's midline. */
@media (min-width: 1200px) {
  .page-pricing .pricing-offer { padding-block: 32px; }
}
@media (min-width: 1100px) and (max-width: 1199.98px) {
  .page-pricing .pricing-decision { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); row-gap: 0; }
  .page-pricing .pricing-offer { display: contents; }
  .page-pricing .pricing-offer > .lead { grid-column: 1 / -1; grid-row: 1; }
  .page-pricing .pricing-offer > .price-card { grid-column: 1; grid-row: 2; }
  .page-pricing .pricing-decision > .pricing-art { grid-column: 2; grid-row: 2; }
  .page-pricing .pricing-offer > .price-card { margin-block: 32px; }
  .page-pricing .pricing-art img { object-position: 48% center; }
}
@media (min-width: 821px) and (max-width: 1099px) {
  .page-pricing .pricing-decision { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .page-pricing .pricing-offer,
  .page-pricing .pricing-decision > .pricing-art { width: 100%; max-width: 728px; }
}
@media (min-width: 1100px) {
  .page-pricing .faq .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-count: auto; column-gap: 72px; align-items: start; }
  .page-pricing .faq-head,
  .page-pricing .faq-action { grid-column: 1 / -1; }
}

/* 600-820px: each plan keeps one row (radio, name, badge, price) with its detail under it, as phones do,
   so the badge no longer drops onto a line of its own. */
@media (min-width: 600px) and (max-width: 820px) {
  /* The button and its terms centre over the reasons and the summary, as on desktop. */
  .page-pricing .price-card > .trial-offer { margin-inline: auto; }
  .page-pricing .billing-option { grid-template-columns: 24px auto minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .page-pricing .billing-option-copy { display: contents; }
  .page-pricing .billing-option .billing-radio { grid-column: 1; grid-row: 1; margin-top: 0; }
  .page-pricing .billing-option .billing-name { grid-column: 2; grid-row: 1; }
  .page-pricing .billing-option .billing-badge { grid-column: 3; grid-row: 1; justify-self: start; margin: 0; }
  .page-pricing .billing-option .billing-price { grid-column: 4; grid-row: 1; margin-top: 0; }
  .page-pricing .billing-option .billing-detail { grid-column: 2 / -1; grid-row: 2; margin-top: 4px; }
}
@media (max-width: 599px) {
  /* Owner D2a, 2026-11-08: phones go from the plan card straight to the questions; the painting shows from 600px. */
  .page-pricing .pricing-decision > .pricing-art { display: none; }
  .page-pricing .price-card .price-lead { font-size: 28px; }
  .page-pricing .pricing-offer > .lead { margin-bottom: 14px; }
  .page-pricing .faq-head { font-size: 26px; }
  .page-pricing .faq-action .btn { width: 100%; max-width: none; justify-content: center; }
  .page-pricing .pricing { padding-bottom: 28px; }
  .page-pricing .faq { padding-top: 28px; }
}
