/* Public pricing + signup + site lock — SpecPro design tokens */
:root {
  --pf-text: #051B33;
  --pf-muted: #4A5568;
  --pf-accent: #679FDA;
  --pf-bg: #F9FAFB;
  --pf-border: rgba(5, 27, 51, 0.1);
}
body.pub-pricing-body,
body.pub-signup-body,
body.site-lock-body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pf-text);
  background: #fff;
  margin: 0;
  min-height: 100vh;
}
/* Nav layout from public_marketing.css; keep sticky + centered link rail */
body.pub-pricing-body .site-nav {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
body.pub-pricing-body .site-nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
body.pub-pricing-body .site-nav-links a[aria-current="page"] {
  color: var(--pf-text);
  font-weight: 600;
}
body.pub-pricing-body .site-nav-right {
  justify-self: end;
}
.web-currency-picker--nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.web-currency-control { position: relative; }
.web-currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pf-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.web-currency-trigger:hover,
.web-currency-trigger[aria-expanded="true"] {
  border-color: rgba(103, 159, 218, 0.55);
  box-shadow: 0 0 0 3px rgba(103, 159, 218, 0.15);
}
.web-currency-flag { font-size: 16px; line-height: 1; }
.web-currency-code { letter-spacing: 0.02em; }
.web-currency-caret { font-size: 9px; color: var(--pf-muted); margin-left: 2px; }
.web-currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  transform: none;
  z-index: 120;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(5, 27, 51, 0.12);
}
.web-currency-menu[hidden] { display: none !important; }
.web-currency-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text);
  cursor: pointer;
}
.web-currency-menu li:hover,
.web-currency-menu li[aria-selected="true"] {
  background: #F0F7FF;
}
.web-currency-name {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--pf-muted);
}
.pricing-compare-panel {
  margin-top: 8px;
  background: linear-gradient(180deg, #F7FBFF 0%, #fff 48px);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 20px 16px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.pub-pricing-body .compare .feat-legend { margin-bottom: 16px; }
.hero {
  text-align: center;
  padding: 48px 24px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.hero-sub {
  color: var(--pf-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
}
.web-billing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.web-billing-label {
  font-size: 11px;
  font-weight: 600;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.web-billing-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
}
.web-billing-toggle--three {
  max-width: 100%;
}
.web-billing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-muted);
  min-width: 120px;
  cursor: pointer;
}
.web-billing-toggle--three button {
  min-width: 148px;
  flex: 1 1 auto;
}
.web-billing-toggle button.active {
  background: #fff;
  color: var(--pf-text);
  box-shadow: 0 1px 3px rgba(5, 27, 51, 0.1);
}
.web-billing-hint {
  margin: 0;
  font-size: 13px;
  color: var(--pf-muted);
  max-width: 560px;
  line-height: 1.45;
}
.web-save-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(103, 159, 218, 0.12);
  color: var(--pf-text);
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
}
.web-save-badge i { color: var(--pf-accent); }
.tier-section {
  padding: 8px 24px 40px;
  /* Wide enough for five equal cards; avoids auto-fit 4+1 orphan */
  max-width: 1360px;
  margin: 0 auto;
}
/* Centered wrapping card rows — variable counts without left-stranded / stretched orphans */
.pf-cards-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
/* Five tiers: one row on desktop; balanced wrap (not 4+1) below */
.tier-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1180px) {
  /* 3 + 2 centered — same pattern as .pf-cards-center */
  .tier-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
  }
  .tier-row > .price-card {
    flex: 0 1 calc((100% - 28px) / 3);
    max-width: calc((100% - 28px) / 3);
    min-width: 200px;
  }
}
@media (max-width: 720px) {
  .tier-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tier-row > .price-card {
    flex: none;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}
.price-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-width: 0; /* allow 5-col grid shrink without overflow */
}
.price-card.featured {
  border-color: rgba(103, 159, 218, 0.65);
}
/* Same-height ribbon slot on every card so titles/prices stay aligned */
.price-card-featured-ribbon {
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1e3a5f;
  background: linear-gradient(180deg, #d9ebfb 0%, #f0f7ff 100%);
  border-bottom: 1px solid rgba(103, 159, 218, 0.45);
}
.price-card-featured-ribbon.is-spacer {
  visibility: hidden;
  background: transparent;
  border-bottom-color: transparent;
  pointer-events: none;
  user-select: none;
}
.price-card-featured-body {
  padding: 22px 22px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.price-card-body-grow { flex: 1 1 auto; }
.price-card-cta-wrap { margin-top: auto; padding: 16px 22px 22px; }
.price-amount { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
/* Slightly denser type/padding when five cards share one row */
@media (min-width: 1181px) {
  .price-card-featured-body { padding: 18px 16px 0; }
  .price-card-cta-wrap { padding: 14px 16px 18px; }
  .price-amount { font-size: 28px; }
  .feat-list li { font-size: 12px; }
}
.price-period {
  margin-top: 4px;
  font-size: 13px;
  color: var(--pf-muted);
  line-height: 1.35;
}
.price-detail {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pf-muted);
  opacity: 0.92;
  line-height: 1.35;
}
.price-primary--reference .price-amount {
  font-size: 28px;
  color: var(--pf-muted);
}
.price-primary--reference .price-period,
.price-primary--reference .price-detail {
  opacity: 0.85;
}
.price-secondary-annual {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--pf-border);
  background: var(--pf-bg);
  line-height: 1.35;
}
.price-secondary-annual.is-emphasized {
  border-color: rgba(103, 159, 218, 0.55);
  background: rgba(103, 159, 218, 0.08);
}
.price-secondary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
  margin-bottom: 2px;
}
.price-secondary-amount {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--pf-text);
  letter-spacing: -0.02em;
}
.price-secondary-annual.is-emphasized .price-secondary-amount {
  font-size: 20px;
}
.price-secondary-detail {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--pf-muted);
}
.price-save-pct {
  font-weight: 600;
  color: var(--pf-text);
}
.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li { display: flex; gap: 8px; margin-bottom: 8px; color: var(--pf-muted); font-size: 13px; }
/* Checkmark: .feat-list li::before in public_marketing.css (do not also inject FA icons). */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.btn-cta-primary { background: var(--pf-accent); color: #fff; }
.btn-cta-outline { background: #fff; color: var(--pf-text); border-color: var(--pf-border); }
.btn-cta[disabled], .btn-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.upsell {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 24px;
  background: var(--pf-bg);
  border-radius: 12px;
  border: 1px solid var(--pf-border);
}
.upsell h2 { font-size: 1.1rem; margin: 0 0 8px; }
.upsell p { margin: 0; color: var(--pf-muted); font-size: 14px; }
.addon-tier-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.addon-tier-btn {
  border: 1px solid var(--pf-border);
  background: #fff;
  color: var(--pf-muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.addon-tier-btn.active {
  border-color: rgba(103, 159, 218, 0.65);
  color: var(--pf-text);
  background: rgba(103, 159, 218, 0.08);
}
/* Additional seats: uses .pf-cards-center; count varies by plan eligibility */
.addon-seats-grid {
  gap: 12px;
}
.addon-seats-grid > .addon-seat-card {
  flex: 0 1 200px;
  max-width: 220px;
  min-width: 160px;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .addon-seats-grid > .addon-seat-card {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}
.addon-seat-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.addon-seat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text);
  margin-bottom: 6px;
}
.addon-seat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2C5282;
  background: rgba(103, 159, 218, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.addon-seat-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pf-text);
}
.addon-seat-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-muted);
  margin-left: 2px;
}
.addon-seat-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pf-muted);
  line-height: 1.35;
}
.compare { max-width: 1000px; margin: 0 auto 64px; padding: 0 24px; }
.compare h2 { text-align: center; font-size: 1.35rem; margin-bottom: 8px; }
.compare-note { text-align: center; color: var(--pf-muted); font-size: 13px; margin-bottom: 20px; }
.feat-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.feat-compare-table th,
.feat-compare-table td {
  border-bottom: 1px solid var(--pf-border);
  padding: 10px 12px;
  text-align: center;
}
.feat-compare-table th:first-child,
.feat-compare-table td:first-child { text-align: left; }
.mark-yes { color: #22543D; font-weight: 700; }
.mark-partial { color: #975A16; font-weight: 700; }
.mark-no { color: #A0AEC0; }
.site-footer {
  border-top: 1px solid var(--pf-border);
  padding: 20px 40px;
  display: flex;
  gap: 16px;
  color: var(--pf-muted);
  font-size: 13px;
}
.site-footer a { color: var(--pf-accent); text-decoration: none; }

/* Checkout storefront (/checkout, /signup) */
.pub-signup-body { background: linear-gradient(180deg, #f7fafc 0%, #fff 40%); }
body.pub-signup-body .site-nav--checkout {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--pf-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
body.pub-signup-body .site-nav--checkout .site-nav-right { justify-self: end; }
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-muted);
}
.checkout-step { display: inline-flex; align-items: center; gap: 8px; }
.checkout-step.is-active { color: var(--pf-text); }
.checkout-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; background: #E2E8F0; color: var(--pf-muted);
}
.checkout-step.is-active .checkout-step-num {
  background: var(--pf-accent); color: #fff;
}
.checkout-step-sep {
  width: 28px; height: 2px; background: var(--pf-border); border-radius: 2px;
}
.checkout-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.checkout-order {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 1px 3px rgba(5, 27, 51, 0.06);
  position: sticky;
  top: 88px;
}
.checkout-order h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-muted);
}
.checkout-order-plan {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pf-text);
}
.checkout-order-meta {
  margin: 6px 0 16px;
  font-size: 13px;
  color: var(--pf-muted);
  line-height: 1.4;
}
.checkout-order-price { margin-bottom: 10px; }
.checkout-price-main {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pf-text);
}
.checkout-price-period {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--pf-muted);
}
.checkout-order-note {
  font-size: 12px;
  color: var(--pf-muted);
  line-height: 1.45;
  margin: 0 0 14px;
}
.checkout-change-plan {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-accent);
  text-decoration: none;
}
.checkout-change-plan:hover { text-decoration: underline; }
.checkout-main {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 3px rgba(5, 27, 51, 0.06);
}
.checkout-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.signup-sub { color: var(--pf-muted); font-size: 14px; margin: 0 0 24px; }
.signup-note {
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.signup-note.warn { border-color: rgba(151, 90, 22, 0.35); background: #FFFAF0; }
.signup-form .form-group { margin-bottom: 16px; }
.signup-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-muted);
  margin-bottom: 6px;
}
.signup-form label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: #8A8A8A; }
.signup-form input,
.signup-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 12px; color: var(--pf-muted); margin: 6px 0 0; }
.signup-error { color: #C53030; font-size: 14px; margin: 0 0 12px; }
.signup-legal { font-size: 12px; color: var(--pf-muted); margin: 14px 0 0; line-height: 1.4; }
.signup-foot { margin-top: 28px; font-size: 13px; color: var(--pf-muted); }
.signup-foot a { color: var(--pf-accent); }
@media (max-width: 800px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-order { position: static; }
  body.pub-signup-body .site-nav--checkout {
    display: flex; flex-wrap: wrap; height: auto; padding: 12px 16px;
  }
  .checkout-steps { order: 3; width: 100%; justify-content: center; margin-top: 4px; }
}

/* Site lock */
.site-lock-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #f0f7ff 0%, #fff 55%);
  padding: 24px;
}
.site-lock-card {
  max-width: 420px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  padding: 40px 28px;
  box-shadow: 0 4px 24px rgba(5, 27, 51, 0.06);
}
.site-lock-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.site-lock-brand .sp-logo__word {
  font-size: 1.25rem;
  font-weight: 700;
}
.site-lock-card h1 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.site-lock-msg {
  color: var(--pf-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.site-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
@media (max-width: 640px) {
  body.pub-pricing-body .site-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    height: auto;
    min-height: 64px;
  }
  body.pub-pricing-body .site-nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
  .form-row { grid-template-columns: 1fr; }
}
