/* ==========================================================================
   Lifestoria price cards (HIST-675) — Martin's card, 20 Oct 2026.
   Drawn by shared/js/price-cards.js on pages/pricing.html and in the
   console's pricing-admin preview. Self-contained: tokens are declared on the
   .ls-price-cards wrapper (not :root) so nothing leaks into or out of a page.
   Every card is the same stack of groups, and subgrid holds each group on one
   line across the row, whatever the copy length:
   head (name + promise) · cost (price + per interview) · interviews · best for · CTA
   ========================================================================== */
.ls-price-cards {
  --color-bg: #f4efe7; --color-bg-soft: #ede4d8; --color-surface: #fbf8f3;
  --color-text: #2d2823; --color-text-muted: #6f665d; --color-text-soft: #94887c;
  --color-accent: #8a6f56; --color-accent-dark: #5f4938; --color-border: rgba(45, 40, 35, 0.14);
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 0.75rem; --radius-md: 1.25rem; --radius-pill: 999px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1); --duration-fast: 180ms;
  font-family: var(--font-body); color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}
.ls-price-cards *, .ls-price-cards *::before, .ls-price-cards *::after { box-sizing: border-box; }
.ls-price-cards :focus-visible { outline: 2px solid var(--color-accent-dark); outline-offset: 3px; border-radius: 4px; }

/* ----- The section: heading, subtitle, cards, note ----- */
.ls-price-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.ls-price-inner { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.pricing-plans-head { max-width: 40rem; margin: 0 auto; text-align: center; }
.pricing-plans-eyebrow {
  margin: 0 0 1rem; color: var(--color-accent-dark); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; line-height: 1; text-transform: uppercase;
}
.pricing-plans-title {
  margin: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 400;
  line-height: 1; letter-spacing: -0.035em; color: var(--color-text); text-wrap: balance;
}
.pricing-plans-sub { margin: 0.9rem auto 0; max-width: 34rem; font-size: 1rem; line-height: 1.7; color: var(--color-text-muted); }
.pricing-plans-body { max-width: 64rem; margin: clamp(2.25rem, 4vw, 3.25rem) auto 0; }

/* ----- The cards -----
   --plan-cols is set by the renderer to the card count (max 3), so one or two
   cards sit at a three-card column's width, centred; more wrap in rows of 3. */
.plans {
  --plan-cols: 3;
  display: grid; grid-template-columns: repeat(var(--plan-cols), minmax(0, 1fr)); column-gap: 1rem;
  grid-template-rows: repeat(5, auto); padding-top: 0.9rem;
  max-width: calc(var(--plan-cols) * 21.34rem); margin-inline: auto;
}
.plan {
  position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem 1.5rem;
  /* The gutter between wrapped rows rides on the card: a row-gap on .plans
     would also push apart the subgrid rows inside every card. */
  margin-bottom: 1rem;
  text-align: left;
  transition: border-color var(--duration-fast) var(--ease-soft), transform var(--duration-fast) var(--ease-soft), box-shadow var(--duration-fast) var(--ease-soft);
}
/* min-width: 0 lets a long name wrap inside the column instead of widening it. */
.plan { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.plan[hidden] { display: none; }
/* Hover is a hint: a 2px lift and a soft shadow. The button carries the real state. */
.plan:hover, .plan:focus-within { border-color: rgba(45, 40, 35, 0.24); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45, 40, 35, 0.07); }
.plan.is-featured { background: #fff; border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 22px 50px rgba(45, 40, 35, 0.12); }
.plan.is-featured:hover, .plan.is-featured:focus-within { box-shadow: 0 0 0 1px var(--color-accent), 0 26px 56px rgba(45, 40, 35, 0.15); }

.plan-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
  padding: 0.32rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-bg);
}
.plan-badge.is-ink { background: var(--color-text); }

.plan-name { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; color: var(--color-text); }
.plan-promise { margin: 0.3rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--color-text-muted); text-wrap: pretty; }

.plan-cost { margin-top: 1.5rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.45rem; margin: 0; }
.plan-price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--color-text); }
.plan-price span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-text-muted); }
.plan-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0; font-size: 0.84rem; font-style: italic; color: var(--color-text-soft); }
/* "Lowest price" / "Save 25%" is a chip, not an aside tucked into the same sentence. */
.plan .chip { font-style: normal; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; padding: 0.24rem 0.52rem; border-radius: var(--radius-pill); background: rgba(138, 111, 86, 0.12); border: 1px solid rgba(138, 111, 86, 0.3); color: var(--color-accent-dark); }

.plan .label { display: block; margin: 0 0 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); }

.plan-count { margin-top: 1.5rem; }
.count-pill { display: flex; align-items: center; gap: 0.4rem; line-height: 1.2; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: rgba(45, 40, 35, 0.055); font-size: 0.86rem; color: var(--color-text-muted); }
.count-ico { width: 17px; height: 17px; flex: 0 0 auto; margin-right: 0.2rem; color: var(--color-accent); }
/* The interview count is set like the price: Libre Baskerville 700. */
.count-pill b { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: -0.035em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.plan.is-featured .count-pill { background: var(--color-bg); }

.plan-for { margin-top: 1.5rem; }
.plan-for p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--color-text-muted); text-wrap: pretty; }

/* The design's .plan-cta wrapper. Named .plan-action because .plan-cta is an
   existing button class on pages/pricing.html. */
.plan-action { margin-top: 1.5rem; align-self: end; min-width: 0; }
/* The plan name comes from the pricing admin, so it can be any length: it
   wraps on the button and is never hidden behind an ellipsis (owner,
   2026-10-23). A centred 48px floor keeps the one-line look. */
.plan-action .btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 48px; padding: 0.6rem 1.2rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft), border-color var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft);
}
.plan-action .btn:hover { transform: translateY(-2px); }
/* Whitish fill, so the secondary button reads as a button on the cream card. */
.plan-action .btn-outline { background: #fff; color: var(--color-text); border-color: rgba(45, 40, 35, 0.18); }
.plan-action .btn-outline:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.plan-action .btn-filled { background: var(--color-accent); color: var(--color-bg); }
.plan-action .btn-filled:hover { background: var(--color-text); }

/* ----- The note under the cards: an icon, then one sentence with its key words in ink ----- */
.add-more {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 1.1rem;
  margin-top: 1.25rem; padding: 1.15rem 1.5rem 1.15rem 1.15rem; background: rgba(251, 248, 243, 0.7);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.add-more-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(138, 111, 86, 0.12); border: 1px solid rgba(138, 111, 86, 0.22); color: var(--color-accent-dark);
}
.add-more-ico svg { width: 22px; height: 22px; }
.add-more-text { min-width: 0; }
.add-more p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--color-text-muted); text-wrap: pretty; }
.add-more p b { font-weight: 600; color: var(--color-text); }
/* A monthly offer's month-to-month line, under the sentence. */
.add-more .fine { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.55; color: var(--color-text-soft); }

/* ----- Phone: one card per row, the recommended card first ----- */
@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 1.6rem; max-width: 27rem; }
  .plan { grid-row: auto; grid-template-rows: none; margin-bottom: 0; }
  .plan.is-featured { order: -1; }
  .add-more { max-width: 27rem; margin-inline: auto; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .plan, .plan-action .btn { transition: none; }
  .plan:hover, .plan:focus-within, .plan-action .btn:hover { transform: none; }
}
