/* ============================================================
   HiveMind Landing Page — §8 Pricing (HM-442 / LP-10)
   Owns the pricing section only. Colors/type from css/tokens.css.

   The per-connector + usage-credit model drawn as a DIAGRAM, not a
   three-tier SaaS table (the model isn't tiered). One outlined panel
   holds the two additive halves — Connectors (mono chips) "+" Usage
   credits — and a single highlighted anchor row grounds it in a shape
   teams recognize. Stays on the --ink page ground (no fill) so the
   seams with §7 Proof (above) and §9 FAQ (below) stay invisible.

   Accent discipline (DESIGN.md): teal --hive-500 appears ONCE, as the
   trial CTA (interactive). Sage --hive-300 carries the non-interactive
   signals — the additive "+" and the anchor's left rule. No teal text,
   no gradients, no glass, no side-stripes, no Ember (footer owns it).
   Every price is a data-price-slot showing "beta pricing" until LP-17.
   ============================================================ */

/* Single narrative column, centred, left-aligned — one idea per fold
   (matches .proof__inner rhythm). */
.pricing__inner {
  max-width: 62ch;
  margin-inline: auto;
}

/* ---- Intro: base-styled H2 + lead ---- */
.pricing__title {
  /* Inherits base h2 (Inter 800, --fs-h2, display tracking). */
  margin-bottom: var(--space-lg);
}

.pricing__lead {
  max-width: 58ch;
  margin: 0;
  color: var(--offwhite);
  font-size: var(--fs-body);
}

/* ---- Model explainer: one outlined panel, two additive halves ----
   Transparent on --ink (a diagram box, not a filled card); stacks on
   mobile, opens to two side-by-side parts joined by "+" at >=768px. */
.pricing__model {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pricing__part {
  min-width: 0;                       /* let flex children shrink, never overflow */
}

.pricing__part-title {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-sans);      /* NOT a mono eyebrow (banned per DESIGN.md) */
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  color: var(--offwhite);
}

.pricing__part-note {
  margin: 0;
  max-width: 42ch;
  color: var(--muted-dark);           /* >=6:1 on --ink — passes WCAG AA */
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* The additive join between the two halves — a quiet Sage signal
   (accent/fill, never interactive teal). Decorative (aria-hidden). */
.pricing__plus {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1;
  color: var(--hive-300);
}

/* ---- Connector chips: honest mono text, not logos. Each chip pairs a
   connector name with its "beta pricing" slot. Auto-fit grid reflows
   from 1 column (320px) up as space allows — never a fixed row that
   could overflow. ---- */
.pricing__chips {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--space-sm);
}

.pricing__chip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-button);
}

.pricing__chip-name {
  font-family: var(--font-mono);
  font-weight: 500;                   /* JetBrains Mono 500 (vendored weight) */
  font-size: var(--fs-sm);
  line-height: 1.2;
  color: var(--offwhite);
}

/* Every price position shares this quiet mono placeholder look, so
   "beta pricing" reads as the same token everywhere (chips, credits,
   anchor). LP-17 swaps the text; the styling already fits a figure. */
.pricing__price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);       /* 13px — secondary to the name */
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted-dark);
}

/* The credits half has a single standalone slot rather than chips. */
.pricing__price--credits {
  display: block;
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
}

/* ---- Example config anchor: the one highlighted row. Raised --ink-2
   ground + a Sage left rule (same "signal" grammar as .proof__checkability),
   flush-left edge, rounded right — reads as a callout, not a tier card. ---- */
.pricing__anchor {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--ink-2);
  border-left: 3px solid var(--hive-300);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.pricing__anchor-text {
  margin: 0;
  color: var(--offwhite);
  font-size: var(--fs-body);
  line-height: 1.5;
}

.pricing__price--total {
  font-size: var(--fs-sm);
}

/* ---- Risk-reversal + CTA. The regret-aversion clause carries the
   weight (brighter --offwhite against the muted line). ---- */
.pricing__risk {
  margin: var(--space-2xl) 0 var(--space-lg);
  color: var(--muted-dark);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.pricing__risk-strong {
  color: var(--offwhite);
  font-weight: 500;
}

/* The button itself is .btn.btn--primary (teal, main.css) — the single
   teal/interactive use in this fold. This class only holds the slot. */
.pricing__cta {
  margin: 0;
}

/* ---- Desktop: the panel opens into two side-by-side halves joined by
   the centred "+", connectors given the wider share for its chips; the
   anchor lays its price out to the right. ---- */
@media (min-width: 768px) {
  .pricing__model {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }

  .pricing__part--connectors {
    flex: 1.6 1 0;
  }

  .pricing__part--credits {
    flex: 1 1 0;
  }

  .pricing__anchor {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .pricing__price--total {
    flex: none;
    white-space: nowrap;
  }
}
