/* ==========================================================================
   SeriesChief — Pricing page (/pricing/)
   Page-only styles, prefixed price-. Uses tokens/components from site.css.
   ========================================================================== */

.price-page {
  --tier-text-core: var(--cyan);
  --tier-text-stew: var(--amber);
  --tier-text-bcst: #ff8a5c;   /* same lift the shared .tag--broadcast uses for text */
}

/* --------------------------------------------------------------------------
   Hero + pit board
   -------------------------------------------------------------------------- */
.price-hero { isolation: isolate; }
.price-hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 78% 40%, #000 10%, transparent 70%);
}
.price-hero__copy { max-width: 780px; }
@media (min-width: 961px) { .price-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.price-hero__dot { color: var(--faint); }
.price-hero__title { font-size: clamp(2.8rem, 1.5rem + 3.2vw, 4.4rem); line-height: 0.92; }
.price-hero__title .accent-cyan { color: var(--cyan); }
.price-hero .lede { max-width: 44ch; }
.price-hero__final {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
  padding: 0.6rem 0.9rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgb(255 194 61 / 0.06);
}
.price-hero__actions { --gap: 0.9rem; margin-top: 0.4rem; }

.price-board {
  justify-self: end; width: min(100%, 480px); margin: 0;
}
/* Hero paints without waiting for JS: CSS-only entrance, opacity stays 1 (LCP) */
@media (prefers-reduced-motion: no-preference) {
  .price-hero__copy > * { animation: price-rise 0.7s var(--ease) both; }
  .price-hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .price-hero__copy > :nth-child(3) { animation-delay: 120ms; }
  .price-hero__copy > :nth-child(4) { animation-delay: 180ms; }
  .price-hero__copy > :nth-child(5) { animation-delay: 240ms; }
  .price-board { animation: price-board-in 0.9s var(--ease) 120ms both; }
}
@keyframes price-rise { from { transform: translateY(14px); } }
@keyframes price-board-in { from { transform: translateX(34px); } }

.price-board__frame {
  position: relative; z-index: 1; width: 100%;
  background: #060706;
  border: 2px solid #4a514a;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 1px 0 2px rgb(255 255 255 / 0.05),
    0 40px 80px -30px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(255 90 31 / 0.18);
  overflow: hidden;
}
.price-board__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.65rem 1.1rem;
  background: var(--signal); color: var(--signal-ink);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase;
}
.price-board__status { display: inline-flex; align-items: center; gap: 0.5rem; }
.price-board__status .light { background: var(--signal-ink); }

.price-board__rows { margin: 0; padding: 0.4rem 0; }
.price-board__row {
  --row: var(--fg);
  position: relative;
  display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 1.35rem;
}
.price-board__row + .price-board__row { border-top: 1px solid #1c201c; box-shadow: inset 0 1px 0 #000; }
.price-board__row::before { /* tier notch */
  content: ""; position: absolute; left: 0.55rem; top: 0.85rem; bottom: 0.85rem; width: 4px;
  background: var(--row); transform: skewX(var(--lean));
}
.price-board__row--core { --row: var(--tier-text-core); }
.price-board__row--stew { --row: var(--tier-text-stew); }
.price-board__row--bcst { --row: var(--tier-text-bcst); }
.price-board__row--final { --row: var(--fg-2); }
.price-board__row dt {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--row); white-space: nowrap;
}
.price-board__row dd {
  margin: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 880; font-stretch: 66%;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1; text-transform: uppercase;
  color: var(--fg); letter-spacing: 0.01em;
  /* the plate slots of a real pit board */
  padding: 0.18em 0.3em 0.12em;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 55%),
    #0d0f0d;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #171a17;
  white-space: nowrap;
}
.price-board__row--core dd { color: var(--cyan); }
.price-board__row--final dd { color: var(--fg-2); }


/* --------------------------------------------------------------------------
   Kerb divider
   -------------------------------------------------------------------------- */
.price-kerb { transform: none; opacity: 0.85; }

/* --------------------------------------------------------------------------
   01 Plans
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.3vw, 1.75rem);
  margin: 0; padding: 1.1rem 0 0; list-style: none;
}
.price-plan {
  --tier: var(--tier-core);
  --tier-ink: var(--tier-text-core);
  position: relative;
  display: grid; grid-template-rows: auto auto 1fr auto; align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
@supports (grid-template-rows: subgrid) {
  .price-grid { grid-auto-rows: auto; }
  .price-plan { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.price-plan::before { /* tier bar */
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: var(--tier); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-plan:hover { border-color: color-mix(in srgb, var(--tier) 45%, var(--line)); }
.price-plan--stew { --tier: var(--tier-stewarding); --tier-ink: var(--tier-text-stew); }
.price-plan--bcst { --tier: var(--tier-broadcast); --tier-ink: var(--tier-text-bcst); }
.price-plan--core {
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--line));
  box-shadow: 0 0 0 1px rgb(114 216 209 / 0.12), 0 34px 80px -40px rgb(114 216 209 / 0.45);
}


.price-plan__head, .price-plan__price, .price-plan__body, .price-plan__foot {
  padding-inline: clamp(1.2rem, 0.9rem + 1vw, 1.8rem);
}
.price-plan__head { display: grid; gap: 0.7rem; align-content: start; justify-items: start; padding-block: 2rem 1.4rem; }
.price-plan__name {
  font-family: var(--font-display); font-style: italic; font-weight: 860; font-stretch: 68%;
  font-size: var(--step-3); line-height: 0.9; text-transform: uppercase;
}
.price-plan__for { color: var(--muted); max-width: 34ch; }

.price-plan__price {
  display: grid; gap: 0.35rem; align-content: center;
  padding-block: 1.3rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tier) 12%, transparent), transparent 75%),
    var(--surface-2);
  border-block: 1px solid var(--line);
}
.price-plan__shape {
  font-family: var(--font-display); font-style: italic; font-weight: 880; font-stretch: 66%;
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem); line-height: 0.9; text-transform: uppercase;
  color: var(--tier-ink);
}
.price-plan__basis { font-weight: 600; color: var(--fg); }
.price-plan__final {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 650; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.price-plan__final::before { content: ""; width: 14px; height: 2px; background: currentColor; transform: skewX(var(--lean)); }

.price-plan__body { display: grid; gap: 1rem; align-content: start; padding-block: 1.5rem 1.7rem; }
.price-plan__label {
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.price-plan__list { gap: 0.6rem; }
.price-plan .checklist li::before { border-color: var(--tier-ink); }
.price-plan__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.price-plan__list .tag { flex: none; white-space: nowrap; margin-left: auto; padding: 0.18rem 0.5rem 0.16rem; font-size: 0.6rem; transform: translateY(-0.08em); }

.price-plan__foot {
  display: flex; align-items: center; min-height: 64px;
  border-top: 1px solid var(--line);
}
.price-plan__foot .link-arrow { min-height: 44px; color: var(--tier-ink); }
.price-plan__foot .link-arrow:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   02 Patchwork
   -------------------------------------------------------------------------- */
/* Capability matrix */
.price-matrix {
  margin-top: var(--space-5);
  padding: clamp(1rem, 0.6rem + 1.6vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.price-matrix__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.price-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--step--1); }
.price-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.price-legend .price-mark { width: 1.05rem; height: 1.05rem; }

.price-matrix__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.price-table__cap-col { width: 34%; }
.price-table th, .price-table td { padding: 0.95rem 0.6rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.price-table thead th {
  vertical-align: bottom; padding-block: 0 1rem;
  font-family: var(--font-display); font-weight: 760; font-stretch: 82%; font-size: 0.92rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted);
  border-bottom-color: var(--line-2);
}
.price-th--short { display: none; }
.price-table tbody th {
  text-align: left; padding-left: 0; font-weight: 500; color: var(--fg-2); font-size: var(--step--1); line-height: 1.35;
}
.price-table tbody tr:hover > * { background-color: rgb(242 239 230 / 0.025); }
.price-table tbody tr:last-child > * { border-bottom: 0; }

/* the SeriesChief column */
.price-table .price-table__sc {
  background: color-mix(in srgb, var(--signal) 8%, transparent);
  box-shadow: inset 1px 0 0 rgb(255 90 31 / 0.45), inset -1px 0 0 rgb(255 90 31 / 0.45);
}
.price-table thead .price-table__sc {
  color: var(--fg); padding-top: 1rem; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 1px 0 0 rgb(255 90 31 / 0.45), inset -1px 0 0 rgb(255 90 31 / 0.45), inset 0 3px 0 var(--signal);
}
.price-table thead .price-table__sc img { width: 26px; height: 26px; margin: 0 auto 0.5rem; }
.price-table tbody tr:last-child .price-table__sc {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: inset 1px 0 0 rgb(255 90 31 / 0.45), inset -1px 0 0 rgb(255 90 31 / 0.45), inset 0 -1px 0 rgb(255 90 31 / 0.45);
}

/* marks: drawn in CSS, text equivalents live next to them */
.price-mark { position: relative; display: inline-block; vertical-align: middle; width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: none; }
.price-mark--yes { background: var(--fg-2); }
.price-mark--yes::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 42%; height: 22%;
  border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.price-table__sc .price-mark--yes { background: var(--signal); }
.price-table__sc .price-mark--yes::after { border-color: var(--signal-ink); }
.price-mark--part {
  border: 2px solid var(--muted);
  background: linear-gradient(90deg, var(--muted) 50%, transparent 50%);
}
.price-mark--no { width: 1rem; height: 2px; border-radius: 1px; background: var(--faint); }
.price-legend .price-mark--no { width: 0.9rem; height: 2px; }
.price-mark__txt {
  display: block; margin-top: 0.35rem;
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.price-matrix__note { margin-top: 1.3rem; max-width: 90ch; }
.price-matrix__note { font-size: 0.74rem; line-height: 1.65; letter-spacing: 0.02em; text-transform: none; }

/* --------------------------------------------------------------------------
   04 FAQ
   -------------------------------------------------------------------------- */
.price-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-4); align-items: start; }
.price-faq__head { display: grid; gap: 1.1rem; justify-items: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.price-faq .faq summary { min-height: 44px; }

.price-cta__actions { --gap: 0.8rem; justify-content: flex-start; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .price-board { justify-self: stretch; margin-top: 0.5rem; }
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; max-width: 640px; row-gap: 2.4rem; }
  .price-faq { grid-template-columns: 1fr; }
  .price-faq__head { position: static; }
}
@media (max-width: 700px) {
  .price-th--long { display: none; }
  .price-th--short { display: inline; }
  .price-table__cap-col { width: 36%; }
  .price-table th, .price-table td { padding: 0.8rem 0.2rem; }
  .price-table thead th { font-size: 0.72rem; letter-spacing: 0.01em; padding-inline: 0.15rem; hyphens: auto; }
  .price-table tbody th { font-size: 0.82rem; padding-right: 0.5rem; }
  .price-mark { width: 1.2rem; height: 1.2rem; }
  .price-mark--no { width: 0.85rem; height: 2px; }
  .price-mark__txt { font-size: 0.58rem; letter-spacing: 0.04em; }
  .price-matrix { padding-inline: 0.85rem; }
}
@media (max-width: 640px) {
  .price-board__row { grid-template-columns: 5.4rem minmax(0, 1fr); gap: 0.5rem; padding-inline: 1.15rem 0.8rem; }
  .price-board__row dt { font-size: 0.64rem; letter-spacing: 0.08em; }
  .price-board__row dd { font-size: clamp(1.55rem, 1rem + 3.4vw, 2rem); }
}


/* plan status chips (maturity, from the product fact sheet) */
.price-plan__status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.15rem;
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-2);
}
.price-plan__status--pilot .light { background: transparent; box-shadow: inset 0 0 0 2px var(--tier-text-bcst); }

/* pre-launch small print under the plans */
.price-disclaimer {
  margin-top: var(--space-3); max-width: 80ch;
  font-size: var(--step--1); line-height: 1.55; color: var(--faint);
}

/* round 10: published per-member pricing */
.price-board__note { margin-top: 0.7rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.06em; color: var(--muted); }
.price-plan__inc { margin: 0; font-weight: 650; color: var(--fg); }
/* "What a month costs": the comparison panel's table style, prices in the pit-board face */
.price-cost { margin-top: var(--space-4); }
.price-cost__unit { margin: 0; color: var(--muted); font-size: var(--step--1); }
.price-cost__table thead th:first-child, .price-cost__table tbody th { text-align: left; padding-left: 0; }
.price-cost__table thead .price-cost__basic { color: var(--tier-text-core); }
.price-cost__table thead .price-cost__stew { color: var(--tier-text-stew); }
.price-cost__table thead .price-cost__bcst { color: var(--tier-text-bcst); }
.price-cost__table tbody th { font-family: var(--font-display); font-weight: 720; font-stretch: 85%; font-size: 1.05rem; color: var(--fg); }
.price-cost__table td {
  font-family: var(--font-display); font-style: italic; font-weight: 860; font-stretch: 68%;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums;
}
.price-cost__cap {
  display: inline-block; margin-left: 0.45rem; padding: 0.18rem 0.42rem 0.14rem; vertical-align: 0.15em;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px;
}
@media (max-width: 700px) { .price-cost__cap { display: block; width: fit-content; margin: 0.35rem 0 0; } }
