/* Pricing pages — layout for the currency/period controls and the plan cards.
   Loaded alongside /site.css (which owns the shared header, footer and design
   tokens) by the three pages scripts/build-pricing.mjs renders.

   WHY A SEPARATE FILE. The old pricing pages each carried their own inline
   <style> block, which is how three pages that are supposed to look identical
   stopped doing so. site.css owns what EVERY static page shares; this owns what
   only the pricing pages have. Nothing here may be copied into a page. */

body {
  font-family: var(--font-body);
  background: var(--lb-cream);
  color: var(--lb-text);
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  line-height: 1.65;
}
h1 { font-family: var(--font-display); color: var(--lb-rose-dark); font-size: 2.1rem; margin: 0 0 0.25rem; }
h2 { font-family: var(--font-display); font-size: 1.15rem; margin-top: 0; color: var(--lb-rose-dark); }
a { color: var(--lb-rose-dark); }
.updated { color: var(--lb-text-hint); font-size: 14px; margin: 0 0 1.75rem; }
.section-h { margin-top: 2.75rem; font-size: 1.25rem; }
.questions { margin-top: 2rem; }

/* Screen-reader-only, for the comparison table's <caption>. Not display:none —
   that removes it from the accessibility tree, which is the opposite of the
   point. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Controls ===== */
.pricing-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin: 0 0 0.85rem;
}
/* `hidden` must win over the flex display above. The UA stylesheet's
   [hidden]{display:none} loses to a class selector, which is exactly the
   `backBtn.hidden` scar AGENTS.md records — a property said hidden while the
   element was painted. */
.pricing-controls[hidden] { display: none; }

.pc-seg {
  display: inline-flex; background: var(--lb-white);
  border: 1px solid var(--lb-border); border-radius: 999px; padding: 4px;
}
/* Same `[hidden]` trap as `.pricing-controls[hidden]` above: `display:
   inline-flex` unconditionally on `.pc-seg` beats the UA stylesheet's
   `[hidden]{display:none}`. public/pricing.js hides this element for a
   reader in an annual-only country, so it needs its own override or the
   monthly/yearly toggle would stay painted while `.hidden` reads true. */
.pc-seg[hidden] { display: none; }
.pc-seg-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--lb-text-muted); padding: 8px 20px; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.pc-seg-btn:hover { color: var(--lb-rose-dark); }
.pc-seg-btn.is-on { background: var(--lb-accent-fill); color: var(--lb-on-accent); }
/* Keyboard focus must stay visible on the pill that is NOT selected too, so the
   ring is on :focus-visible rather than relying on the selected background. */
.pc-seg-btn:focus-visible { outline: 2px solid var(--lb-rose-dark); outline-offset: 2px; }

.pc-cur { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 14px; }
.pc-cur-label { color: var(--lb-text-muted); font-weight: 500; }
.pc-cur select {
  font-family: inherit; color: var(--lb-text);
  background: var(--lb-white); border: 1px solid var(--lb-border);
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
  box-sizing: border-box;
  min-height: 44px; /* WCAG 2.5.5 / Apple HIG tap-target floor */
  font-size: 16px; /* was 14px — below 16px iOS Safari zooms the page on focus and does not zoom back; see public/site.css's form-controls block for the fuller note */
}
.pc-cur select optgroup { font-style: normal; font-weight: 600; }
.pc-cur select:focus-visible { outline: 2px solid var(--lb-rose-dark); outline-offset: 1px; }

.pricing-inferred {
  margin: 0 0 0.5rem; font-size: 13.5px; color: var(--lb-rose-dark);
  background: var(--lb-rose-light); border-radius: 10px;
  padding: 8px 12px; display: inline-block;
}
.pricing-inferred[hidden] { display: none; }
.pricing-annual-only {
  margin: 0 0 0.5rem; font-size: 13.5px; color: var(--lb-rose-dark);
  background: var(--lb-rose-light); border-radius: 10px;
  padding: 8px 12px; display: inline-block;
}
.pricing-annual-only[hidden] { display: none; }
.pricing-caveat { margin: 0 0 1.75rem; font-size: 13px; color: var(--lb-text-hint); max-width: 62ch; }

/* ===== Plan cards ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; margin: 0 0 2.5rem; }
.plan {
  border: 1px solid var(--lb-border); border-radius: 16px; padding: 26px 24px;
  background: var(--lb-white); display: flex; flex-direction: column;
}
.plan.highlight { border-color: var(--lb-rose); border-width: 2px; padding: 25px 23px; }

/* The slot keeps its height across a currency/period switch, so the cards below
   the price do not jump when the reader toggles. Two lines' worth: the yearly
   view adds a saving line the monthly view does not have. */
.price-slot { min-height: 5.4rem; margin: 0.6rem 0 0.35rem; }
.price-line { margin: 0; }
.price-line[hidden] { display: none; }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--lb-text); display: block; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--lb-text-muted); }
.price-tax { display: block; font-size: 12.5px; color: var(--lb-text-hint); }
/* The `~` on an approximated amount. Rendered smaller and lighter than the
   figure so it reads as a qualifier rather than as part of the number, and
   aria-hidden in the markup because the sentence underneath already says
   "approximate" in words — a screen reader announcing "tilde" would be noise.
   An approximate figure is also set slightly lighter than an exact one:
   money-correctness.md §6, never the same visual weight as a recorded fact. */
.price-approx { font-size: 0.62em; font-weight: 400; color: var(--lb-text-muted); vertical-align: 0.18em; margin-right: 1px; }
.price-line.is-approx .price { color: var(--lb-text-muted); }
.price-line.is-approx .price-tax { max-width: 34ch; }
.price-extra { display: block; font-size: 12.5px; color: var(--lb-rose-dark); font-weight: 600; margin-top: 2px; }
/* orgalife-mffg: the international-transaction-fee note, shown only on the
   BRL yearly line (build-pricing.mjs's priceLine()). Styled like .price-tax
   — a plain disclosure, not a highlight like .price-extra's savings text. */
.price-intl-fee { display: block; font-size: 12.5px; color: var(--lb-text-hint); margin-top: 2px; }

/* Reserved height so the three CTAs land on the same line: Family's meta wraps
   to two lines where the others do not, and a button that sits 36px lower than
   its neighbours reads as a different kind of button. */
.plan-meta { font-size: 13px; color: var(--lb-text-muted); margin: 0 0 1rem; min-height: 2.6em; }
.plan-cta {
  display: block; text-align: center; text-decoration: none;
  background: var(--lb-white); color: var(--lb-rose-dark);
  border: 1.5px solid var(--lb-rose-dark); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 15px;
}
.plan.highlight .plan-cta { background: var(--lb-accent-fill); color: var(--lb-on-accent); border-color: var(--lb-accent-fill); }
.plan-cta:hover { background: var(--lb-accent-fill-2); color: var(--lb-on-accent); border-color: var(--lb-accent-fill-2); }
.plan-cta:focus-visible { outline: 2px solid var(--lb-rose-dark); outline-offset: 2px; }

/* The quieter second door (bd orgalife-8qmv). A text link, deliberately NOT a
   second button: two buttons of equal weight would turn one decision into two,
   which is the friction the flow exists to remove. Still a 44px tap target and
   still contrast-checked against the card background, because "quiet" is about
   visual weight and never about reachability. */
.plan-guest-cta {
  display: block; text-align: center; margin-top: .6rem;
  font-size: 13px; color: var(--lb-text-muted); text-decoration: underline;
  min-height: 44px; line-height: 44px;
}
.plan-guest-cta:hover { color: var(--lb-rose-dark); }
.plan-guest-cta:focus-visible { outline: 2px solid var(--lb-rose-dark); outline-offset: 2px; border-radius: 8px; }

ul.features { list-style: none; padding: 0; margin: 1.15rem 0 0; font-size: 14px; }
ul.features li { padding: 4px 0 4px 1.3em; position: relative; }
ul.features li::before { content: "✓"; position: absolute; left: 0; color: var(--lb-rose-dark); font-weight: 700; }

/* ===== Comparison table ===== */
table.compare { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: 14px; }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--lb-border); }
table.compare thead th { color: var(--lb-rose-dark); font-family: var(--font-display); }
table.compare tbody th { font-weight: 500; color: var(--lb-text); }
table.compare td { text-align: center; }
.pricing-beta-note { margin: 10px 0 0; font-size: 13px; color: var(--lb-text-hint); max-width: 62ch; }

/* ===== Seller-of-record disclosure table (packet-kyrk) =====
   Scrolls inside its own container rather than the page, since three
   locales' cells run long (e.g. the PT/JA "or PayPro Global" row). All
   ink/border tokens are the same --lb-* vars table.compare already uses,
   which src/public-theme-contrast.test.js already clears in both palettes —
   no new selector needed there because nothing here paints a fill+ink pair. */
.lb-seller-matrix-wrap { overflow-x: auto; margin-top: 2rem; }
table.lb-seller-matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lb-seller-matrix caption { text-align: left; font-family: var(--font-display); color: var(--lb-rose-dark); margin-bottom: 0.5rem; }
table.lb-seller-matrix th, table.lb-seller-matrix td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--lb-border); vertical-align: top; }
table.lb-seller-matrix thead th { color: var(--lb-rose-dark); font-family: var(--font-display); }
table.lb-seller-matrix tbody th { font-weight: 500; color: var(--lb-text); }

@media (max-width: 640px) {
  body { padding: 32px 18px 64px; }
  .pricing-controls { gap: 0.75rem 1rem; }
  .price { font-size: 1.75rem; }
}
