/* Task 3 owns this file (ar-pricing). Plain CSS, ar- prefixed classes only; shared tokens and components live in base.css. */
.ar-pricing { position: relative; padding: 144px 0 39px; background: var(--ar-white); }
/* Figma draws a 1320 hairline at the pricing / media-text boundary (y 1718 at 1440). It lives here, once, as an
   overlay on the last pixel row so neither section changes height; media-text draws no top rule. */
.ar-pricing::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: var(--ar-frame); height: 1px; margin: 0 auto; background: var(--ar-line); }
.ar-pricing__grid { display: grid; grid-template-columns: minmax(0, 429fr) minmax(0, 644fr); column-gap: 96px; align-items: start; box-sizing: border-box; width: var(--ar-frame); margin: 0 auto; padding-inline: var(--ar-frame-inset); }
.ar-pricing__card { container-type: inline-size; position: sticky; top: 24px; box-sizing: border-box; padding: 40px; background: var(--ar-gray); border-top: 6px solid var(--ar-red); }
.ar-pricing__card-label { margin: 0; font: 600 12.8px/19.2px var(--ar-font-body); letter-spacing: 1.792px; text-transform: uppercase; color: var(--ar-navy); }
.ar-pricing__amount { margin: 0; --ar-amt: 112px; padding: 16px 0 8px; font: 700 var(--ar-amt)/112px var(--ar-font-display); color: var(--ar-red); white-space: nowrap; }
.ar-pricing__note { margin: 0; font: 400 16px/24px var(--ar-font-body); color: var(--ar-navy); }
@media (min-width: 801px) { .ar-pricing__intro, .ar-pricing__list, .ar-pricing__body { max-width: 640px; } }   /* two-column measure only; the stacked layout runs full width under the card */
.ar-pricing__intro { margin-top: 24px; font-size: 17.6px; line-height: 30.8px; }
.ar-pricing__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--ar-line); }
.ar-pricing__item { position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--ar-line); font: 600 16px/24px var(--ar-font-body); color: var(--ar-navy); }
.ar-pricing__item::before { content: ""; position: absolute; left: 0; top: 23.2px; width: 14.4px; height: 8px; background: var(--ar-red); }
.ar-pricing__body { margin-top: 32px; padding-bottom: 24px; font-size: 17.6px; line-height: 30.8px; }
.ar-pricing__body p + p { margin-top: 24px; }

@media (max-width: 1240px) {
  .ar-pricing { padding-top: 96px; }
  .ar-pricing__grid { column-gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .ar-pricing__card { padding: 28px; }
  .ar-pricing__amount { --ar-amt: clamp(64px, 8vw, 96px); font-size: var(--ar-amt); line-height: 1; }
}
@media (max-width: 800px) {
  .ar-pricing { padding: 56px 0 24px; }
  .ar-pricing__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .ar-pricing__card { position: static; }
}
@media (max-width: 480px) {
  .ar-pricing__card { padding: 24px; }
  .ar-pricing__amount { --ar-amt: 56px; font-size: var(--ar-amt); }
  .ar-pricing__intro, .ar-pricing__body { font-size: 16px; line-height: 28px; }
}

/* Long amounts (see pricing.js): --ar-amt-len is the character count. Size to the card's content width so the number stays on one
   line at every breakpoint, never above the standard size (--ar-amt, set per breakpoint). 0.7em per character is a safe average
   for Readex Pro 700 ("$450" measures 0.64, "$450/mo" 0.67). Declared last so it beats the breakpoint sizes above. */
.ar-pricing__amount.ar-pricing__amount--fit { font-size: min(var(--ar-amt), calc(100cqi / (var(--ar-amt-len) * 0.7))); line-height: 1.1; }
