

/*
 * /pricing — calm, minimal explainer. Narrow reading column, big
 * h1 with an accented second line, mono lede, framed price block,
 * FAQ list underneath.
 */

.pricing-shell {
  max-width: 45rem;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ─── Hero ─────────────────────────────────────────────────────── */

/*
 * Two-line headline ("One price." / "Per machine."). Each line renders
 * as a block so the parent's line-height fully controls the gap between
 * them — no <br>-introduced leading that inflates the line box. Keeps
 * the two phrases reading as one beat.
 */
.pricing-h1 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
/* (Removed legacy .pricing-h1-line / .pricing-accent rules — the title
   is now a single "Pricing." text node, no line-spans, no accent.) */

.pricing-lede {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--space-8);
  max-width: 36rem;
}

/* ─── Price block ──────────────────────────────────────────────── */

/*
 * Price block — open at the top (no rule under the h1), closed at
 * the bottom by a single hairline that separates this block from
 * the "How it works." section. Generous vertical padding so it
 * reads as a "spec sheet" entry, not a tier card. Single-price
 * model → spec-sheet grammar (a bordered card would imply "Plan A,
 * where's Plan B?").
 */
.pricing-block {
  padding: var(--space-7) 0;
  margin: var(--space-6) 0 var(--space-8);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.pricing-row {
  display: flex;
  /* Center-align rather than baseline-align — the price has no
     descenders so a baseline-anchored qualifier sits visually low.
     Center anchors the qualifier on the vertical midpoint of $300. */
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

/* $300 in brand-primary dark navy — same `var(--ink)` as the
   .btn-primary "Install Elements" CTA below. Hex-equal to the h1's
   color too; the size step (40px vs 48px) + position is what keeps
   the h1 as the page anchor and the price as a subordinate spec. */
.pricing-amount {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.pricing-unit {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-dim);
}

.pricing-desc {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 var(--space-6);
  max-width: 36rem;
}

.pricing-cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

/* Page-local tweaks for the .button coercion class on this page. The
   bare framework chrome (44px height, default radius) is fine; just
   keep the hover lift tight. */
.pricing-button:hover { opacity: 0.88; }

/* ─── FAQ ──────────────────────────────────────────────────────── */

/*
 * "How it works." is a section label, not a rival headline. Small,
 * medium weight, big gap above it so it reads as "new section" —
 * not "another h1 competing with the page title."
 */
.pricing-faq-title {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  /* Top margin tightened from --space-10 to --space-5 — the bold
     emphasis line + horizontal rule that used to anchor the section
     break are gone, so the original gap was reading as dead air.
     ~30% trim restores the intentional "new section" cue without
     leaving a void. */
  margin: var(--space-5) 0 var(--space-6);
  color: var(--ink);
}

/* No per-item rules — the only hrules on the page are above/below
   the price block. FAQ items separate via margin only. */
.pricing-faq-item {
  margin-bottom: var(--space-8);
}
.pricing-faq-item:last-child { margin-bottom: 0; }

.pricing-faq-q {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: var(--font-semibold);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.pricing-faq-a {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.pricing-faq-a strong {
  color: var(--ink);
  font-weight: var(--font-semibold);
}

.pricing-faq-a code {
  font-family: var(--font-sans);
  font-size: 0.95em;
  background: var(--bg-panel);
  color: var(--ink-soft);
  padding: 2px 6px;
  border-radius: 4px;
  /* Keep shell commands like `> elements license checkout` on one
     line — wrapping them mid-command reads as broken. */
  white-space: nowrap;
}
.pricing-faq-a strong code {
  color: var(--ink);
}

.pricing-inline {
  color: var(--accent);
  text-decoration: underline;
  /* A touch more breathing room under the text so the underline
     doesn't kiss the baseline. */
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.pricing-inline:hover { color: var(--accent-deep); }

/* ─── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* .pricing-h1 mobile size is set canonically in app/shared/styles/global.css
     (matches /install, /feed, /learn, /docs, /purchase). */
  .pricing-amount { font-size: 2rem; }
}
