/* ============================================================================
   Blocsme — pricing
   Same tokens, same scale. The page answers one question, so the plans state
   how much of the base each one opens before any feature row is read.
   ========================================================================= */

.price-hero{ padding-top:128px; position:relative; }
.price-hero::before{
  /* never wider than the page — a fixed 1100px centred in a phone hangs 360px
     off each side, which widens the layout viewport and takes the nav with it */
  content:""; position:absolute; left:50%; top:-240px; width:min(1100px,100%); height:640px;
  transform:translateX(-50%); pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, rgba(255,122,26,.12), transparent 70%);
  filter:blur(20px);
}
.price-head{ position:relative; text-align:center; }
.price-head h1{ max-width:16ch; margin-inline:auto; }
.price-head .lead{ margin-top:22px; max-width:56ch; margin-inline:auto; }

/* ---------- the four plans ---------- */
.plans{
  position:relative; margin-top:56px;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:stretch;
}
.plan{
  display:flex; flex-direction:column;
  padding:22px; border-radius:18px;
  background:var(--bg-elevated);
}
/* The featured plan is one surface step up rather than a heavier outline. */
.plan.is-featured{ background:var(--bg-raised); }
.plan-flag{ min-height:22px; }
.plan-flag span{
  display:inline-flex; align-items:center; height:22px; padding:0 10px; border-radius:7px;
  background:var(--live-soft); color:var(--live-on-soft);
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.plan-name{ margin-top:12px; font-family:var(--font-display); font-size:20px; font-weight:600; letter-spacing:-.02em; }
.plan-tag{ margin-top:4px; font-size:13px; color:var(--label-2); letter-spacing:-.006em; }
.plan-price{
  margin-top:20px; font-family:var(--font-display);
  font-size:clamp(30px,3vw,40px); font-weight:600; letter-spacing:-.03em; line-height:1;
}
.plan-price small{ font-family:var(--font-text); font-size:15px; font-weight:500; letter-spacing:0; color:var(--label-3); }
.plan-billing{ margin-top:10px; font-size:12px; line-height:1.45; color:var(--label-3); min-height:2.9em; }

/* how much of the base opens is the question the page exists to answer, so it is
   stated in the plan head — and the rule under it says it again as a shape */
.plan-access{ margin-top:18px; padding-top:16px; border-top:1px solid var(--separator); }
.plan-access-label{ display:block; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--label-3); }
.plan-access-figure{ display:block; margin-top:7px; font-family:var(--font-display); font-size:23px; font-weight:600; letter-spacing:-.02em; }
.plan-access-note{ display:block; margin-top:3px; font-size:12px; color:var(--label-2); min-height:2.4em; }
.plan-access-track{ display:block; margin-top:12px; height:4px; border-radius:2px; background:var(--track); overflow:hidden; }
.plan-access-track::after{ content:""; display:block; height:100%; width:var(--open); border-radius:inherit; background:var(--label); }
.plan.is-featured .plan-access-track::after{ background:var(--grad-90); }
/* The access figure alone could not separate the tiers — Pro, Pro+ and
   Enterprise all read "Unlimited" — so each card states the handful of lines
   that actually differ, and what a tier does not carry is said plainly
   instead of being left for the table below. */
.plan-gets{ margin-top:18px; padding-top:16px; border-top:1px solid var(--separator); display:grid; gap:9px; }
.plan-gets li{ display:grid; grid-template-columns:15px minmax(0,1fr); gap:9px; align-items:start;
  font-size:13px; line-height:1.4; letter-spacing:-.006em; color:var(--label-2); }
.plan-gets svg{ margin-top:2px; color:var(--brand); }
.plan-gets .is-off{ color:var(--label-3); }
.plan-no{ display:block; width:15px; margin-top:9px; border-top:1.5px solid currentColor; opacity:.5; }
.plan .btn{ margin-top:auto; width:100%; }
.plan-gets + .btn{ margin-top:20px; }
.plans-foot{ margin-top:22px; text-align:center; font-size:13px; color:var(--label-3); letter-spacing:-.006em; }
@media (max-width:1000px){ .plans{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .plans{ grid-template-columns:minmax(0,1fr); } }

/* ---------- the comparison ----------
   One grid with no interruptions: the group rows carry cells of their own so the
   featured column runs unbroken from the head to the last row, and every row line
   crosses the whole table instead of stopping at each section. */
.ptable-wrap{
  margin-top:40px; overflow-x:auto;
  border:1px solid var(--separator); border-radius:18px; background:var(--bg);
}
.ptable{ width:100%; min-width:820px; border-collapse:collapse; text-align:left; }

.ptable thead th, .ptable thead td{
  padding:18px; border-bottom:1px solid var(--separator); vertical-align:bottom;
}
.ptable thead th{ font-size:14px; font-weight:600; text-align:left; color:var(--label); letter-spacing:-.011em; }

.ptable .grp th{
  padding:22px 18px 8px;
  font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--label-3);
}
.ptable .grp .cell{ padding:22px 18px 8px; }

.ptable tbody th{ padding:14px 18px; font-weight:400; vertical-align:top; }
.ptable tbody tr:not(.grp) th,
.ptable tbody tr:not(.grp) .cell{ border-top:1px solid var(--separator); }
.ptable tbody tr.grp + tr th,
.ptable tbody tr.grp + tr .cell{ border-top:0; }

.ft-name{ display:block; font-size:14px; font-weight:500; color:var(--label); letter-spacing:-.011em; }
.ft-note{ display:block; margin-top:3px; font-size:12px; line-height:1.45; color:var(--label-3); }
.cell{ padding:14px 18px; text-align:left; font-size:13px; color:var(--label-2); vertical-align:middle; letter-spacing:-.006em; }

/* the featured column is one surface, top to bottom */
.cell.is-featured, .ptable thead th.is-featured{ background:var(--bg-elevated); }
.ptable tbody tr:last-child .cell.is-featured{ border-radius:0 0 4px 4px; }

.yes{ color:var(--label); display:inline-flex; }
.none{ display:inline-block; width:11px; height:1px; background:var(--separator-strong); vertical-align:middle; }

/* ---------- questions ----------
   The accordion itself lives in landing.css — both pages use the same one. */

/* ---------- Flex (tools/build-pricing-flex.mts) ---------- */
.plans-foot{ margin-top:22px; }
.plans-foot p{ max-width:92ch; margin-inline:auto; line-height:1.5; }
.plans-foot p + p{ margin-top:6px; }
/* Flex: a token pack, sized by its picker. The other cards keep an empty slot
   of the same height so the access figures stay level across the row. */
.plan-pick{ position:relative; display:block; height:40px; margin-top:14px; }
.plan-pick select{
  appearance:none; -webkit-appearance:none; width:100%; height:40px; margin:0;
  padding:0 36px 0 12px; border-radius:10px; cursor:pointer;
  border:1px solid var(--separator-strong); background:var(--bg); color:var(--label);
  font:inherit; font-size:14px; font-weight:500; letter-spacing:-.011em;
}
.plan-pick select:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }
.plan-pick-go{ position:absolute; inset-inline-end:12px; top:13px; color:var(--label-3); pointer-events:none; }
[dir="rtl"] .plan-pick select{ padding:0 12px 0 36px; }
/* no ceiling: the rule fades out instead of filling */
.plan-access.is-more .plan-access-track::after{ background:linear-gradient(90deg, var(--label), transparent); }
[dir="rtl"] .plan-access.is-more .plan-access-track::after{ background:linear-gradient(270deg, var(--label), transparent); }
.plan-note{ margin-top:10px; min-height:2.9em; font-size:12px; line-height:1.45; color:var(--label-3); letter-spacing:-.006em; }
@media (max-width:560px){
  .plan-pick:empty{ display:none; }
  .plan-note:empty{ display:none; }
}
