/* Plans page: plan cards up top, the counting rules in four short points,
   and the long print folded into questions you open when you need them. */

.plans-page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.plans-page .about-lede { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ── Plan cards ─────────────────────────────────────────────────────── */
.pl-grid, .pl-how, .pl-faq, .price-note { width: 100%; box-sizing: border-box; }
.pl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
  margin: 30px 0 0; text-align: left;
}
.pl-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 20px 18px 18px; background: var(--white, #ffffff);
  border: 1px solid rgba(24, 24, 27, 0.16); border-radius: 14px;
  box-shadow: 0 4px 14px -10px rgba(24, 24, 27, 0.24);
}
.pl-card.is-featured { border-color: var(--sanguine, #c2410c); box-shadow: 0 10px 28px -14px rgba(234, 88, 12, 0.45); }
.pl-badge {
  position: absolute; top: -11px; left: 18px; padding: 4px 10px; border-radius: 999px;
  background: var(--sanguine, #c2410c); color: #ffffff; font: 700 11px/1 "Inter", "Segoe UI", sans-serif; letter-spacing: 0.04em;
}
.pl-name { margin: 0; font: 700 17px/1.2 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b); }
/* The Roblox plan's title is the game's own red wordmark, painted inline by
   plans.js, so it needs no image and cannot arrive late. */
.pl-name.is-wordmark { margin: 2px 0 0; }
.pl-wordmark { display: block; width: min(100%, 168px); height: auto; }
.pl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 0; white-space: nowrap; }
.pl-now-line { display: inline-flex; align-items: baseline; gap: 5px; }
.pl-now { font: 800 26px/1 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b); }
.pl-price small { font: 500 13px/1 "Instrument Sans", sans-serif; color: var(--ink-soft, #52525b); }
/* The old price, struck through, sitting just before the new one. */
.pl-was {
  font: 600 15px/1 "Inter", "Segoe UI", sans-serif; color: var(--ink-soft, #52525b);
  text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.75;
}

/* A plan on promo: plans.js adds is-promo when compare_at beats amount. The
   old price takes its own line, struck; the new price sits under it in the
   accent with a green pill counting the saving, and the card carries a PROMO
   flag in the corner the badge does not use. */
.pl-card.is-promo .pl-price { flex-direction: column; align-items: flex-start; gap: 3px; }
.pl-card.is-promo { border-color: rgba(15, 122, 55, 0.34); box-shadow: 0 10px 28px -16px rgba(15, 122, 55, 0.5); }
.pl-card.is-promo .pl-now { color: var(--sanguine, #c2410c); }
.pl-promo-flag {
  position: absolute; top: -11px; right: 18px; padding: 4px 10px; border-radius: 999px;
  background: var(--leaf, #3f6b2a); color: #ffffff;
  font: 700 10.5px/1 "Inter", "Segoe UI", sans-serif; letter-spacing: 0.08em;
}
.pl-save {
  align-self: flex-start; margin-top: -4px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 122, 55, 0.12); color: var(--leaf, #3f6b2a);
  font: 700 11.5px/1 "Inter", "Segoe UI", sans-serif;
}
.pl-main {
  padding: 10px 12px; border-radius: 10px; background: var(--paper, #fafaf9);
  font: 700 20px/1.1 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b);
}
.pl-main small { display: block; margin-top: 4px; font: 500 12px/1.2 "Instrument Sans", sans-serif; color: var(--ink-soft, #52525b); }
.pl-facts { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; white-space: nowrap; line-height: 1.35; color: var(--ink-soft, #52525b); }
.pl-facts li { display: flex; justify-content: space-between; gap: 10px; }
.pl-free-line { white-space: normal; justify-content: flex-start; color: var(--ink, #18181b); font-weight: 600; }
.pl-facts b { color: var(--ink, #18181b); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Token figures (the week, a day, a month: the facts with a bold figure) stay
   off the plans page's cards; the about page borrows the same grid without the
   .plans-page wrapper and keeps them (Nov 17, 2026). */
.plans-page .pl-main,
.plans-page .pl-facts li:has(> b) { display: none; }
.pl-worth {
  margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(24, 24, 27, 0.12);
  font-size: 12.5px; line-height: 1.4; color: var(--ink-soft, #52525b);
}
.pl-worth b { display: block; font: 700 14px/1.3 "Inter", "Segoe UI", sans-serif; color: var(--leaf, #3f6b2a); }
/* "Cost per model": the line is a button that opens the model list. */
button.pl-worth { text-align: left; font-size: 14px; }
.pl-choose {
  display: block; margin-top: auto; padding: 10px 12px; border-radius: 999px; text-align: center; text-decoration: none;
  border: 1px solid var(--ink, #18181b); color: var(--ink, #18181b);
  font: 700 14px/1 "Inter", "Segoe UI", sans-serif;
}
.pl-choose:hover { background: var(--ink, #18181b); color: #ffffff; }
.pl-card.is-featured .pl-choose { background: var(--sanguine, #c2410c); border-color: var(--sanguine, #c2410c); color: #ffffff; }
.pl-card.is-featured .pl-choose:hover { background: var(--ink, #18181b); border-color: var(--ink, #18181b); }

.pl-key { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft, #52525b); }

/* ── Section heading ────────────────────────────────────────────────── */
.pl-h2 { margin: 56px 0 6px; font: 800 24px/1.2 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b); }
.pl-h2-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft, #52525b); }

/* ── How usage works ────────────────────────────────────────────────── */
.pl-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; text-align: left; }
.pl-how li {
  padding: 16px; background: var(--white, #ffffff); border: 1px solid rgba(24, 24, 27, 0.14); border-radius: 14px;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft, #52525b);
}
.pl-how .pl-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%;
  background: var(--ink, #18181b); color: #ffffff; font: 700 13px/1 "Inter", "Segoe UI", sans-serif;
}
.pl-how strong { display: block; margin-bottom: 4px; font: 700 15px/1.3 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b); }

/* ── The estimate notice ────────────────────────────────────────────── */
.price-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 12px 16px;
  background: #fbe9dc; border: 1px solid #c2410c; border-radius: 14px; color: #18181b; text-align: left;
}
.price-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: #c2410c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-note p { margin: 0; font-size: 14px; line-height: 1.5; }
.price-note strong { font-family: "Inter", "Segoe UI", sans-serif; font-weight: 700; color: #c2410c; }

/* ── The details, folded ────────────────────────────────────────────── */
/* ── Free models: a two-column fact sheet ──────────────────────────────── */
.pl-free {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; margin: 0; padding: 6px 20px;
  text-align: left; background: var(--white, #ffffff); border: 1px solid rgba(24, 24, 27, 0.14); border-radius: 14px;
}
.pl-free dt, .pl-free dd { padding: 12px 0; border-bottom: 1px solid rgba(24, 24, 27, 0.1); font-size: 14.5px; line-height: 1.5; }
.pl-free dt { font: 600 14.5px/1.5 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b); }
.pl-free dd { margin: 0; color: var(--ink-soft, #52525b); }
.pl-free dt:nth-last-of-type(1), .pl-free dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) {
  .pl-free { grid-template-columns: 1fr; }
  .pl-free dt { padding-bottom: 2px; border-bottom: 0; }
  .pl-free dd { padding-top: 0; }
}

.pl-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; text-align: left; }
.pl-faq h3 { margin: 0 0 6px; font: 700 12px/1 "Inter", "Segoe UI", sans-serif; letter-spacing: 0.14em; color: var(--sanguine, #c2410c); }
.pl-faq details { border-bottom: 1px solid rgba(24, 24, 27, 0.14); }
.pl-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px;
  cursor: pointer; list-style: none; font: 600 15px/1.3 "Inter", "Segoe UI", sans-serif; color: var(--ink, #18181b);
}
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: "+"; flex: none; font: 400 22px/1 "Inter", sans-serif; color: var(--ink-soft, #52525b); transition: transform 0.2s ease; }
.pl-faq details[open] summary::after { transform: rotate(45deg); }
.pl-faq details p { margin: 0 0 14px; padding: 0 2px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #52525b); }
.pl-faq details p strong { color: var(--ink, #18181b); }

.plans-page .actions { margin-top: 48px; }

@media (max-width: 960px) {
  .pl-how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pl-grid { grid-template-columns: 1fr; gap: 18px; }
  .pl-how { grid-template-columns: 1fr; }
  .pl-faq { grid-template-columns: 1fr; gap: 22px; }
  .pl-h2 { margin-top: 44px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .pl-faq summary::after { transition: none; } }
