/* Forge Builder checkout + thank-you (/pricing/?set=… · ?session=…)
   Rides on the design-system tokens from forge.css; nothing here is
   page-global. */

.fb-checkout { padding-top: 56px; }

/* The card is a light surface inside the dark page: pin its own ink so nothing
   inherits the section's light-on-dark text colour. */
.fb-card {
  --fb-ink: #16141f;
  --fb-ink-muted: #6b6760;
  color: var(--fb-ink);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .35);
}
.fb-card a { color: var(--fb-ink); }
.fb-card .fb-back, .fb-card .fb-note a { color: var(--fb-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.fb-card .fb-back:hover, .fb-card .fb-note a:hover { color: var(--fb-ink); }
.fb-form label { color: var(--fb-ink); }
.fb-form input[type="email"] { color: var(--fb-ink); }
.fb-table td { color: var(--fb-ink); }
.fb-totals__line--total { color: var(--fb-ink); }

.fb-table { width: 100%; margin: 0 0 8px; }
.fb-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #6b6760); }
.fb-table td, .fb-table th { padding: 12px 8px; border-bottom: 1px solid var(--border, rgba(0, 0, 0, .08)); }
/* nth-child(3): the "Per year" price column — stays put even though the
   Actions column added after it is also right-aligned. */
.fb-table td:nth-child(3), .fb-table th:nth-child(3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-th-actions, .fb-td-actions { text-align: right; white-space: nowrap; }
.fb-tool { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.fb-tool__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent, #F59E0B); flex: none; }
.fb-plan { color: var(--text-muted, #6b6760); }
.fb-draft { font-size: 12px; color: var(--text-muted, #6b6760); }
.fb-plan-switch { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.fb-plan-switch__current { color: var(--fb-ink, #16141f); font-weight: 600; }
.fb-plan-switch__opt { text-decoration: underline; text-underline-offset: 2px; }
.fb-remove { font-size: 13px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.fb-notice { font-size: 14px; padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; background: var(--surface-2, #faf8f4); border: 1px dashed var(--border-strong, rgba(0, 0, 0, .2)); color: var(--text, #1a1a1a); }
.fb-body { margin: 0 0 18px; }

.fb-totals { display: grid; gap: 6px; margin: 16px 0 24px; padding: 16px 8px 0; font-variant-numeric: tabular-nums; }
.fb-totals__line { display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted, #6b6760); }
.fb-totals__line--total { color: var(--text, #1a1a1a); font-size: 22px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--border, rgba(0, 0, 0, .08)); }
.fb-totals__line--total small { font-size: 13px; font-weight: 500; color: var(--text-muted, #6b6760); }
.fb-totals__note { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted, #6b6760); }
.fb-totals__promo { display: inline; margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--fb-ink, inherit); text-decoration: underline; cursor: pointer; }
.fb-totals__save { font-size: 14px; color: var(--accent-strong, #b45309); }

.fb-form { display: grid; gap: 14px; }
.fb-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.fb-form input[type="email"] {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong, rgba(0, 0, 0, .2)); background: var(--surface-2, #faf8f4); color: inherit;
}
.fb-form input[type="email"]:focus-visible { outline: 2px solid var(--accent, #F59E0B); outline-offset: 2px; }
.fb-form .forge-btn { justify-self: start; }
.fb-form .forge-btn[disabled] { opacity: .55; cursor: not-allowed; }
.fb-note, .fb-soon { font-size: 14px; color: var(--text-muted, #6b6760); margin: 0; }
.fb-soon { padding: 12px 14px; border-radius: 12px; background: var(--surface-2, #faf8f4); border: 1px dashed var(--border-strong, rgba(0, 0, 0, .2)); }
.fb-back { display: inline-block; margin-top: 20px; font-size: 14px; }

.fb-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.fb-status[hidden] { display: none; }
.fb-status--error { color: #b42318; }
.fb-status--warn { color: #b45309; }
.fb-status--ok { color: #15803d; font-weight: 600; }

.fb-keys { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.fb-key {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "product copy" "code copy"; gap: 6px 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: var(--surface-2, #faf8f4); border: 1px solid var(--border, rgba(0, 0, 0, .08));
}
.fb-key__product { grid-area: product; font-weight: 600; }
.fb-key__product small { color: var(--text-muted, #6b6760); font-weight: 500; text-transform: capitalize; }
.fb-key__code { grid-area: code; font-size: 15px; letter-spacing: .02em; word-break: break-all; }
.fb-key__copy { grid-area: copy; }

@media (max-width: 560px) {
  .fb-key { grid-template-columns: 1fr; grid-template-areas: "product" "code" "copy"; }
  .fb-key__copy { justify-self: start; }
  .fb-table th:nth-child(2), .fb-table td:nth-child(2) { display: none; }
}

/* ── Pricing line-up (plain /pricing/): seven tools × three plans + the ladder ── */
.fb-lineup { padding-top: 64px; }
.fb-lineup__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.fb-lineup__head .forge-h2 { text-wrap: balance; margin: 12px 0 14px; }
.fb-lineup__lead { color: var(--text-muted, #A7AEC8); margin: 0 auto 24px; }
.fb-ladder { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; }
.fb-ladder__step { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-variant-numeric: tabular-nums; }
.fb-ladder__n { font-weight: 700; }
.fb-ladder__label { font-size: 13px; color: var(--text-muted, #A7AEC8); }
.fb-ladder__pct { font-weight: 700; color: var(--accent, #F59E0B); margin-left: 4px; }
.fb-lineup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.fb-tool-card { border-radius: 18px; padding: 22px 22px 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 14px; }
.fb-tool-card__head { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: start; }
.fb-tool-card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.fb-tool-card__name { margin: 0; font-size: 18px; font-weight: 700; }
.fb-tool-card__tagline { grid-column: 2; margin: 4px 0 0; font-size: 14px; color: var(--text-muted, #A7AEC8); }
.fb-tool-card__plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-tool-card__plan { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-variant-numeric: tabular-nums; }
.fb-tool-card__plan-label { font-size: 14px; }
.fb-tool-card__plan-price { font-weight: 700; }
.fb-tool-card__plan-price small { font-weight: 500; font-size: 12px; color: var(--text-muted, #A7AEC8); margin-left: 2px; }
.fb-tool-card__buy { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.fb-tool-card__buy:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.fb-tool-card__more { margin-top: auto; font-size: 13px; color: var(--text-muted, #A7AEC8); text-decoration: none; }
.fb-tool-card__more:hover { color: inherit; }
/* prelaunch: no plans, no Buy — just the notice, so it needs the vertical
   room the plans list would otherwise take up. */
.fb-tool-card__soon { margin: 4px 0; }
.fb-tool-card--soon { opacity: .72; }
.fb-lineup__cta { text-align: center; margin-top: 36px; display: grid; justify-items: center; gap: 14px; }
.fb-lineup__cta .fb-note { max-width: 620px; }
@media (max-width: 560px) { .fb-tool-card__plan { grid-template-columns: 1fr auto; } .fb-tool-card__buy { grid-column: 1 / -1; justify-self: start; } }

/* EC-03 passport matrix on /pricing/#passports — its own skin, not the price table's
   (that one right-aligns and nowraps the third column for prices). */
.fb-passports { table-layout: fixed; width: 100%; border-collapse: collapse; margin: 0; }
.fb-passports th, .fb-passports td { text-align: left; vertical-align: top; white-space: normal; padding: 14px 12px; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); }
.fb-passports thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #A7AEC8); font-weight: 600; }
.fb-passports thead th:first-child, .fb-passports tbody th { width: 120px; }
.fb-passports tbody th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #A7AEC8); font-weight: 600; }
.fb-passports td { font-size: 13.5px; line-height: 1.5; color: var(--fb-ink, var(--text, #E6E8F2)); }
.fb-passports ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-passports li { overflow-wrap: anywhere; }
.fb-passports__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) { .fb-passports { min-width: 860px; } }
