/* ─────────────────────────────────────────────────────────────────────────
   PipChat! Web — Plans & pricing.

   Each plan carries a --pt tone, and the card's icon tile, price, check marks
   and table column all inherit it, so a plan is the same colour everywhere it
   appears on the page. The current plan is the only card that gets a filled
   header, which is what makes "where am I" readable at a glance.

   Reminder (see app.css): icons are inline <svg> with a viewBox and no
   width/height, so every component here declares its own svg size.
   ───────────────────────────────────────────────────────────────────────── */

.pl-grey   { --pt: var(--subtle);   --pt-soft: var(--bg-2);          --pt-ink: var(--muted); }
.pl-green  { --pt: var(--green);    --pt-soft: var(--green-soft);    --pt-ink: var(--green); }
.pl-orange { --pt: var(--orange);   --pt-soft: var(--orange-soft);   --pt-ink: var(--orange-deep); }
.pl-blue   { --pt: var(--blue);     --pt-soft: var(--blue-soft);     --pt-ink: var(--type-biz-2); }
.pl-violet { --pt: var(--type-gov); --pt-soft: var(--type-gov-soft); --pt-ink: var(--type-gov-2); }
.pl-amber  { --pt: var(--amber);    --pt-soft: var(--amber-soft);    --pt-ink: #9A5F00; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.pl-hero { text-align: center; padding: 44px 0 30px; }
.pl-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px;
  border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 15px;
}
.pl-eyebrow svg { width: 13px; height: 13px; }
.pl-hero .page-title { font-size: 38px; }
.pl-lede { color: var(--muted); font-size: 15px; max-width: 560px; margin: 12px auto 0; line-height: 1.6; }

.pl-cycle {
  display: inline-flex; padding: 4px; margin-top: 26px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--hairline);
}
.pl-cycle-opt {
  padding: 9px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); transition: background .12s, color .12s, box-shadow .12s;
}
.pl-cycle-opt:hover { color: var(--ink); }
.pl-cycle-opt.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.pl-cycle-note { font-size: 12.5px; color: var(--subtle); margin-top: 10px; }

/* ── Signed-out prompt / current plan panel ───────────────────────────── */
.pl-signedout {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 26px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--body);
}
.pl-signedout > svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.pl-signedout > span { flex: 1; min-width: 200px; }

.pl-current {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 26px; padding: 20px 22px;
  background: linear-gradient(120deg, var(--pt-soft), var(--paper) 70%);
  border: 1px solid color-mix(in srgb, var(--pt) 26%, var(--hairline));
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.pl-cur-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pl-cur-ic {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--paper);
  color: var(--pt-ink); box-shadow: var(--shadow-sm);
}
.pl-cur-ic svg { width: 24px; height: 24px; }
.pl-cur-tx { min-width: 0; }
.pl-cur-kicker {
  font-size: 10.5px; font-weight: 800; color: var(--pt-ink);
  text-transform: uppercase; letter-spacing: .08em;
}
.pl-cur-name { font-size: 23px; font-weight: 900; color: var(--ink); letter-spacing: -.025em; line-height: 1.2; }
.pl-cur-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.pl-cur-sponsor { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--body); }
.pl-cur-acts { display: flex; gap: 9px; flex-wrap: wrap; }

/* ── Plan cards ───────────────────────────────────────────────────────── */
.pl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px; align-items: stretch;
}
.pl-grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.pl-card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.pl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pl-card.is-current {
  border-color: var(--pt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt) 16%, transparent), var(--shadow-md);
}
/* A plan the signed-in account cannot buy stays fully readable — the point is
   to show what exists — but stops competing with the ones it can. */
.pl-card.is-locked { background: var(--bg-2); box-shadow: none; }
.pl-card.is-locked:hover { transform: none; box-shadow: none; }

.pl-flag {
  position: absolute; top: -10px; left: 22px;
  padding: 4px 11px; border-radius: 999px; background: var(--pt); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}

.pl-card-head { display: flex; align-items: flex-start; gap: 12px; }
.pl-card-ic {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--pt-soft); color: var(--pt-ink);
}
.pl-card-ic svg { width: 19px; height: 19px; }
.pl-card-name { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.pl-card-tier { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

.pl-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin: 18px 0 0; }
.pl-amount { font-size: 31px; font-weight: 900; color: var(--ink); letter-spacing: -.035em; line-height: 1; }
.pl-per { font-size: 13px; color: var(--muted); font-weight: 600; }
.pl-save {
  padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.pl-msg { font-size: 12.5px; color: var(--pt-ink); font-weight: 600; margin-top: 8px; }

.pl-feats { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pl-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--body); line-height: 1.45; }
.pl-feats svg { width: 14px; height: 14px; color: var(--pt-ink); flex-shrink: 0; margin-top: 3px; }

.pl-cta { margin-top: 20px; }
/* A non-interactive label wearing button clothes: same box, no affordance. */
.pl-btn-static { cursor: default; opacity: .75; }
.pl-audience { font-size: 11.5px; color: var(--subtle); text-align: center; margin-top: 9px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.pl-section { margin-top: 54px; }
.pl-section-head { margin-bottom: 20px; }
.pl-section-head h2 { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -.025em; }
.pl-section-head p { font-size: 14px; color: var(--muted); margin-top: 5px; }

/* ── Comparison table ─────────────────────────────────────────────────── */
.pl-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.pl-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13px; }
.pl-table thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 14px 16px; text-align: center; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; color: var(--pt-ink, var(--ink));
  background: var(--bg-2); border-bottom: 1px solid var(--hairline);
}
.pl-table thead th:first-child {
  text-align: left; color: var(--muted); text-transform: uppercase;
  font-size: 11px; letter-spacing: .07em;
}
.pl-table thead th.is-current { background: var(--pt-soft); }
.pl-table tbody th {
  padding: 12px 16px; text-align: left; font-weight: 600; color: var(--body);
  white-space: nowrap;
}
.pl-table tbody td {
  padding: 12px 16px; text-align: center; color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pl-table tbody td.is-current { background: color-mix(in srgb, var(--orange) 5%, transparent); }
.pl-table tbody tr + tr th, .pl-table tbody tr + tr td { border-top: 1px solid var(--divider); }
.pl-table tbody tr:hover th, .pl-table tbody tr:hover td { background: var(--bg-2); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.pl-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pl-faq-item {
  padding: 20px; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.pl-faq-item h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -.015em;
}
.pl-faq-item h3 svg { width: 16px; height: 16px; color: var(--orange-deep); flex-shrink: 0; }
.pl-faq-item p { font-size: 13.5px; color: var(--body); line-height: 1.6; margin-top: 9px; }
.pl-faq-item a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }

.pl-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin: 44px 0 60px; }
.pl-foot a { color: var(--orange-deep); font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .pl-hero { padding: 30px 0 22px; }
  .pl-hero .page-title { font-size: 29px; }
  .pl-current { flex-direction: column; align-items: flex-start; }
  .pl-cur-acts { width: 100%; }
  .pl-cur-acts .btn { flex: 1; }
}

@media (max-width: 600px) {
  .pl-hero .page-title { font-size: 25px; }
  .pl-lede { font-size: 14px; }
  .pl-grid, .pl-grid-3 { grid-template-columns: 1fr; }
  .pl-cycle-opt { padding: 9px 18px; }
  .pl-section { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-card:hover { transform: none; }
}
