/* Pricing page (DESIGN_ROADMAP 3.3, comp impeccable-preview/pricing-after.html) on
   the 10-10 tokens. Order: head, consent, free offer, plans (+ every-plan row,
   renewal terms), estimator with the credit explainer, packs. */
.wrap { max-width: 1040px; }
.head h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 12px; }
#msg { margin-top: var(--s4); }
#msg:empty { min-height: 0; }

/* Consent precedes every buy button (legal: makes the withdrawal waiver binding). */
.consent { margin: var(--s6) 0 var(--s4); padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.consent .check { max-width: 88ch; }

.offer { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--r-lg); background: var(--accent-wash); border: 1px solid var(--border-strong); }
.offer p { max-width: 62ch; color: var(--fg-2); font-size: 17px; }
.offer strong { color: var(--fg); font-weight: 650; }

.pricing section { margin-top: 64px; }
.pricing section > h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 650; margin-bottom: var(--s5); }

/* Plans: equal cards; the recommended one is a ring + badge, never scale(). */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.plan.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--surface-2); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name h3 { font-size: 20px; font-weight: 650; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); }
.plan .for { color: var(--muted); font-size: 14px; margin-top: 2px; }
.price { margin-top: 20px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan .credit { margin-top: 12px; font-size: 16px; }
.est { display: flex; align-items: center; gap: 6px; color: var(--fg); font-size: 15px; margin-top: 2px; position: relative; }
.tip { display: inline-flex; padding: 4px; margin: -4px; border: 0; background: none; color: var(--muted); cursor: help; border-radius: var(--r-xs); }
.tip:hover, .tip:focus-visible { color: var(--fg); }
.tip-text { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--fg-2); font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease-out, transform .15s ease-out, visibility .15s; }
/* :focus (not only -visible) so a tap on touch opens it too. */
.tip:hover + .tip-text, .tip:focus + .tip-text { opacity: 1; visibility: visible; transform: none; }
.diff { list-style: none; padding: var(--s4) 0 0; margin: var(--s4) 0 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--fg-2); flex: 1; }
.diff li, .includes li { display: flex; gap: 10px; align-items: flex-start; }
.diff .i, .includes .i { margin-top: 3px; color: var(--ok); vertical-align: 0; }
.diff li.off { color: var(--muted); }
.diff li.off .i { color: var(--faint); }
/* Renewal disclosure: legally relevant, so >= 14px, left-aligned, never gray-on-gray small print. */
.renew { font-size: 14px; color: var(--fg-2); margin: var(--s4) 0; }
.plan .btn { width: 100%; }
.btn.current { background: transparent; border-color: var(--ok); color: var(--ok); opacity: 1; cursor: default; }

.includes { margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-md); border: 1px solid var(--border); font-size: 14px; color: var(--fg-2); }
.includes h3 { font-size: 14px; font-weight: 600; color: var(--fg); }
.includes ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.fine { margin-top: var(--s4); font-size: 14px; color: var(--fg-2); max-width: 80ch; text-align: left; }

/* Credit explainer + estimator: controls left, answer right. */
.explain { max-width: 70ch; color: var(--fg-2); margin-bottom: var(--s5); }
.explain b { color: var(--fg); font-weight: 600; }
.explain ul { margin: 0 0 8px; padding-left: 1.2em; }
.explain li + li { margin-top: 4px; }
.explain .eg { color: var(--muted); margin-top: 8px; }
.est-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s4); }
.panel { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--field); border: 1px solid var(--border); margin-bottom: 20px; }
.seg button { border: 0; background: none; color: var(--fg-2); padding: 8px 14px; min-height: 36px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--fg); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.est-lead { font-size: 14px; color: var(--fg-2); margin-bottom: var(--s4); }
.est-lead b { color: var(--credit); }
.slider { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-2); min-height: 44px; }
.slider input { width: 100%; accent-color: var(--accent); }
.slider output { text-align: right; color: var(--fg); font-weight: 600; }
.result { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.used { font-size: 14px; color: var(--muted); }
.used .num { display: block; font-size: 40px; line-height: 1.05; font-weight: 700; color: var(--credit); letter-spacing: -0.02em; }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--field); border: 1px solid var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .12s ease-out; }
.out { font-size: 15px; color: var(--fg-2); line-height: 1.55; }
.out b { color: var(--fg); font-weight: 600; }
.skip { margin-top: var(--s4); max-width: 70ch; font-size: 15px; color: var(--fg-2); }
.skip b { color: var(--fg); font-weight: 600; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.pack { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pack h3 { font-size: 20px; font-weight: 650; }
.pack .p { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.pack .p small { font-size: 15px; font-weight: 500; color: var(--muted); }
.pack .meta { grid-column: 1 / -1; margin: 8px 0 16px; font-size: 14px; }
.pack .btn { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .plans, .packs, .includes ul, .est-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .head h1 { font-size: 32px; }
  .offer { padding: 20px; }
  .offer .btn { width: 100%; }
  .pricing section { margin-top: var(--s7); }
  .price { font-size: 40px; }
  .slider { grid-template-columns: 1fr 56px; }
  .slider label { grid-column: 1 / -1; margin-bottom: -8px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 6px; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
  .seg .sep { display: none; }
  .seg .num { font-weight: 500; font-size: 13px; color: var(--muted); }
  .panel { padding: 20px; }
}
#content > .notice { margin-top: var(--s6); }
