/* ============================================================
   lm-pricing.css — PUBLIC /pricing page (Phase 11.3).
   Only the NEW blocks live here: the hero, the Talent/Brand mode toggle, the
   panel show/hide, and the bottom CTA (visuals from designs/pricing/Pricing.html).
   The tier cards, billing toggle, comparison table and FAQ are REUSED from
   lm-membership.css (loaded first). Everything is scoped under .lm-pricing.
   Vars (--lm-brand teal #00363f, --lm-primary emerald, --lm-gold) come from
   .lm-mem-page in lm-membership.css. Responsive down to 375px.
   ============================================================ */

/* ---------- Hero ---------- */
.lm-pricing .lm-pr-hero { padding: 12px 0 8px; text-align: center; max-width: 860px; margin: 0 auto; }
.lm-pricing .lm-pr-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--lm-font-mono, monospace);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lm-muted);
}
/* Hero kept borderless per request — eyebrow hairlines + price-note pill removed. */
.lm-pricing .lm-pr-hero { background: transparent; border: none; border-radius: 0; box-shadow: none; overflow: visible; }
.lm-pricing .lm-pr-hero h1 {
  font: 600 48px/1.06 var(--lm-font, "Inter", system-ui, sans-serif);
  letter-spacing: -0.025em; margin: 16px auto 18px; max-width: 760px; text-wrap: balance;
}
.lm-pricing .lm-pr-hero h1 em { font-family: var(--lm-font-serif, Georgia, "Times New Roman", serif); font-style: italic; font-weight: 400; }
.lm-pricing .lm-pr-hero .lead {
  font: 400 16.5px/1.6 var(--lm-font, "Inter", system-ui, sans-serif);
  color: var(--lm-text-secondary); margin: 0 auto 26px; max-width: 640px;
}
.lm-pricing .lm-pr-hero strong { color: var(--lm-text); font-weight: 600; }

/* ---------- Talent / Brand mode toggle ---------- */
.lm-pricing .lm-toggle {
  display: inline-flex; position: relative;
  background: #fff; border: 1px solid var(--lm-border); border-radius: 999px;
  padding: 5px; box-shadow: var(--lm-shadow-sm, 0 1px 2px rgba(15,23,42,0.06)); margin: 4px 0 18px;
}
.lm-pricing .lm-toggle button {
  position: relative; z-index: 1;
  font: 600 14px/1 var(--lm-font, "Inter", system-ui, sans-serif);
  background: transparent; border: none; color: var(--lm-text-secondary);
  padding: 12px 24px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: color 0.18s ease;
}
.lm-pricing .lm-toggle button:hover { color: var(--lm-text); }
.lm-pricing .lm-toggle button.is-on { color: #fff; }
.lm-pricing .lm-toggle .knob {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--lm-primary); border-radius: 999px; z-index: 0;
  transition: transform 0.25s cubic-bezier(.4,.2,.2,1), background 0.2s ease;
}
.lm-pricing[data-mode="brands"] .lm-toggle .knob { transform: translateX(100%); background: var(--lm-brand); }

/* ---------- Price note pill ---------- */
.lm-pricing .lm-price-note {
  margin-top: 6px;
  font: 400 12.5px/1.4 var(--lm-font, "Inter", system-ui, sans-serif);
  color: var(--lm-muted);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lm-surface); border: 1px solid var(--lm-border);
  border-radius: 999px; padding: 7px 14px;
}
.lm-pricing .lm-price-note .dot { width: 6px; height: 6px; background: var(--lm-gold); border-radius: 999px; flex: none; }

/* ---------- Panel show/hide (mode switch) ---------- */
.lm-pricing .lm-mode-talent,
.lm-pricing .lm-mode-brands { display: none; }
.lm-pricing[data-mode="talent"] .lm-mode-talent { display: block; }
.lm-pricing[data-mode="brands"] .lm-mode-brands { display: block; }

/* Billing toggle active colour follows the mode (emerald talent / teal brand). */
.lm-pricing[data-mode="brands"] .bill-toggle button.is-active { background: var(--lm-brand); }

/* ---------- Bottom CTA (contained dark-teal block) ---------- */
.lm-pricing .lm-final {
  background: var(--lm-brand, #00363f); color: #fff;
  border-radius: 18px; padding: 56px 48px; margin-top: 56px;
}
.lm-pricing .lm-final-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.lm-pricing .lm-final .eyebrow {
  display: inline-block; font: 700 11px/1 var(--lm-font-mono, monospace);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--lm-gold); margin-bottom: 16px;
}
.lm-pricing .lm-final h2 {
  font: 600 38px/1.1 var(--lm-font, "Inter", system-ui, sans-serif);
  letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; color: #fff;
}
.lm-pricing .lm-final h2 em { font-family: var(--lm-font-serif, Georgia, serif); font-style: italic; font-weight: 400; color: var(--lm-gold); }
.lm-pricing .lm-final p {
  font: 400 16px/1.6 var(--lm-font, "Inter", system-ui, sans-serif);
  color: rgba(255,255,255,0.72); margin: 0 0 24px; max-width: 480px;
}
.lm-pricing .lm-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-pricing .lm-final-actions .btn { width: auto; padding: 8px 22px; font-size: 14px; }
.lm-pricing .lm-final .btn-ghost-dark {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22);
}
.lm-pricing .lm-final .btn-ghost-dark:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lm-pricing .lm-final-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 28px;
}
.lm-pricing .lm-final-card .k {
  font: 700 11px/1 var(--lm-font-mono, monospace); letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 14px;
}
.lm-pricing .lm-final-card .stat {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.lm-pricing .lm-final-card .stat:first-of-type { border-top: none; padding-top: 0; }
.lm-pricing .lm-final-card .stat:last-of-type { padding-bottom: 0; }
.lm-pricing .lm-final-card .stat .v {
  font: 600 24px/1 var(--lm-font, "Inter", system-ui, sans-serif); letter-spacing: -0.02em;
  color: #fff; white-space: nowrap;
}
.lm-pricing .lm-final-card .stat .lbl { font: 400 13px/1.4 var(--lm-font, "Inter", system-ui, sans-serif); color: rgba(255,255,255,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .lm-pricing .lm-final-grid { grid-template-columns: 1fr; gap: 28px; }
  .lm-pricing .lm-final h2 { font-size: 28px; }
  .lm-pricing .lm-final { padding: 40px 28px; }
}
@media (max-width: 540px) {
  .lm-pricing .lm-pr-hero h1 { font-size: 32px; }
  .lm-pricing .lm-pr-hero .lead { font-size: 15px; }
  .lm-pricing .lm-toggle { width: 100%; }
  .lm-pricing .lm-toggle button { flex: 1; justify-content: center; padding: 11px 12px; }
  .lm-pricing .lm-final { padding: 32px 20px; }
  .lm-pricing .lm-final-actions .btn { width: 100%; }
}
@media (max-width: 375px) {
  .lm-pricing .lm-pr-hero h1 { font-size: 27px; }
  .lm-pricing .lm-toggle button { padding: 10px 8px; font-size: 13px; gap: 5px; }
}

/* ============================================================
   Brand panel — re-apply the compound .lm-mem-page.lm-brand-pricing
   rules that can't match a nested panel (teal vars come from the
   .lm-brand-pricing class on the panel via lm-brand-pricing.css).
   ============================================================ */
.lm-pricing .lm-mode-brands .tiers--brand { grid-template-columns: 1fr 1fr; }
.lm-pricing .lm-mode-brands .tier.elite-c .price,
.lm-pricing .lm-mode-brands .tier.elite-c .price-num { color: #fff; }
.lm-pricing .lm-mode-brands .tier.elite-c .per { color: #e8dfc6; }
.lm-pricing .lm-mode-brands .tier.elite-c .price-bill,
.lm-pricing .lm-mode-brands .tier.elite-c .price-bill-txt { color: #cdbf9a; }
.lm-pricing .lm-mode-brands .compare-foot .btn { width: auto; }
/* Normalise button height in the brand panel (the dashboard does this via the
   compound .lm-mem-page.lm-brand-pricing .btn rule, which a nested panel can't
   match — the .btn{width:100%} base was stretching them tall). */
.lm-pricing .lm-mode-brands .btn { min-height: 0; height: auto; line-height: 1.2; }
.lm-pricing .lm-mode-brands .compare-foot-actions { align-items: center; }
@media (max-width: 760px) {
  .lm-pricing .lm-mode-brands .tiers--brand { grid-template-columns: 1fr; }
}

/* ============================================================
   Talent comparison table — 5 tier columns (Free/Verified/PRO/VIP/ELITE).
   Reuses the .compare / .cell-* / .compare-row-group styling from
   lm-brand-pricing.css; only the 6-column grid + the talent column
   header tints are new. Scoped to .lm-mode-talent so it never collides
   with the brand 4-column .compare-grid.
   ============================================================ */
.lm-pricing .lm-mode-talent .compare-grid { grid-template-columns: minmax(220px, 1.4fr) repeat(5, 1fr); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-verified { background: linear-gradient(180deg, var(--lm-primary-soft) 0%, var(--lm-surface) 100%); color: var(--lm-primary-text, var(--lm-primary)); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-pro { background: linear-gradient(180deg, var(--lm-primary-soft) 0%, var(--lm-surface) 100%); color: var(--lm-primary-text, var(--lm-primary)); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-vip { background: linear-gradient(180deg, var(--lm-gold-soft) 0%, var(--lm-surface) 100%); color: var(--lm-gold-deep); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-elite { background: linear-gradient(180deg, var(--lm-elite, #0c0a05) 0%, var(--lm-elite-2, #1a1208) 100%); color: var(--lm-gold); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-elite .price { color: #fff; font-size: 15px; }
.lm-pricing .lm-mode-talent .compare-grid.header .col-vip .price { color: var(--lm-gold-deep); }
.lm-pricing .lm-mode-talent .compare-grid > .col-verified,
.lm-pricing .lm-mode-talent .compare-grid > .col-pro { background: linear-gradient(180deg, rgba(15,111,79,.04), transparent); }
.lm-pricing .lm-mode-talent .compare-grid > .col-vip { background: linear-gradient(180deg, rgba(198,161,91,.08), transparent); }
.lm-pricing .lm-mode-talent .compare-grid > .col-elite { background: linear-gradient(180deg, rgba(12,10,5,.05), transparent); }
.lm-pricing .lm-mode-talent .compare-grid.header .col-path { font-family: var(--lm-font-mono, monospace); font-size: 9.5px; color: var(--lm-muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.lm-pricing .lm-mode-talent .compare-grid.header .col-elite .col-path { color: rgba(232,223,198,.55); }
/* Talent compare scrolls horizontally on small screens (5 cols don't fit). */
@media (max-width: 760px) {
  .lm-pricing .lm-mode-talent .compare { overflow-x: auto; }
  .lm-pricing .lm-mode-talent .compare-grid { min-width: 720px; }
}

/* Talent infographic — 5th bar (ELITE) gold highlight for the reused calc-strip. */
.lm-pricing .calc-bar.b5 .bar { background: linear-gradient(180deg, #d4b46a, #C6A15B); }

/* ============================================================
   Talent maintenance infographic (timeline) + talent FAQ left column.
   From talent-membership.html. Scoped to .lm-mode-talent. The .faq-*,
   .compare-* and .cell-* styles are reused from lm-brand-pricing.css;
   only the maintenance section + the .maint-left FAQ column are new.
   --lm-warning / --lm-danger are not in our system, so hardcoded.
   ============================================================ */
.lm-pricing .lm-mode-talent .maint-section,
.lm-pricing .lm-mode-talent .faq-section { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: flex-start; }
.lm-pricing .lm-mode-talent .maint-left .kicker { font-family: var(--lm-font-mono, monospace); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--lm-muted); margin-bottom: 10px; display: inline-block; }
.lm-pricing .lm-mode-talent .maint-left h2 { margin: 0 0 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.lm-pricing .lm-mode-talent .maint-left p { margin: 0 0 14px; color: var(--lm-text-secondary); font-size: 14px; line-height: 1.6; max-width: 38ch; }
.lm-pricing .lm-mode-talent .maint-left strong { color: var(--lm-text); font-weight: 600; }
.lm-pricing .lm-mode-talent .maint-rule { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--lm-surface); border: 1px solid var(--lm-border-2, var(--lm-border)); border-radius: 10px; margin-top: 12px; }
.lm-pricing .lm-mode-talent .maint-rule .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--lm-bg); color: var(--lm-primary-text, var(--lm-primary)); display: grid; place-items: center; flex: none; border: 1px solid var(--lm-border); }
.lm-pricing .lm-mode-talent .maint-rule .text { font-size: 13px; color: var(--lm-text-secondary); line-height: 1.5; }
.lm-pricing .lm-mode-talent .maint-rule .text strong { color: var(--lm-text); font-weight: 600; display: block; margin-bottom: 2px; }

.lm-pricing .lm-mode-talent .maint-vis { background: var(--lm-bg); border: 1px solid var(--lm-border); border-radius: 14px; padding: 24px 26px; }
.lm-pricing .lm-mode-talent .maint-vis .h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.lm-pricing .lm-mode-talent .maint-vis h3 { margin: 0; font-size: 16px; font-weight: 600; }
.lm-pricing .lm-mode-talent .maint-vis .legend { display: flex; gap: 14px; font-family: var(--lm-font-mono, monospace); font-size: 10.5px; color: var(--lm-muted); text-transform: uppercase; letter-spacing: .04em; }
.lm-pricing .lm-mode-talent .maint-vis .legend .l { display: inline-flex; align-items: center; gap: 5px; }
.lm-pricing .lm-mode-talent .maint-vis .legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.lm-pricing .lm-mode-talent .legend .sw.earn { background: var(--lm-primary); }
.lm-pricing .lm-mode-talent .legend .sw.maint { background: #f59e0b; }
.lm-pricing .lm-mode-talent .legend .sw.demote { background: #c0392b; }
.lm-pricing .lm-mode-talent .timeline { display: flex; flex-direction: column; gap: 12px; }
.lm-pricing .lm-mode-talent .t-row { display: flex; align-items: center; gap: 14px; }
.lm-pricing .lm-mode-talent .t-row .month { font-family: var(--lm-font-mono, monospace); font-size: 10.5px; color: var(--lm-muted); text-transform: uppercase; letter-spacing: .04em; width: 48px; flex: none; }
.lm-pricing .lm-mode-talent .t-row .seg { display: flex; flex: 1; height: 30px; border-radius: 6px; overflow: hidden; background: var(--lm-surface-2); position: relative; }
.lm-pricing .lm-mode-talent .t-row .seg .blk { display: flex; align-items: center; justify-content: center; font-family: var(--lm-font-mono, monospace); font-size: 10px; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; white-space: nowrap; }
.lm-pricing .lm-mode-talent .t-row .seg .blk.earn { background: var(--lm-primary); }
.lm-pricing .lm-mode-talent .t-row .seg .blk.maint { background: #f59e0b; }
.lm-pricing .lm-mode-talent .t-row .seg .blk.demote { background: #c0392b; }
.lm-pricing .lm-mode-talent .t-row .seg .blk.idle { background: var(--lm-surface-2); color: var(--lm-muted); }
.lm-pricing .lm-mode-talent .t-row .out { font-family: var(--lm-font-mono, monospace); font-size: 11.5px; font-weight: 600; flex: none; width: 86px; text-align: right; }
.lm-pricing .lm-mode-talent .t-row.up .out { color: var(--lm-primary-text, var(--lm-primary)); }
.lm-pricing .lm-mode-talent .t-row.down .out { color: #c0392b; }
.lm-pricing .lm-mode-talent .t-row.flat .out { color: var(--lm-muted); }
@media (max-width: 800px) {
  .lm-pricing .lm-mode-talent .maint-section,
  .lm-pricing .lm-mode-talent .faq-section { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Controls row — mode toggle (left) + billing toggle (right), one line.
   ============================================================ */
.lm-pricing .lm-pr-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 6px auto 26px; }
.lm-pricing .lm-pr-controls .lm-toggle { margin: 0; }
@media (max-width: 700px) {
  .lm-pricing .lm-pr-controls { justify-content: center; }
}

/* Talent mobile-accordion tier badges (free/verified come from brand css). */
.lm-pricing .lm-mode-talent .acc-head .badge.pro { background: var(--lm-primary); color: #fff; }
.lm-pricing .lm-mode-talent .acc-head .badge.vip { background: linear-gradient(135deg, #d4b46a, #C6A15B); color: #1f1408; }
.lm-pricing .lm-mode-talent .acc-head .badge.elite { background: linear-gradient(135deg, #3a2e15, #0c0a05); color: #fef7d6; }

/* ============================================================
   Dark theme — overrides for the NEW pricing components (the tier cards,
   compare table, FAQ items already carry dark rules from lm-membership.css
   + lm-brand-pricing.css). Targets html[data-lm-theme="dark"].
   ============================================================ */
html[data-lm-theme="dark"] .lm-pricing .lm-toggle { background: var(--lm-surface-2); border-color: var(--lm-border); }
html[data-lm-theme="dark"] .lm-pricing .lm-toggle button { color: var(--lm-muted); }
html[data-lm-theme="dark"] .lm-pricing .lm-toggle button.is-on { color: #fff; }
/* Light mode keeps the near-black talent knob; in dark that would be light-on-light,
   so use emerald (talent) / teal (brands) for a readable active pill. */
html[data-lm-theme="dark"] .lm-pricing .lm-toggle .knob { background: var(--lm-primary); }
html[data-lm-theme="dark"] .lm-pricing[data-mode="brands"] .lm-toggle .knob { background: var(--lm-brand); }
/* Talent comparison header tints — the light gold/green washes are too bright on
   a dark page; use translucent tints with readable text. */
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid.header .col-verified,
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid.header .col-pro { background: linear-gradient(180deg, rgba(15,111,79,.20), transparent); color: #7fb3bd; }
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid.header .col-vip,
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid.header .col-vip .price { color: #e6c468; }
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid.header .col-vip { background: linear-gradient(180deg, rgba(198,161,91,.20), transparent); }
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .compare-grid > .col-vip { background: linear-gradient(180deg, rgba(198,161,91,.10), transparent); }
/* maint timeline idle segments + cards on dark */
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .maint-rule { background: var(--lm-surface-2); }
html[data-lm-theme="dark"] .lm-pricing .lm-mode-talent .t-row .seg .blk.idle { color: var(--lm-muted-2); }

/* ============================================================
   VIP comparison header — slightly stronger gold so it reads as the
   recommended column (light mode) instead of a washed-out cell.
   ============================================================ */
.lm-pricing .lm-mode-talent .compare-grid.header .col-vip { background: linear-gradient(180deg, var(--lm-gold-soft, #fef7d6) 0%, #fbf2c7 100%); color: var(--lm-gold-deep); }
