/* Friends & Robots — Static Ad Factory plan and pack cards.
   One card design for two places: the public pricing page
   (/static-ad-factory/pricing) and the workspace's Subscriptions & Packs
   page (/static-ad-factory/app#plans). Self-contained on factory-tokens.css
   — it borrows nothing from the landing sheet, so the workspace can load it
   without static-ad-factory.css. Each page supplies its own head, spacing
   around the grid and whatever follows it. */

/* Capped well under a page section's 72rem so three columns stay card-
   sized (~300px each) rather than stretching across the page. */
.saf-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  max-width: 60rem;
  margin: 40px auto 0;
}
/* One tier per column: the monthly plan on top, its one-time pack
   directly beneath, so the two are compared in place. */
.saf-price-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.saf-price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-2xl);
  background: var(--saf-bg);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(18, 22, 29, 0.05);
}
/* The middle tier is the one we sell: brand border, a warmer shadow and
   a "Most popular" flag. */
.saf-price-card.is-featured {
  border-color: var(--saf-brand);
  box-shadow: 0 24px 60px -24px rgba(249, 115, 22, 0.35);
}
.saf-price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}
/* Ink pill so the flag reads apart from the orange save badges. */
.saf-price-flag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--saf-ink);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}
.saf-price-name {
  margin: 0;
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--saf-ink);
}
.saf-price-tagline {
  margin: var(--sp-sm) 0 0;
  font-size: 14px;
  line-height: var(--lh-relaxed);
  color: var(--saf-ink-soft);
}
.saf-price-amount {
  margin: var(--sp-xl) 0 0;
  font-size: 40px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--saf-ink);
}
.saf-price-period {
  margin-left: 2px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  color: var(--saf-muted);
}
.saf-price-ads {
  margin: var(--sp-lg) 0 0;
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--saf-ink);
}
/* Promotional save badge — every percentage is measured against the
   $5-an-ad pack anchor. Soft brand pill with the pressed brand ink so it
   shouts without failing contrast. */
.saf-price-save {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--saf-brand-soft);
  font-size: 12px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--saf-brand-pressed);
}
.saf-price-card .saf-price-save { margin-top: var(--sp-md); }
/* Per-tier free edits and variants. The bottom margin is the minimum
   gap to the CTA, which otherwise sits flush at margin-top: auto. */
.saf-price-perks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin: var(--sp-lg) 0 var(--sp-xl);
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--saf-ink-soft);
}
.saf-price-perks li {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.saf-price-perks svg { flex: none; color: var(--saf-brand); }
/* A limitation listed among the perks (Day Shift's missing rollover):
   muted text and a muted cross, so it doesn't read as a benefit. */
.saf-price-perks .is-off { color: var(--saf-muted); }
.saf-price-perks .is-off svg { color: var(--saf-muted); }
/* The plan card grows to fill its column and the button pins to its
   bottom edge, so the three cards — whose taglines wrap to different
   line counts — end level and the packs beneath line up across columns. */
.saf-price-col .saf-price-card { flex: 1; }
/* The column's primary: the brand button, fully styled here so it looks
   the same with or without the landing sheet's .saf-cta beside it. */
.saf-price-cta {
  margin-top: auto;
  border-radius: var(--radius-lg);
  background: var(--saf-brand);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-standard);
}
.saf-price-cta:hover { background: var(--saf-brand-pressed); }

/* ── One-time pack (under each plan) ───────────────────────── */
/* Quieter than the plan above it: surface background, no shadow, an
   outline button — the orange plan CTA stays the column's primary. */
.saf-price-pack {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-2xl);
  background: var(--saf-surface);
  padding: 20px 24px 24px;
}
.saf-price-pack-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--saf-muted);
}
.saf-price-pack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
}
.saf-price-pack-name {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--saf-ink);
}
.saf-price-pack-price {
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--saf-ink);
}
/* The anchor total (ads × $5) struck out beside the real price. */
.saf-price-pack-was {
  margin-right: var(--sp-sm);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  color: var(--saf-muted);
  text-decoration: line-through;
}
/* The smaller packs state the anchor rate every badge is measured
   against; the biggest pack carries an off-badge instead. */
.saf-price-pack-anchor {
  margin: var(--sp-sm) 0 0;
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--saf-brand-pressed);
}
.saf-price-pack .saf-price-save { margin-top: var(--sp-sm); }
.saf-price-pack-perks {
  margin: var(--sp-sm) 0 0;
  font-size: 12px;
  color: var(--saf-muted);
}
.saf-price-pack-cta {
  margin-top: var(--sp-lg);
  padding: 10px 20px;
  border: 1px solid var(--saf-border);
  border-radius: var(--radius-lg);
  background: var(--saf-bg);
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--saf-ink);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.saf-price-pack-cta:hover { border-color: var(--saf-brand); color: var(--saf-brand); }

@media (min-width: 900px) {
  .saf-price-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Included strip: the deliverable is identical on every plan and pack;
   only the count changes. */
.saf-price-included {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md) var(--sp-xl);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.saf-price-included-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--saf-ink-soft);
}
.saf-price-included-item svg { flex: none; color: var(--saf-brand); }
