/* The pricing page. Tokens from styles.css; panes and tables are square, the one highlight is an ink rule. */

.pricing { padding: 32px 0 var(--section-y); }
.pricing h1 { margin: 0; max-width: 18ch; font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: var(--ls-hero); }
.pricing h2 { margin: 0 0 24px; max-width: 28ch; font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.pricing h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pricing p { margin: 0; color: var(--ink-2); }
.pricing a:not(.button) { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pricing a:not(.button):hover { text-decoration-thickness: 2px; }
.pricing .label { display: block; color: var(--text-meta); font-size: 11px; }

.pr-section { margin-top: clamp(64px, 8vw, 112px); }
.pr-sub { max-width: 44rem; margin-top: -8px !important; margin-bottom: 8px !important; }
.pr-note { margin-top: 16px !important; font-size: 15px; line-height: 1.5; color: var(--text-muted) !important; }

/* Figures: illustrations from /illus/ on the stage ground, as on the segment pages */
.pr-figure { margin: 0; }
.pr-frame { background: var(--stage); border: 1px solid var(--rule); padding: clamp(12px, 3vw, 32px); }
.pr-frame img { width: 100%; height: auto; margin: 0 auto; }
.pr-figure .caption { margin-top: 12px; }

/* 1. Hero: text left, the licence figure right */
.pr-hero { padding-top: 24px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.pr-hero .eyebrow { display: block; }
.pr-lede { max-width: 40rem; margin-top: 24px !important; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }
.pr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.pr-actions .button-dark { width: auto; }
.pr-hero .pr-note { font-size: 11px; letter-spacing: 0.12em; }

/* 2. Levers: the figure, then the four tiles as text */
.pr-levers-visual { max-width: 760px; margin-bottom: 32px; }
.pr-levers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.pr-lever { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.pr-lever + .pr-lever { padding-left: 24px; border-left: 1px solid var(--rule); }
.pr-lever h3 { margin: 10px 0 8px; }
.pr-lever p { font-size: 16px; line-height: 1.5; }

/* 3. Tiers */
.pr-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.pr-tier { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--rule); }
.pr-tier-key { border: 2px solid var(--ink); padding: 27px; }
.pr-glyph { width: 100%; max-width: 240px; margin: 0 0 20px; }
.pr-flag { position: absolute; top: -12px; left: 26px; padding: 4px 10px; background: var(--ink); color: var(--on-dark); font-size: 11px; letter-spacing: 0.12em; }
.pr-tier h3 { font-size: 28px; letter-spacing: -0.03em; }
.pr-for { margin-top: 8px !important; min-height: 3em; font-size: 16px; line-height: 1.5; }
.pr-price { margin-top: 20px !important; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; color: var(--ink) !important; }
.pr-price .label { margin-bottom: 4px; }
.pr-list { flex: 1; margin: 20px 0 28px; padding: 0; list-style: none; }
.pr-list li { position: relative; padding: 7px 0 7px 22px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.pr-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.pr-list strong { font-weight: 600; color: var(--ink); }
.pr-cta { width: 100%; }
.pr-tier .button:not(.button-dark) { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--control-border); }
.pr-tier .button:not(.button-dark):hover { background: var(--surface-alt); }

.pr-same { margin-top: 24px; padding: 20px 24px; background: var(--surface-alt); }
.pr-same h3 { margin-bottom: 12px; color: var(--text-meta); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; }
.pr-same ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.pr-same li { font-size: 16px; font-weight: 500; color: var(--ink); }

/* 4. Implementation */
.pr-impl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.pr-impl-text p + p { margin-top: 16px; }
.pr-impl-text .text-link { display: inline-block; margin-top: 20px; }
.pr-steps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.pr-steps li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pr-steps .label { margin-bottom: 6px; }
.pr-steps strong { font-weight: 600; color: var(--ink); }
.pr-path { grid-column: 1 / -1; }
.pr-path picture { display: block; }

/* 5. What it replaces: the figure beside the comparison */
.pr-replace { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; margin-top: 24px; }

/* 5–6. Tables */
.pr-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.pr-table th, .pr-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.pr-table thead th { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-meta); }
.pr-table tbody th { font-weight: 500; color: var(--ink); }
.pr-table td { color: var(--ink-2); }
.pr-table tr:last-child th, .pr-table tr:last-child td { border-bottom: 0; }
.pr-table thead th:last-child, .pr-table tbody td:last-child { background: var(--paper); }
.pr-grid thead th:last-child, .pr-grid tbody td:last-child { background: none; }
.pr-grid thead th:nth-child(3), .pr-grid tbody td:nth-child(3) { background: var(--paper); }
.pr-grid tbody th { width: 34%; }

/* 7. FAQ: the home page's native <details> accordion (.faq-grid, .faq in styles.css), each question an H3 */
.pr-faq .faq summary h3 { margin: 0; font: inherit; letter-spacing: inherit; line-height: 1.35; }
.pr-faq .faq summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.pricing .next-step { max-width: none; }
.pricing .next-step p { color: var(--on-dark-muted); max-width: 40rem; }
.pricing .next-step h2 { color: var(--on-dark); }

@media (max-width: 1023px) {
  .pr-levers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-lever:nth-child(3) { padding-left: 0; border-left: 0; }
  .pr-tiers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pr-for { min-height: 0; }
  .pr-impl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pr-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pr-hero-visual { max-width: 640px; }
  .pr-replace { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pr-replace-visual { max-width: 640px; }
}

@media (max-width: 767px) {
  .pr-levers { grid-template-columns: minmax(0, 1fr); }
  .pr-lever, .pr-lever + .pr-lever { padding: 20px 0; border-left: 0; }
  .pr-tier { padding: 24px 20px; }
  .pr-tier-key { padding: 23px 19px; }
  .pr-table th, .pr-table td { padding: 12px; font-size: 15px; }
  .pr-grid tbody th { width: auto; min-width: 9rem; }
  .pr-actions .button-dark { width: 100%; }
  .pr-path { max-width: 400px; }
}

@media print {
  .pr-tier, .pr-same, .pr-table td, .pr-table th { background: none !important; }
  .pr-faq .faq details { display: block; }
}
