/* plans.css
   Copyright © 2026 LexPro. All rights reserved.

   The pricing pages' plans (lib/ui/plan_catalogue.dart, js/plans.js), from
   app/lib/web/site/sections/pricing/pricing_plans.dart and
   plan_price_lead.dart. `.plans--editorial` is PlanCardStyle.editorial (a
   column of the page under a thick rule, the trial's tier on navy); the
   Sunporch and Bell & Beyond pages add their own style class. */

/* Before the catalogue answers: placeholders with the script, the notice
   without it (or when it fails). */
.plans__notice { display: block; }
.plans__grid.plans__grid--placeholder { display: none; }
.js .plans:not(.is-failed) .plans__grid.plans__grid--placeholder { display: grid; }
.js .plans:not(.is-failed) .plans__notice { display: none; }
.plans__retry { display: none; }
.js .plans__retry { display: inline-flex; }

/* _Notice: a flat white card. */
.plans__notice { padding: 24px; border: 1px solid var(--home-line); border-radius: 16px; background: #fff; font-size: 16px; line-height: 1.6; color: var(--home-text); }
.plans__notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.plans__more { font-size: 15px; font-weight: 700; color: var(--home-navy); text-decoration: underline; text-decoration-color: var(--accent-400); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The trial sentence beside the headline (EdSectionHead's lede), and the
   note when prices aren't online. */
.plans-lede__text { font-size: 18px; line-height: 1.6; color: var(--ed-text); }
.plans-lede__note { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ed-muted); }

/* The Yearly | Monthly choice. */
.plans__period { margin-bottom: 20px; }
.plans__period .segmented__option { border: 0; background: none; font-family: inherit; cursor: pointer; }
.plans__period .segmented__option.is-selected { background: #fff; }

/* The grid: three across on a wide window, two on a tablet, one on a phone. */
.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
@media (max-width: 900px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans__grid { grid-template-columns: minmax(0, 1fr); } }

/* A plan (editorial). */
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0; border-top: 4px solid var(--ed-navy);
  --plan-figure: var(--ed-navy); --plan-text: var(--ed-text); --plan-muted: var(--ed-muted); --plan-link: var(--ed-navy); --plan-rule: var(--ed-rule); --plan-name: var(--ed-ink); }
.plan--popular { padding: 28px; background: var(--ed-navy); border-top-color: var(--ed-coral);
  --plan-figure: var(--ed-paper); --plan-text: var(--ed-on-dark); --plan-muted: var(--ed-on-dark-muted); --plan-link: var(--ed-paper); --plan-rule: var(--ed-rule-on-dark); --plan-name: var(--ed-paper); }
.plan > * { max-width: 100%; }
.plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.plan__name { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--plan-name); }
.plan__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--live-bg); color: var(--live-ink); font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: .36px; text-transform: uppercase; }
.plan__skeleton { display: block; width: 110px; height: 22px; margin: 2px 0; border-radius: 6px; background: var(--home-tint2); }
.plan--popular .plan__skeleton { background: var(--ed-rule-on-dark); }
.plan__price { margin-top: 20px; }
.plan__figure { font-size: 76px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--plan-figure); }
.plan__unit { margin-top: 2px; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--plan-text); }
.plan--popular .plan__unit { color: var(--ed-on-dark); }
.plan__small { margin-top: 4px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--plan-muted); }
.plan .plans__more { color: var(--plan-link); }
.plan__lines { list-style: none; margin: 24px 0 0; padding: 0; align-self: stretch; border-bottom: 1px solid var(--plan-rule); }
.plan__lines li { padding: 10px 0; border-top: 1px solid var(--plan-rule); font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--plan-text); }
.plan__more-lines { align-self: stretch; margin-top: 4px; }
.plan__more-lines .plan__lines { margin-top: 8px; }
.plan__features { font-size: 15px; line-height: 1.6; color: var(--plan-muted); }
.plan__toggle {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0; border: 0; border-radius: 6px;
  background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--plan-link); cursor: pointer;
}
/* SizedBox(20) then a Spacer: the buttons line up along a row. */
.plan__spacer { flex: 1 0 20px; }
.plan__button { align-self: stretch; justify-content: center; }

/* What a trial turns into, under the cards (PlanTrialTerms). */
.plans__terms { margin-top: 20px; }
.plans__terms-line { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: var(--home-muted, #4A5A75); }

/* The text pack, as a ruled strip across the measure. */
.plans__pack { margin-top: 28px; padding: 22px 0; border-top: 2px solid var(--ed-navy); border-bottom: 1px solid var(--ed-rule); }
.plans__pack-kicker { color: var(--ed-navy); }
.plans__pack-line { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ed-ink); }
.plans__pack-fallback { font-size: 16px; line-height: 1.6; color: var(--ed-text); }
@media (max-width: 900px) { .plans__pack-row { --stack-gap: 14px; } }

/* StripeTestModeBand: the amber bar over the page. */
.plans-test-mode { padding: 16px 16px 0; }
.plans-test-mode[hidden] { display: none; }
.plans-test-mode__bar { display: flex; align-items: flex-start; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; border-radius: 10px; background: var(--amber-500, #f59e0b); color: var(--ink); }
.plans-test-mode__title { font-size: 16px; line-height: 1.4; font-weight: 700; }
.plans-test-mode__detail { margin-top: 2px; font-size: 13px; line-height: 1.4; }
