/* The site header is fixed and covers the top of the page, so the bar starts below it. The height is the shell token, never a typed number (DESIGN.md section 12). */
body.popc .pbar { margin-top: var(--header-h); }
/* The bar's margin already clears the header, so the hero drops its own header allowance and keeps the clamp from .pr-hero:has(.pr-hero__grid) in products.css. */
body.popc .pbar + .pr-hero { padding-top: clamp(20px, 3vw, 40px); }
.pc-tour { margin-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }
.pc-tour__head { max-width: 44em; margin-bottom: var(--space-xl); }
.pc-tour__head .pr-h2 { margin-top: .2em; }
.pc-tour__lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 38em; }
.pc-tour__list { list-style: none; margin: 0; padding: 0; }
.pc-tour.is-ready .pc-tour__screen:not(.is-active) { display: none; }
.pc-tour__fig { margin: 0; }
.pc-tour__shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.pc-tour__img { display: block; width: 100%; height: auto; }
.pc-tour__hotspots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.pc-tour:not(.is-ready) .pc-tour__hotspots { display: none; }
.pc-tour__point { position: absolute; left: clamp(22px, var(--pc-x), calc(100% - 22px)); top: clamp(22px, var(--pc-y), calc(100% - 22px)); transform: translate(-50%, -50%); }
.pc-tour__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pc-tour__dot > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cream-white); background: var(--sage-800); color: var(--cream-white); font: 600 var(--step--1)/1 var(--sans); }
.pc-tour__dot[aria-expanded="true"] > span:first-child { background: var(--terra); }
.pc-tour__cap { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.pc-tour__name { font: 600 var(--step-1)/1.2 var(--display); letter-spacing: -.02em; margin: 0; }
.pc-tour__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.pc-tour.is-ready .pc-tour__note { display: none; }
.pc-tour.is-ready .pc-tour__note.is-open { display: flex; }
.pc-tour__note { align-items: flex-start; gap: var(--space-md); margin: 0; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); }
.pc-tour__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sage-800); color: var(--cream-white); font: 600 var(--step--1)/1 var(--sans); }
.pc-tour__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-xl); }
.pc-tour:not(.is-ready) .pc-tour__controls { display: none; }
.pc-tour__btn { min-width: 44px; }
.pc-tour__flip { transform: rotate(180deg); }
.pc-tour__count { margin: 0; min-width: 6em; text-align: center; font-size: var(--step--1); color: var(--ink-mute); }
.pc-tour__btn[disabled] { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .pc-tour__screen.is-active { animation: pc-tour-in .35s var(--ease-out) both; }
}
@keyframes pc-tour-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (forced-colors: active) {
  .pc-tour__dot > span:first-child, .pc-tour__note { border: 1px solid CanvasText; }
}

/* ── Page polish (task 10.11): running text, labels, headings, flat buttons ── */
/* Running text is 17px or more (DESIGN.md section 11). The nearest token is --body, which lives per page in pages.css and plans.css rather than in base.css. */
body.popc { --body: max(1.0625rem, var(--step-0)); font-size: var(--body); }
body.popc .pr-table, body.popc .pr-for span, body.popc .pr-addon p, body.popc .mk__note,
body.popc .ctiers__lede, body.popc .ctiers__trial, body.popc .ctiers__card .card__facts li,
body.popc .pr-note--hero { font-size: var(--body); }
/* No tracked capitals: labels and table heads use the body face, one step down, in sentence case. */
body.popc .eyebrow, body.popc .pr-works__h, body.popc .mk-logos__h, body.popc .pr-addons__h,
body.popc .pr-table thead th { text-transform: none; letter-spacing: 0; }
/* Nothing anyone reads goes below 13px. */
body.popc .pr-works__h, body.popc .mk-logos__h, body.popc .pr-addons__h, body.popc .pr-badge { font-size: var(--step--1); }
body.popc .pr-facts span { font-size: var(--step--1); }
/* The "Most popular" chip is a status label: smallest reading step, and 7.1:1 on its fill (AA needs 4.5:1). */
body.popc .chip { font-size: var(--step--1); }
body.popc .ctiers__popular { background: var(--terracotta-soft); color: var(--terracotta-deep); }
/* Buttons are flat at rest (DESIGN.md section 11); the Commerce token sheet adds a rest shadow, so this rule carries its specificity. */
body.popc .btn.btn-primary { box-shadow: none; }
/* Two lines at 390px: the display steps carry the heading hierarchy at the smallest width. */
@media (max-width: 520px) {
  body.popc .pr-h1--hero { font-size: var(--step-3); }
  body.popc .pr-h2 { font-size: var(--step-2); }
}
/* Inline links need a 24px tap height (WCAG 2.5.8). The pointer-target token --ds-size-target-pointer: 24px
   lives in opendesigner/build/css/tokens.css, which public pages do not load, so the value is written out here. */
@media (max-width: 480px) {
  body.popc .pr-note a, body.popc .pc-card a { display: inline-block; min-height: 24px; }
}

/* ── The one plan card (task 19.16): the shared plan-card shape, same as Pop Books and Pop Dispatch ──
   One card as wide as the content container; two columns from 900px (name and the seat sentence on the left,
   the billing switch, seat stepper, price line and buttons on the right); stacked in that order below 900px.
   These rules override the older .ctiers block in landing.css, which loads before this sheet. */
.ctiers__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); max-width: none; margin-inline: 0; }
.ctiers__card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-content: start; padding: clamp(20px, 3vw, 32px); }
.ctiers__what { display: grid; gap: var(--space-sm); align-content: start; }
.ctiers__card h3 { font: 600 var(--step-2)/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.ctiers__line { margin: 0; font-weight: 600; color: var(--ink); }
.ctiers__seatnote { margin: 0; color: var(--ink-mute); font-size: var(--body); overflow-wrap: anywhere; }
/* The plan facts: what the one plan ships with, as a quiet wrapped list. */
.ctiers__facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: var(--body); }
.ctiers__buy { display: grid; gap: var(--space-lg); justify-items: start; align-content: start; }
/* The billing switch: a pill pair with room around the selected label, so its text keeps clear of the pill edge. */
.ctiers__buy .ctiers__bill { display: grid; justify-items: start; gap: var(--space-sm); margin: 0; width: auto; max-width: 100%; }
.ctiers__buy .ctiers__bill fieldset { min-width: 0; width: auto; }
.ctiers__opt { padding: 0 var(--space-md); }
.ctiers__opt span { padding-inline: var(--space-xl); }
.ctiers__buy .ctiers__go { min-height: var(--control-sm); }
/* The seat stepper: [−] [number] [+], 44px targets, about four characters of room for the number. */
.ctiers__seats { display: grid; gap: var(--space-sm); }
.ctiers__seats label { font-weight: 600; font-size: .98rem; color: var(--ink); }
.ctiers__stepper { display: inline-flex; align-items: center; gap: var(--space-xs); }
.ctiers__step { display: grid; place-items: center; min-width: var(--control-sm); min-height: var(--control-sm); padding: 0; border: 1.5px solid var(--field-line); border-radius: var(--radius-xs); background: var(--field-bg); color: var(--ink); font: 600 1.1rem/1 var(--sans); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.ctiers__step:hover { border-color: var(--sage-700); background: var(--sage-50); }
.ctiers__step:active:not([disabled]) { transform: translateY(1px); }
.ctiers__step[disabled] { opacity: .45; cursor: not-allowed; }
/* The content keeps 3ch beside the 12px padding, so the value shows even with the spinner hidden. */
.ctiers__seats input { width: 4ch; min-width: 3ch; min-height: var(--control-sm); padding: 0 var(--space-md); border: 1.5px solid var(--field-line); border-radius: var(--radius-xs); background: var(--field-bg); color: var(--ink); font: 600 1rem/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.ctiers__seats input::-webkit-inner-spin-button, .ctiers__seats input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ctiers__seats input:focus-visible, .ctiers__step:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
/* The price spot reads as a muted line in the body face: the disabled buy button keeps the words (the owner's
   pricing rule) but this rule strips its pill chrome, so it renders as plain text, not a pill.
   The line reads --sage-700, the token Pop Books uses for its price line (--bk-mute), at 7.2:1 on the white card;
   opacity: 1 stops the disabled .btn from fading the words. */
.ctiers__price { margin: 0; color: var(--sage-700); font: 400 var(--body)/1.5 var(--sans); }
.ctiers__price .btn.btn-primary { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--sage-700); font: 400 var(--body)/1.5 var(--sans); opacity: 1; cursor: default; }
.ctiers__card .price { padding: 0; border: 0; font: 600 var(--step-1)/1.2 var(--sans); }
/* Buttons keep their own width: never stretched across the card. */
.ctiers__card .btn { justify-self: start; justify-content: center; margin-top: 0; }
.ctiers__fine { margin: 0; color: var(--ink-mute); font-size: var(--body); }
.ctiers__fine a { color: var(--terra); font-weight: 600; }
@media (min-width: 900px) { .ctiers__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ctiers__step { transition: none; } .ctiers__step:active:not([disabled]) { transform: none; } }
@media (forced-colors: active) { .ctiers__step, .ctiers__seats input { border: 1px solid CanvasText; } }
