/* ============================================================
   PLASHKI v1 · "Surgical Slab" — locked 2026-05-01
   Editorial-Surgical micro-component canon for tools.voiddo.com,
   extensions.voiddo.com, and any voiddo product surface needing
   small confident pcards / store-btns / version-pills / price tiles.
   ------------------------------------------------------------
   Replaces the per-page inline gradient-top-bar rounded-card
   pattern with: square corners (0 radius), 1px hairline borders,
   single-channel accent (cyan default, --accent override per page),
   JetBrains Mono caps for all technical labels at 0.70rem 0.20em
   letter-spacing (one ratio everywhere — fixes mixed
   0.10/0.12/0.14/0.18 inconsistencies of the v0 inline styles).
   Featured/highlighted state = full-height 2px left bar, NOT a
   rainbow top bar.
   ------------------------------------------------------------
   Owner directive 2026-05-01: page design stays as-is, only
   plashki get this redesign. Read brand-spec at
   /tmp/plashki-design/brand-spec.md for design reasoning.
   ============================================================ */

/* --plashki-accent inherits from the closest ancestor that sets --accent (via .acc-X classes
   defined in portal.css), or falls back to --cyan / hardcoded #00f6d0. CSS custom properties
   resolve at *use site*, not at definition site, so this works even when --accent is set on
   a deep child like .pcard.acc-interviewprep. */
:root,
.acc-cyan,
.tool-hero,
.tool-block { --plashki-accent: var(--cyan, #00f6d0); }

/* When --accent is set by a parent .acc-X class (e.g. .acc-interviewprep), inherit it. */
.pcard,
.store-btn,
.install-pcard,
.use-card,
.tool-install-line,
.version-pill,
.save-badge,
.price-tile,
.license-label,
.muted-mono,
.back-link,
.acc-interviewprep,
.acc-jobmeta,
.acc-jsonyo,
.acc-pricepulse,
.acc-profilebrief,
.acc-randumb,
.acc-tabsnap,
.acc-tokcount,
[class*="acc-"] { --plashki-accent: var(--accent, var(--cyan, #00f6d0)); }

/* ────────────────────────────────────────────────────────────
   1 · INSTALL PCARD (used in tools landings — install row)
   Replaces: .install-pcard with rounded 14px + 2px gradient top bar
   ──────────────────────────────────────────────────────────── */

.install-pcard {
  background: rgba(13, 21, 38, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 1.4rem 1.5rem;
  position: relative;
  transition: border-color 0.18s ease;
  overflow: visible; /* override any v0 inline overflow:hidden */
}
.install-pcard::before { content: none !important; }
.install-pcard:hover {
  border-color: var(--plashki-accent);
  border-color: color-mix(in srgb, var(--plashki-accent) 35%, transparent);
}
.install-pcard.featured,
.install-pcard:first-child {
  border-color: color-mix(in srgb, var(--plashki-accent) 40%, transparent);
  background: color-mix(in srgb, var(--plashki-accent) 4%, rgba(13, 21, 38, 0.40));
}
.install-pcard.featured::before,
.install-pcard:first-child::before {
  content: "" !important;
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 2px;
  background: var(--plashki-accent);
}
.install-pcard h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-3, #6b7388);
  margin: 0 0 1rem;
}
.install-pcard:first-child h3,
.install-pcard.featured h3 { color: var(--plashki-accent); }
.install-pcard pre {
  background: #060912;
  border-radius: 0;
  padding: 0.8rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-1, #d4dbed);
  margin: 0 0 0.85rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.install-pcard pre .pc-prompt { color: var(--plashki-accent); user-select: none; }
.install-pcard p {
  font-size: 0.85rem;
  color: var(--text-2, #9aa3b9);
  margin: 0;
  line-height: 1.55;
}
.install-pcard a.pc-link {
  color: var(--plashki-accent);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  border-bottom: 1px dotted color-mix(in srgb, var(--plashki-accent) 40%, transparent);
  padding-bottom: 1px;
}
.install-pcard a.pc-link:hover { border-bottom-style: solid; }

/* ────────────────────────────────────────────────────────────
   2 · USE CARD (used in tools landings — what-it-does grid)
   Replaces: .use-card with rounded 14px + soft border
   ──────────────────────────────────────────────────────────── */

.use-card {
  background: rgba(13, 21, 38, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 1.3rem 1.4rem;
  transition: border-color 0.18s ease;
  position: relative;
}
.use-card:hover {
  border-color: color-mix(in srgb, var(--plashki-accent) 35%, transparent);
  transform: none;
}
.use-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-0, #f5f7ff);
  margin: 0 0 0.7rem;
  letter-spacing: -0.005em;
}
.use-card .uc-code {
  background: #060912;
  border-left: 2px solid var(--plashki-accent);
  border-radius: 0;
  padding: 0.55rem 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.80rem;
  color: var(--text-1, #d4dbed);
  margin: 0.6rem 0 0.7rem;
  overflow-x: auto;
  white-space: nowrap;
}
.use-card .uc-out {
  color: var(--text-3, #6b7388);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

/* ────────────────────────────────────────────────────────────
   3 · TOOL-INSTALL-LINE (npm copy bar at top of hero)
   Replaces: .tool-install-line with rounded 10px + soft border
   ──────────────────────────────────────────────────────────── */

.tool-install-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--plashki-accent);
  border-radius: 0;
  padding: 0.72rem 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  margin: 1.5rem 0 1.6rem;
  max-width: 480px;
  transition: border-color 0.18s ease;
}
.tool-install-line:hover { border-color: color-mix(in srgb, var(--plashki-accent) 35%, transparent); border-left-color: var(--plashki-accent); }
.tool-install-line::before {
  content: "$";
  color: var(--plashki-accent);
  font-weight: 700;
  flex: none;
}
.tool-install-line code {
  color: var(--text-1, #d4dbed);
  background: transparent;
  padding: 0;
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
}
.tool-install-copy {
  flex: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--plashki-accent) 32%, transparent);
  color: var(--plashki-accent);
  padding: 0.30rem 0.65rem;
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  transition: background 0.18s ease;
}
.tool-install-copy:hover { background: color-mix(in srgb, var(--plashki-accent) 12%, transparent); }

/* ────────────────────────────────────────────────────────────
   4 · STORE BUTTON (extension landings — chrome / firefox / edge)
   Replaces: .store-btn with rounded 10px + soft hover
   ──────────────────────────────────────────────────────────── */

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  background: rgba(13, 21, 38, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  color: var(--text-0, #f5f7ff);
  text-decoration: none;
  transition: border-color 0.18s ease;
}
.store-btn:hover {
  border-color: color-mix(in srgb, var(--plashki-accent) 40%, transparent);
  background: rgba(13, 21, 38, 0.55);
  transform: none;
}
.store-btn img,
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn .store-meta { display: flex; flex-direction: column; line-height: 1.3; }
.store-btn .store-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-3, #6b7388);
}
.store-btn .store-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-0, #f5f7ff);
}
.store-btn.disabled,
.store-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
/* "live" status modifier — apply class .store-btn.live for shipped extensions */
.store-btn.live {
  border-color: color-mix(in srgb, var(--plashki-accent) 45%, transparent);
}
.store-btn.live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--plashki-accent);
  border-radius: 50%;
  flex: none;
  margin-right: -0.2rem;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--plashki-accent) 18%, transparent);
}

/* ────────────────────────────────────────────────────────────
   5 · PCARD (extension feature cards + paperwork cards)
   Replaces: .pcard rounded 14px + 4px gradient bar at top
   ──────────────────────────────────────────────────────────── */

.pcard {
  position: relative;
  background: rgba(13, 21, 38, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.pcard:hover {
  transform: none;
  border-color: var(--plashki-accent);
  box-shadow: none;
}
.pcard .pcard-accent {
  display: none; /* the v0 4px gradient bar is gone */
}
.pcard::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: var(--plashki-accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.pcard:hover::before,
.pcard.featured::before {
  opacity: 1;
}
.pcard.featured {
  border-color: color-mix(in srgb, var(--plashki-accent) 40%, transparent);
  background: color-mix(in srgb, var(--plashki-accent) 4%, rgba(13, 21, 38, 0.40));
}
.pcard .pcard-status {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  z-index: 2;
  border: 1px solid currentColor;
  background: rgba(6, 9, 18, 0.70);
}
.pcard .pcard-status.live { color: var(--plashki-accent); }
.pcard .pcard-status.soon { color: var(--text-3, #6b7388); }
.pcard .pcard-status.dev  { color: var(--p-randumb-2, #ffb4d6); }
.pcard .pcard-body { padding: 1.4rem 1.4rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.pcard .pcard-icon-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.pcard .pcard-icon-row img { width: 36px; height: 36px; display: block; border-radius: 0; }
.pcard .pcard-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.20rem;
  font-weight: 600;
  color: var(--text-0, #f5f7ff);
  margin: 0;
  letter-spacing: -0.01em;
}
.pcard .pcard-tagline {
  color: var(--text-2, #9aa3b9);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.55rem 0 1.2rem;
  flex: 1;
}
.pcard .pcard-foot {
  padding: 0.7rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.20);
}
.pcard .pcard-foot .pcard-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3, #6b7388);
  text-transform: uppercase;
  letter-spacing: 0.20em;
}
.pcard:hover .pcard-foot .pcard-meta { color: var(--plashki-accent); }
.pcard .pcard-foot .pcard-arrow {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--text-3, #6b7388);
  transition: color 0.18s ease, transform 0.18s ease;
  font-family: 'JetBrains Mono', monospace;
}
.pcard:hover .pcard-foot .pcard-arrow {
  color: var(--plashki-accent);
  transform: translateX(3px);
}

/* ────────────────────────────────────────────────────────────
   6 · VERSION PILL (extension landings — "v1.0.0 · in review · MV3")
   New plashki — replaces inline-styled <div> noise.
   Use as: <span class="version-pill"><span class="vp-num">v1.0.0</span><span class="vp-dot">·</span><span>in review · cws / amo / edge</span><span class="vp-dot">·</span><span>mv3</span></span>
   Backwards-compatible: a plain version pill works without spans too.
   ──────────────────────────────────────────────────────────── */

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--text-2, #9aa3b9);
  margin-top: 1.4rem;
  padding: 0.45rem 0.75rem;
  background: rgba(13, 21, 38, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}
.version-pill .vp-num { color: var(--plashki-accent); font-weight: 700; }
.version-pill .vp-dot { color: var(--text-3, #6b7388); opacity: 0.6; }

/* ────────────────────────────────────────────────────────────
   7 · SAVE BADGE (upgrade page — "save 28%")
   Replaces inline solid-fill background pill with an outlined caps badge.
   ──────────────────────────────────────────────────────────── */

.save-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--plashki-accent);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--plashki-accent) 50%, transparent);
  padding: 0.20rem 0.55rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  border-radius: 0;
}

/* ────────────────────────────────────────────────────────────
   8 · PRICE DISPLAY (upgrade pages)
   Replaces inline-styled `<p style="font-family:'JetBrains Mono'...">$6.99 / mo</p>`.
   Use: <div class="price-tile">$6.99<span class="price-unit">/ month</span></div>
   ──────────────────────────────────────────────────────────── */

.price-tile {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--plashki-accent);
  margin: 0.6rem 0 0.8rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.price-tile .price-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3, #6b7388);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.4rem;
}

/* ────────────────────────────────────────────────────────────
   9 · LICENSE / FOREVER MICRO-LABEL (tools landings — "mit · free forever")
   Replaces inline-styled `<span style="font-family:'JetBrains Mono'...">`.
   ──────────────────────────────────────────────────────────── */

.license-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-3, #6b7388);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ────────────────────────────────────────────────────────────
   10 · BACK-LINK / KICKER (used on upgrade + pricing — "← back to X")
   Replaces inline-styled <a> with hardcoded font-family / size / color.
   ──────────────────────────────────────────────────────────── */

a.back-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-3, #6b7388);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
a.back-link:hover,
.back-link:hover {
  color: var(--plashki-accent);
  border-bottom-color: color-mix(in srgb, var(--plashki-accent) 50%, transparent);
}

/* ────────────────────────────────────────────────────────────
   11 · MUTED MICROCOPY (drop-bundle ready, last-updated, etc.)
   Replaces inline-styled .muted with hardcoded JetBrains Mono attrs.
   ──────────────────────────────────────────────────────────── */

.muted-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3, #6b7388);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.muted-mono a {
  color: var(--plashki-accent);
  text-decoration: none;
  border-bottom: 1px dotted color-mix(in srgb, var(--plashki-accent) 40%, transparent);
}
.muted-mono a:hover { border-bottom-style: solid; }
