/* Pricing (/pricing). The founder-selected Prism UI "Pricing" section, adapted to the Silent Ratchet system:
   site tokens and type from styles.css, Forge only for the emphasised plan and the "plus" marker. */

.pz { color: var(--steel); }
.pz-hero { padding-block: clamp(3rem, 9vh, 6rem) clamp(2rem, 5vh, 3rem); text-align: center; }
.pz-hero-in { display: grid; justify-items: center; gap: 1.25rem; }
.pz-hero h1 { max-width: 14em; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.pz-lead { max-width: 36rem; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.pz-support { max-width: 32rem; font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--muted); }
.pz-hero .actions { margin-top: 0.25rem; }

/* The plans share the same card dimensions. Forge distinguishes Flagship. */
.pz-plans { padding-block: clamp(1.5rem, 5vh, 3rem) clamp(2.5rem, 7vh, 4.5rem); }
.pz-cards { display: grid; gap: 1.25rem; max-width: 64rem; margin-inline: auto; }
@media (min-width: 52em) { .pz-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 1.5rem; } }
.pz-card {
  position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid #2E2F33; border-radius: 22px; background: linear-gradient(180deg, #17181C, #121316);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.85);
}
.pz-card-main { border-color: var(--forge-bright); }
.pz-card-side .pz-plus .sprag { color: var(--muted); }
.pz-card > .pz-list { flex: 1 0 auto; align-content: start; }
@media (min-width: 52em) {
  /* Share the ten card rows so a wrapped description still lines up with its counterpart. */
  .pz-cards { row-gap: 0; }
  .pz-card { display: grid; grid-row: span 10; grid-template-rows: subgrid; row-gap: 0; }
  .pz-card > .pz-list { align-content: space-between; }
}

/* Stacked summaries match, but opening details only expands that plan. */
@media (max-width: 51.99em) {
  .pz-cards:not(:has(.pz-more[open])) { grid-auto-rows: 1fr; }
}

.pz-name { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.pz-price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.pz-amount { font-family: var(--serif); font-size: clamp(3rem, 2.4rem + 2vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: #fff; }
.pz-per { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
.pz-usage { margin-top: 0.5rem; font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--text); }
.pz-plus { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--steel); }
.pz-plus .sprag { color: var(--forge-bright); --sprag-h: 1rem; }
.pz-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.pz-plus + .pz-list { margin-top: 0.875rem; }
.pz-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.625rem; font-family: var(--sans); font-size: 1rem; line-height: 1.45; color: var(--steel); }
.pz-check { width: 1.125rem; height: 1.125rem; margin-top: 0.1875rem; fill: none; stroke: var(--steel); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pz-card-main .pz-check { stroke: var(--forge-bright); }
.pz-scope { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #26272B; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* Complete feature list, closed by default */
.pz-more { margin-top: 1rem; border: 1px solid #2E2F33; border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.pz-more summary, .pz-q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; cursor: pointer;
  list-style: none; font-family: var(--sans); font-weight: 600; color: var(--steel);
}
.pz-more summary { padding: 0.75rem 1rem; font-size: 0.9375rem; }
.pz-more summary::-webkit-details-marker, .pz-q summary::-webkit-details-marker { display: none; }
.pz-more summary::after, .pz-q summary::after {
  content: ""; flex: none; width: 0.625rem; height: 0.625rem; margin-right: 0.25rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg);
}
.pz-more[open] summary::after, .pz-q[open] summary::after { transform: translateY(25%) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  .pz-more summary::after, .pz-q summary::after { transition: transform 0.25s cubic-bezier(.16,1,.3,1); }
}
.pz-more summary:focus-visible, .pz-q summary:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 12px; }
.pz-more-body { padding: 0 1rem 1rem; }
.pz-more-body h3 { margin-top: 1rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--steel); }
.pz-more-body p { margin-top: 0.375rem; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.55; color: var(--text); }

.pz-rule { width: 100%; margin: 1.5rem 0 1.25rem; border: 0; border-top: 1px solid #2E2F33; }
.pz-btn { width: 100%; min-height: 3.25rem; font-size: 0.875rem; }
.pz-btn-ghost { background: transparent; color: var(--steel); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pz-btn-ghost:hover, .pz-btn-ghost:focus-visible { background: var(--paper); color: var(--ink); }
.pz-desc { margin-top: 1.25rem; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); text-align: center; }

/* The cards enter together and face forward throughout. */
@media (min-width: 52em) and (prefers-reduced-motion: no-preference) {
  .js .pz-cards:not(.is-in):not(.is-still) .pz-card { transform: translateY(16px); }
  .js .pz-cards.is-in .pz-card { transition: transform 420ms cubic-bezier(.2,.7,.3,1); }
}

.pz-terms { display: grid; gap: 0.875rem; max-width: 48rem; margin: clamp(2.5rem, 6vh, 3.5rem) auto 0; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.pz-terms strong { color: var(--text); font-weight: 600; }

.pz-h2 { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--paper); text-wrap: balance; }

.pz-setup { padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); }
.pz-steps { display: grid; gap: 1.25rem; margin-top: 2rem; counter-reset: none; }
@media (min-width: 52em) { .pz-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pz-steps li { padding: 1.5rem; border: 1px solid #2E2F33; border-radius: 18px; background: #141518; }
.pz-step-n { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.1em; color: var(--forge-bright); }
.pz-steps h3 { margin-top: 0.75rem; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; color: var(--steel); }
.pz-steps p:not(.pz-step-n) { margin-top: 0.5rem; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--text); }

.pz-faq { padding-block: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); }
.pz-faq-in { display: grid; gap: 2rem; }
@media (min-width: 64em) { .pz-faq-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.pz-qs { display: grid; border-top: 1px solid #2E2F33; }
.pz-q { border-bottom: 1px solid #2E2F33; }
.pz-q summary { padding: 1.125rem 0.25rem; font-size: 1.0625rem; line-height: 1.4; }
.pz-q summary:hover { color: #fff; }
.pz-a { padding: 0 0.25rem 1.25rem; }
.pz-a p { max-width: 42rem; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--text); }
.pz-a a { color: var(--steel); }

.pz-close { padding-block: clamp(3rem, 9vh, 6rem); border-top: 1px solid var(--line); text-align: center; }
.pz-close-in { display: grid; justify-items: center; gap: 1rem; }
.pz-close p { max-width: 32rem; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; color: var(--text); }
.pz-close .actions { margin-top: 0.5rem; }

/* Feature dropdowns: grouped, one feature per row (founder review, Oct 21) */
.pz-more-body h3 { margin-top: 1.25rem; font-size: 0.875rem; letter-spacing: 0.02em; }
.pz-more-body h3:first-child, .pz-more-note + h3 { margin-top: 0.5rem; }
.pz-more-note { margin-top: 0.25rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--steel); }
.pz-feat { display: grid; gap: 0.5rem; margin-top: 0.625rem; }
.pz-feat li { display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.625rem; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.pz-feat .pz-check { width: 1rem; height: 1rem; margin-top: 0.1875rem; stroke: var(--muted); }
.pz-card-main .pz-feat .pz-check { stroke: var(--forge-bright); }
.pz-terms a { color: var(--text); }
.pz-terms a:hover, .pz-terms a:focus-visible { color: #fff; }

/* Founder corrections (issue #1, Oct 21): centred setup heading, three short bold-led terms, checkout buttons */
.pz-setup .pz-h2 { text-align: center; }
.pz-terms { display: grid; gap: 0.75rem; max-width: 46rem; margin: clamp(2.25rem, 5vh, 3rem) auto 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--text); }
.pz-terms li { padding-left: 1rem; border-left: 2px solid #2E2F33; }
.pz-terms strong { color: var(--steel); font-weight: 600; }
.pz-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.pz-co-note { margin-top: 0.625rem; font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); text-align: center; }

/* Typography (Oct 21): same fonts, better settings. Serif headlines leave the hairline Display cut for a sturdier
   optical size with gentler tracking. Archivo text opens a touch (width 104, a hair of tracking) and steps up to
   16-17px for anything a buyer reads; category headings and the plan amounts gain contrast. The amount's line box
   is now tall enough for the dollar sign and figures, so nothing can touch the card edge mid-entrance. */
.pz-hero h1 { font-weight: 360; font-optical-sizing: none; font-variation-settings: "opsz" 44; letter-spacing: -0.018em; line-height: 1.04; }
.pz-h2 { font-weight: 370; font-optical-sizing: none; font-variation-settings: "opsz" 40; letter-spacing: -0.012em; line-height: 1.1; }
.pz-lead { font-weight: 400; line-height: 1.55; }

.pz-card, .pz-terms, .pz-steps, .pz-support { font-stretch: 104%; }
.pz-amount { font-weight: 420; font-optical-sizing: none; font-variation-settings: "opsz" 40; letter-spacing: -0.012em; line-height: 1.12; }
.pz-price { margin-top: 0.75rem; }
.pz-per { font-weight: 500; letter-spacing: 0.005em; }
.pz-usage { margin-top: 0.375rem; font-size: 1.0625rem; font-weight: 500; color: var(--steel); letter-spacing: 0.003em; }
.pz-plus { font-size: 1.0625rem; font-weight: 650; }
.pz-list { gap: 0.875rem; }
.pz-list li { font-size: 1.0625rem; line-height: 1.5; letter-spacing: 0.003em; }
.pz-scope { font-size: 1rem; line-height: 1.55; }
.pz-more summary { font-size: 1rem; font-weight: 600; }
.pz-more-body h3 { margin-top: 1.375rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.005em; color: var(--paper); line-height: 1.4; }
.pz-more-note { font-size: 1rem; font-weight: 650; color: var(--steel); }
.pz-feat { gap: 0.5625rem; }
.pz-feat li { font-size: 1rem; line-height: 1.5; letter-spacing: 0.003em; color: var(--text); }
.pz-co-note { font-size: 0.9375rem; letter-spacing: 0.005em; }
.pz-terms { font-size: 1.0625rem; line-height: 1.6; letter-spacing: 0.003em; }
.pz-terms strong { font-weight: 650; color: var(--paper); }
.pz-steps h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.003em; }
.pz-steps p:not(.pz-step-n) { font-size: 1.0625rem; line-height: 1.55; letter-spacing: 0.003em; }

/* Design system alignment (Oct 22, desktop polish): the shared scale from styles.css; the setup steps become the
   page's Paper band (dark opening and plans, light explanation, dark close), its steps ruled like the homepage's
   numbered points instead of boxed. The plan cards are unchanged. */
.pz-hero h1 { font-size: var(--t-display); }
.pz-lead, .pz-close p { font-size: var(--t-lead); }
.pz-close { padding-block: var(--sp-close); }
.pz-close .pz-h2 { font-size: var(--t-close-caps); }

.pz-setup.paper { padding-block: var(--sp-section); border-top: 0; }
.pz-setup.paper .pz-h2 { font-size: var(--t-section-caps); font-weight: 350; color: var(--ink); }
.pz-setup.paper .pz-steps { gap: 1.75rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.25rem, 5vh, 3.25rem); }
.pz-setup.paper .pz-steps li { padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
.pz-setup.paper .pz-step-n { color: var(--echo-1); }
.pz-setup.paper .pz-steps h3 { color: var(--ink); }
.pz-setup.paper .pz-steps p:not(.pz-step-n) { color: var(--text); }
.pz-setup.paper + .pz-close { border-top: 0; }
