/*
 * Zenrows website — shared marketing components.
 *
 * Sits next to chrome.css.  Imported by every page after the
 * DS (fonts.css + theme.css) and chrome.css.  Pages may NOT
 * redeclare these selectors; if a rule needs to change per
 * page, change it here, then verify every page still reads
 * right.
 *
 * Each component is self-documented at the top of its block:
 *  - What it is
 *  - Default markup shape
 *  - Available modifiers (e.g. --on-teal)
 *  - Which pages currently use it (for traceability)
 *
 * Assumes the importing stylesheet has already pulled in the
 * DS via `@import "../_ds/fonts.css"` + `@import "../_ds/theme.css"`,
 * and `@import "../_shared/chrome.css"`.
 */

/* ──────────────────────────────────────────────────────────
   .link-cta — Inline hyperlink CTA.

   The "View score on GitHub →" / "Open →" / "Read the docs →"
   pattern: monospaced label, single hairline underline
   beneath, recolors to brand purple-7 on hover.  Used inline
   in editorial blocks where a full marketing button (.btn-
   marketing) would be too heavy.

   Markup:
       <a class="link-cta" href="…">Open <span aria-hidden="true">→</span></a>
   or just:
       <a class="link-cta" href="…">View on GitHub →</a>

   Modifiers (apply when the surrounding section is on a
   saturated brand band):
       .link-cta--on-teal     → invert colors for #7ADAE6 bg
       .link-cta--on-purple   → invert colors for purple bg

   In use:
       /agents/workflows  Act 2 (--on-teal)
─────────────────────────────────────────────────────────── */

.link-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: border-color 200ms ease, color 200ms ease;
}

.link-cta:hover,
.link-cta:focus-visible {
  color: #7C4FE8;
  border-bottom-color: #7C4FE8;
  outline: none;
}

/* When .link-cta sits on a <button> (JS-trigger actions like Copy), reset the
   native button chrome — UA background / side borders / appearance — so it
   reads as the same underlined mono link as on an <a>. */
button.link-cta {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0 0 6px;
  cursor: pointer;
}

/* ── On-teal variant — inverts to brand warm dark on #7ADAE6.
   Used inside sections that paint the teal band (clip-path
   bloom curtain + body.is-on-teal topbar adapt). */
.link-cta--on-teal {
  color: #1D1612;
  border-bottom-color: color-mix(in srgb, #1D1612 30%, transparent);
}

.link-cta--on-teal:hover,
.link-cta--on-teal:focus-visible {
  color: #7C4FE8;
  border-bottom-color: #7C4FE8;
}

/* ── On-purple variant — saturated purple band (#7C4FE8 / -8).
   Text inverts to white; hover recolors to teal-5 so the link
   stays legible against the purple ground. */
.link-cta--on-purple {
  color: #FFFFFF;
  border-bottom-color: color-mix(in srgb, #FFFFFF 32%, transparent);
}

.link-cta--on-purple:hover,
.link-cta--on-purple:focus-visible {
  color: #7ADAE6;
  border-bottom-color: #7ADAE6;
}

/* Center modifier — .link-cta defaults to align-self: flex-start, which
   left-aligns it inside a centered closer column. Use this on links that
   sit under a centered cta-stack (e.g. the "Talk to sales" closer link). */
.link-cta--center { align-self: center; }

/* ──────────────────────────────────────────────────────────
   .pill — Rounded host / segment / destination chip.

   Sunken pill (border-radius 999px) carrying a label and an
   optional favicon icon.  The signature interaction is the
   favicon-scale-in: by default the icon is hidden (width 0,
   opacity 0, scale 0.4) and on hover / focus / active it
   reveals from the left with overshoot easing.  Canonical
   home Act 6 pattern.

   Markup:
       <button class="pill" type="button">
         <img class="pill-icon" src="…" alt="" />
         <span class="pill-label">Cursor</span>
         <span class="pill-status">Auto</span>  <!-- optional -->
       </button>
   Container (optional):
       <div class="pill-rail">…</div>

   Modifiers + states:
       .pill.is-active          → selected / pinned state
       .pill--active            → same, when not using JS state
       .pill--icon-always       → icon always visible (for non-
                                  interactive lists like the home
                                  Act 5 destinations row)

   Theming knobs (set as CSS custom properties on the page or
   container):
       --pill-accent     (default: #7C4FE8 / zen-purple-7)
       --pill-icon-size  (default: 16px)

   In use:
       /agents/plugins (interactive host picker)
       — followups: home Act 5 + Act 6, /agents/skills if needed
─────────────────────────────────────────────────────────── */

.pill-rail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  --pill-accent: #7C4FE8;
  --pill-icon-size: 16px;
  appearance: none;
  display: inline-flex;
  align-items: center;
  /* No flex gap on purpose — gap would reserve space between
     children even when .pill-icon has width:0 in idle, which
     pushes the label off-center and breaks the pill's
     symmetric horizontal padding.  Spacing comes from
     .pill-icon's own margin-right when the icon is visible. */
  gap: 0;
  padding: 10px 16px;
  background: var(--sunken-base, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pill:hover,
.pill:focus-visible {
  border-color: color-mix(in srgb, var(--pill-accent) 45%, var(--border-subtle));
  background: color-mix(in srgb, var(--pill-accent) 8%, var(--sunken-base, rgba(255, 255, 255, 0.04)));
  transform: translateY(-1px);
}

.pill.is-active,
.pill--active {
  background: color-mix(in srgb, var(--pill-accent) 16%, transparent);
  border-color: var(--pill-accent);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --on-dark — pill on a saturated / dark band. The default chrome uses
   theme tokens (--sunken-base etc.) that flip to dark-on-band in light mode
   (unreadable on a purple/dark band); this pins it to white-alpha in both
   themes. Set --pill-accent on the container to tune the hover accent. */
.pill--on-dark {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}
.pill--on-dark:hover,
.pill--on-dark:focus-visible {
  background: color-mix(in srgb, var(--pill-accent) 18%, rgba(255, 255, 255, 0.10));
  border-color: color-mix(in srgb, var(--pill-accent) 45%, rgba(255, 255, 255, 0.24));
}

/* Icon — hidden by default, scales in from the left on
   hover / focus / active.  This is the chip's signature
   interaction (favicon-scale-in). */
.pill-icon {
  display: block;
  width: 0;
  height: var(--pill-icon-size, 16px);
  margin-right: 0;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  flex-shrink: 0;
  transition:
    width 240ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-right 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill:hover .pill-icon,
.pill:focus-visible .pill-icon,
.pill.is-active .pill-icon,
.pill--active .pill-icon {
  width: var(--pill-icon-size, 16px);
  margin-right: 6px;
  opacity: 1;
  transform: scale(1);
}

/* For pills that should show the icon at rest (non-interactive
   lists like the home Act 5 destinations row). */
.pill--icon-always .pill-icon {
  width: var(--pill-icon-size, 16px);
  margin-right: 8px;
  opacity: 1;
  transform: scale(1);
}

.pill-label {
  font-weight: 600;
}

.pill-status {
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, #FFFFFF 6%, transparent);
  color: var(--text-tertiary);
  /* Replaces the flex gap removed from .pill — spaces the
     status chip from the label without affecting the
     icon-hidden idle case. */
  margin-left: 10px;
}

.pill.is-active .pill-status,
.pill--active .pill-status {
  background: color-mix(in srgb, #FFFFFF 12%, transparent);
}

/* BU light overrides for the chip atom.
   The defaults bake rgba(255,255,255,X) chromes and #FFFFFF active-
   state text. In BU light:
   - Default chip bg/border: white tint becomes invisible against the
     light page bg. Flip to warm-dark tint.
   - .pill.is-active: white text on a light-lavender tint reads as
     low contrast. Switch to brand-purple text (and saturate the
     active fill to a slightly stronger lavender for definition).
   - .pill-status default bg: same flip.
   - .pill.is-active .pill-status: warm-dark tint so the tag stays
     visible on the lavender active bg. */
html:not(.dark) .pill {
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
}
html:not(.dark) .pill:hover,
html:not(.dark) .pill:focus-visible {
  background: color-mix(in srgb, var(--pill-accent) 10%, transparent);
}
html:not(.dark) .pill.is-active,
html:not(.dark) .pill--active {
  background: color-mix(in srgb, var(--pill-accent) 14%, transparent);
  color: var(--pill-accent);
}
html:not(.dark) .pill-status {
  background: color-mix(in srgb, var(--text-primary) 6%, transparent);
}
html:not(.dark) .pill.is-active .pill-status,
html:not(.dark) .pill--active .pill-status {
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
}

/* ──────────────────────────────────────────────────────────
   .kicker — Editorial eyebrow / section label.

   Small uppercase mono caps that sit above an H1 / H2 to name
   the section ("WORKFLOWS", "GALLERY", "CLOSER", "ACT 03").
   The most-duplicated marketing pattern: 13 pages were
   redeclaring this independently before consolidation.

   Markup:
       <p class="kicker">Workflows</p>

   Aliased to `.act-kicker` so existing HTML keeps working
   without per-page churn; new HTML should prefer `.kicker`.

   Modifier:
       .kicker--base   → use the base sans-serif (Manrope)
                         instead of mono; for spoke pages
                         where the mono treatment clashes with
                         their hero composition (/api,
                         /browser-sessions).
─────────────────────────────────────────────────────────── */

.kicker,
.act-kicker {
  margin: 0 0 18px;
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.kicker--base {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--text-tiny, 11px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Home variant — softer, lighter colour, base sans with wide
   tracking, bigger bottom gap to breathe in editorial heros.
   In use: /home and /products (overview). */
.kicker--home {
  margin: 0 0 var(--space-600, 24px);
  font-family: var(--font-base);
  font-size: var(--text-tiny, 11px);
  font-weight: var(--font-weight-medium, 500);
  letter-spacing: var(--tracking-wide, 0.16em);
  text-transform: uppercase;
  color: var(--text-quaternary, var(--text-tertiary));
}

/* Retired: the uppercase eyebrow above headings is no longer used on the
   marketing pages. Covers BOTH naming conventions site-wide: `*-kicker`
   and `*-eyebrow` (atlas-eyebrow, shapes-eyebrow, poster-eyebrow, etc.).
   The blog (body.bp-body) keeps it. */
body:not(.bp-body) [class*="kicker"],
body:not(.bp-body) [class*="eyebrow"] {
  display: none;
}

/* Retired: the gradient-mesh backdrop on closers (the drifting bubble blobs).
   Hidden site-wide; closers keep their solid surface, footers stay dark. */
[class*="end-mesh"],
[class*="end-bubble"] {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────
   .cta-stack — Canonical primary-CTA composition.

   The marketing pill (.btn-marketing) plus its proof tagline
   ("10,000 credits/month for free, always.").  Per the
   cta-stack rule:
     • The button label is always "Start building free".
     • The tagline orientation depends on the surrounding
       composition.

   Markup:
       <div class="cta-stack [cta-stack--inline]">
         <a class="btn-marketing" href="…">Start building free</a>
         <p class="cta-stack-tag">10,000 credits/month for free, always.</p>
       </div>

   Variants:
       (default)            → column stack, button atop tagline.
                              Use in centered/symmetric heros and
                              centered closers (master /agents Act
                              5, spoke /api Act 1).
       .cta-stack--inline   → row, button left + tagline right.
                              Use in editorial column closers and
                              asymmetric heros (/home hero,
                              /agents/workflows Act 3, sub-page
                              closers).

   Mobile collapse: at <600px the inline variant collapses to
   column / align-items: stretch so the CTA fills the column.

   Followups (separate PRs): migrate the per-page wrappers
   (.ag-hero-cta, .ag-end-cta, .cli-hero-cta, .mc-closer-cta,
   .mo-closer-cta, .bt-closer-cta, .sb-hero-cta, .ag-plugins-
   end-cta, .ag-skills-end-cta, /agents/workflows
   .ag-closer-cta-stack) to use this shared component.  Each
   migration removes ~12 lines of duplicated layout.

   In use:
       /agents/workflows Act 3 (--inline)
─────────────────────────────────────────────────────────── */

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-stack--inline {
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
}

/* Centered variant — for symmetric compositions where the
   stack reads as a single centered block (e.g. centered closer
   acts like /products/monitor).  Composes with the default or
   inline variant. */
.cta-stack--center {
  align-items: center;
  text-align: center;
}
/* children default to align-self:flex-start (e.g. .link-cta); the centered
   variant must win so a secondary link sits centered under the button. */
.cta-stack--center > * {
  align-self: center;
}

@media (max-width: 600px) {
  .cta-stack--inline {
    flex-direction: column;
    /* Hug contents (button sizes to its label, never full-bleed) and stay
       LEFT — the common case is a left-aligned hero whose CTA must line up
       with the H1/body above it. Centred closers opt back in below. */
    align-items: flex-start;
    gap: 12px;
  }
  /* Centred stacks keep centering when the row collapses to a column.
     These page stacks declare justify-content:center for their desktop row
     (centred closers + the two centred heroes ka-/px-); preserve that intent
     via align-items now that the main axis is vertical. */
  .cta-stack--center,
  .aa-end-cta, .at-end-cta, .cr-end-cta, .ec-end-cta, .ex-closer-cta,
  .fc-end-cta, .fi-end-cta, .ka-hero-cta, .lg-end-cta, .mr-end-cta,
  .nm-end-cta, .px-hero-cta, .sm-end-cta, .srp-end-cta {
    align-items: center;
  }
}

.cta-stack-tag {
  margin: 0;
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--text-tertiary);
}

/* ──────────────────────────────────────────────────────────
   .seg-control — Segmented control DS atom.

   One inline group of 2-4 mutually-exclusive options where
   one is "active" and clicking another swaps state.  Three
   visual flavors (same structure + a11y semantics, cosmetic
   differences only):

       (default)                → pill container, active = white
                                  fill on dark / dark text
       .seg-control--brand      → pill container, active = brand
                                  purple fill / white text
       .seg-control--underline  → no container, active = underline
                                  reveal (::after scaleX from left)

   Sizes (apply to the container):
       (default)                → 32px tall, 12px label
       .seg-control--md         → 40px tall, 13px label

   State markers — atom listens to all three for compatibility,
   but pick ONE per usage and use it consistently:
       [aria-selected="true"]   for role="tab"
       [aria-checked="true"]    for role="radio"
       .is-active               JS-driven, no a11y semantics

   Markup (radio group, default pill flavor):
       <div class="seg-control" role="radiogroup" aria-label="Billing">
         <button class="seg-control-opt is-active" type="button"
                 role="radio" aria-checked="true">Monthly</button>
         <button class="seg-control-opt" type="button"
                 role="radio" aria-checked="false">Annual</button>
       </div>

   In use:
       /pricing  Act 1  — underline flavor (tabs)
                          + default flavor (billing toggle)
─────────────────────────────────────────────────────────── */

.seg-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
}

.seg-control-opt {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.seg-control-opt:hover { color: var(--text-secondary); }

.seg-control-opt[aria-selected="true"],
.seg-control-opt[aria-checked="true"],
.seg-control-opt.is-active {
  background: #FFFFFF;
  color: #1D1612;
}

.seg-control-opt:focus-visible {
  outline: 2px solid #7ADAE6;
  outline-offset: 2px;
}

/* --on-teal — seg-control on a solid teal band: dark ink idle, warm-dark on
   hover, white when active (pair with --brand for the active fill). */
.seg-control--on-teal .seg-control-opt { color: rgba(29, 22, 18, 0.6); }
.seg-control--on-teal .seg-control-opt:hover { color: #1D1612; }
.seg-control--on-teal .seg-control-opt.is-active,
.seg-control--on-teal .seg-control-opt[aria-checked="true"],
.seg-control--on-teal .seg-control-opt[aria-selected="true"] { color: #FFFFFF; }
/* --mono — mono option labels (numeric / code selectors). */
.seg-control--mono .seg-control-opt { font-family: var(--font-code, "IBM Plex Mono", monospace); }

.seg-control-opt[disabled],
.seg-control-opt[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Brand variant — purple fill on active. */
.seg-control--brand .seg-control-opt[aria-selected="true"],
.seg-control--brand .seg-control-opt[aria-checked="true"],
.seg-control--brand .seg-control-opt.is-active {
  background: #7C4FE8;
  color: #FFFFFF;
}

/* Underline variant — no container chrome, active = underline. */
.seg-control--underline {
  background: none;
  border: none;
  padding: 0;
  gap: 24px;
}

.seg-control--underline .seg-control-opt {
  padding: 8px 2px;
  border-radius: 0;
  position: relative;
  font-size: 13px;
  letter-spacing: -0.005em;
}

.seg-control--underline .seg-control-opt::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1.5px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seg-control--underline .seg-control-opt[aria-selected="true"],
.seg-control--underline .seg-control-opt[aria-checked="true"],
.seg-control--underline .seg-control-opt.is-active {
  background: none;
  color: var(--text-primary);
}

.seg-control--underline .seg-control-opt[aria-selected="true"]::after,
.seg-control--underline .seg-control-opt[aria-checked="true"]::after,
.seg-control--underline .seg-control-opt.is-active::after {
  transform: scaleX(1);
}

/* Size — md (bigger touch target, used when this is the
   page's primary control row). */
.seg-control--md .seg-control-opt {
  padding: 8px 18px;
  font-size: 13px;
}

/* ── BU light overrides for the segmented control ──
   The defaults hardcode rgba(255,255,255,X) chromes (container
   bg, active pill fill) that are theme-invariant.  In BU light:
   - Default container bg `rgba(255,255,255,0.04)` is invisible on
     light bg.
   - Default active pill `background: #FFFFFF` is invisible on
     light bg.
   The flip uses :not(.seg-control--underline) so the underline
   variant (tabs) stays container-free with only its underline
   mechanic.  Brand variant active fill (#7C4FE8 / white) is
   theme-invariant saturated brand and stays untouched. */
html:not(.dark) .seg-control:not(.seg-control--underline) {
  background: rgba(29, 22, 18, 0.04);
}
html:not(.dark) .seg-control:not(.seg-control--underline) .seg-control-opt[aria-selected="true"],
html:not(.dark) .seg-control:not(.seg-control--underline) .seg-control-opt[aria-checked="true"],
html:not(.dark) .seg-control:not(.seg-control--underline) .seg-control-opt.is-active {
  background: #1D1612;
  color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════
   Global heading rules (apply across the site).

   Rawest is Medium-only — no italic file, no bold file.  When
   <em> requests italic, the browser does synthetic slant on top
   of any faux-bold, producing heavy ornamental rendering.  Force
   <em> inside H1/H2/H3 to render in normal style so emphasis is
   carried by type-shock (scale, line-break, kicker), not italic
   shape.  Pablo's directive, see website/CLAUDE.md.

   Also lower H1/H2 default weight from 600 to 500 — Rawest's
   intrinsic weight — so the browser doesn't synthesize a heavier
   stroke on top of an already-strong display face. */
h1 em, h2 em, h3 em { font-style: normal; }
h1, h2, h3 { font-weight: 500; }

/* ── .sol-block ─────────────────────────────────────────────────────────
   Shared panel treatment for the solutions-spoke widgets, matched to the
   /products/fetch code-card chrome: page-coloured ground, soft elevation,
   and a purple→cyan accent rule across the top edge. Consistency across the
   signature blocks. Apply to a panel that already has position/overflow. */
.sol-block { position: relative; overflow: hidden; box-shadow: 0 24px 60px -26px rgba(0,0,0,0.5); }
.sol-block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, #7C4FE8 0%, var(--zen-cyan-6, #7ADAE6) 38%, transparent 82%);
  opacity: 0; transition: opacity 240ms cubic-bezier(0.22,1,0.36,1);
}
.sol-block:hover::before { opacity: 1; }

/* ── .bp-search — shared search field (blog index + directories) ────────
   One definition; the blog and the partner directory both use it. */
.bp-search { display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 0 18px; height: 52px; border: 1px solid var(--border-subtle); border-radius: 999px; background: color-mix(in srgb, var(--card) 60%, transparent); transition: border-color .2s; }
.bp-search:focus-within { border-color: #7C4FE8; }
.bp-search-icon { width: 19px; height: 19px; flex: none; color: var(--text-tertiary); }
.bp-search-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text-primary); font-family: var(--font-base); font-size: 16px; }
.bp-search-input::placeholder { color: var(--text-tertiary); }
.bp-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── .tag — the single marketing label atom ────────────────────────────
   Small uppercase mono label for metadata / category / kind markers.
   ONE definition, reused site-wide. Never invent a per-page tag class
   (tm-tag, gg-badge, sot-tag, …) — use .tag, add .tag--boxed for the
   bordered pill, and vary only via real modifiers, never page overrides. */
.tag { display: inline-block; font-family: var(--font-code); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-quaternary); }
.tag--boxed { border: 1px solid var(--border-subtle); border-radius: 4px; padding: 2px 6px; }

/* ── .chip — the single filter / toggle chip ───────────────────────────
   Rounded selectable pill for filter rows + mode toggles. ONE definition;
   never invent a per-page chip (cr-chip, wtm-chip, …). Active = .is-active.
   Modifiers: --solid (filled-teal active), --mono (code font, compact). */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-base); font-size: clamp(13px, 1.05vw, 15px); color: var(--text-secondary); background: transparent; border: 1px solid var(--border-subtle); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.chip:hover { color: var(--text-primary); border-color: var(--border); }
.chip.is-active { color: #7ADAE6; border-color: var(--border); }
.chip--solid.is-active { color: #1D1612; background: #7ADAE6; border-color: transparent; }
.chip--mono { font-family: var(--font-code); font-size: 12.5px; padding: 7px 14px; }

/* ── .link-card — the single cross-link / directory card ───────────────
   Hairline card linking to another page: title (.link-card-t) + description
   (.link-card-d) + a .link-cta pinned to the bottom. Reused across solutions
   spokes, hubs and directories. ONE class; never a per-page *-use-card /
   index-card. Pair with .sol-block for the elevated accented panel. */
.link-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border: 1px solid var(--border-subtle); border-radius: 18px; padding: clamp(24px, 2.6vw, 34px); text-decoration: none; transition: border-color 220ms ease, transform 220ms ease; }
.link-card:hover { border-color: var(--border); transform: translateY(-3px); }
.link-card-t { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 25px); color: var(--text-primary); }
.link-card-d { font-family: var(--font-base); font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.link-card .link-cta { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .link-card { transition: none; } .link-card:hover { transform: none; } }

/* ── .panel — the single widget container ──────────────────────────────
   Hairline border on transparent ground (the border-before-fill rule),
   rounded, clips its content. The base surface for terminals, code panels,
   data widgets, tables. ONE class; add it alongside a page-specific hook
   class for the widget's own internals. Never a per-page bordered box. */
.panel { border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; }

/* ── .cover-item — the single band coverage list item ──────────────────
   Top-ruled stacked item (label + value) used in the "what we cover" lists
   on saturated bands. White rule for dark/purple bands; --on-light for teal.
   ONE class; never a per-page *-cover-item. */
.cover-item { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,0.24); padding-top: 16px; }
.cover-item--on-light { border-top-color: rgba(29,22,18,0.22); }

/* ── .eyebrow — the single section eyebrow label ───────────────────────
   Mono caps label above a heading. ONE class; never a per-page *-eyebrow.
   On a saturated band add --on-teal (dark ink) or --on-dark (light ink). */
.eyebrow { font-family: var(--font-code); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); margin: 0; }
.eyebrow--on-teal { color: #0E5B63; }
.eyebrow--on-dark { color: rgba(255,255,255,0.72); }

/* ── Marketing display type scale ──────────────────────────────────────
   The canonical responsive heading steps. Pages pick a step per act (the
   type-shock variation is WHICH step, not a new hand-tuned clamp). Never
   hardcode a heading font-size clamp; use these. Body + spacing scales
   follow in their own pass. */
:root {
  /* Clear descending hierarchy — the hero must always be the biggest
     heading on the page. Calmer than the old ~95px@1440 but still well
     above H2. At 1440: 81 > 72 > 58 > 43 > 30; at 1920: 96 > 84 > 60. */
  --mkt-hero-xl: clamp(46px, 5.6vw, 96px);   /* landmark hero */
  --mkt-hero:    clamp(42px, 5vw, 84px);     /* standard hero */
  --mkt-h2:      clamp(32px, 4vw, 60px);     /* section heading */
  --mkt-h3:      clamp(26px, 3vw, 44px);     /* sub-section */
  --mkt-h4:      clamp(20px, 2.2vw, 30px);   /* small heading */
  /* Body scale — the running-copy steps. Same rule: pick a step, never a
     new hand-tuned clamp. */
  --mkt-lead:    clamp(16px, 1.4vw, 20px);   /* lead paragraph / hero sub */
  --mkt-body:    clamp(15px, 1.15vw, 18px);  /* standard body */
  --mkt-body-sm: clamp(14px, 1vw, 16px);     /* small body / caption */
  --mkt-body-xs: clamp(12px, 1vw, 14px);     /* tiny / mono label */
}

