/* ============================================================
   SEMICO.AI — platform.html (Product Portfolio) page styles
   v2 "silicon sand": light sand page, dark component islands.
   Namespace: pf-  ·  Tokens only. Each .pf-suite carries TWO
   custom props: --suite-c (bright, used INSIDE dark islands)
   and --suite-sand (deepened, used ON the sand page plane).
   Dark boxes added by this page carry class="di" in the HTML.
   ============================================================ */

/* ---------- Hero strip (sits on the sand) ---------- */
.pf-hero {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 clamp(30px, 4vw, 52px);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.pf-hero .container { position: relative; z-index: 1; }
.pf-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 940px) {
  .pf-hero-grid { grid-template-columns: 1fr; }
  .pf-hero-art { display: none; }
}
.pf-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--kicker-c); }
.pf-hero h1 { margin-bottom: 14px; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.pf-hero .lede { max-width: 62ch; }

.pf-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 26px; }
.pf-fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.pf-fact span { font-size: 0.8rem; color: var(--ink-3); }

.pf-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; }
.pf-trust li {
  list-style: none;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.pf-trust li svg { color: var(--sand-supply-chain); flex: none; }

/* Hero wafer art — a dark die panel sitting on the sand (.di in HTML) */
.pf-hero-art {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 26px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pf-wafer { width: min(300px, 100%); display: block; margin-inline: auto; }
.pf-art-cap { text-align: center; }
.pf-lit rect { animation: pfDiePulse 3.4s ease-in-out infinite; }
.pf-lit rect:nth-child(1) { animation-delay: 0s; }
.pf-lit rect:nth-child(2) { animation-delay: 0.5s; }
.pf-lit rect:nth-child(3) { animation-delay: 1s; }
.pf-lit rect:nth-child(4) { animation-delay: 1.5s; }
.pf-lit rect:nth-child(5) { animation-delay: 2s; }
.pf-lit rect:nth-child(6) { animation-delay: 2.5s; }
.pf-lit rect:nth-child(7) { animation-delay: 3s; }
@keyframes pfDiePulse { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.95; } }

/* The house ⬡ agent sweeping the 38th die into line (the page's one humor
   scene — SPEC v3 character-scene language; reduced-motion shows it settled) */
.pf-sweep { width: min(300px, 100%); display: block; margin: 2px auto 0; }
.pf-sweep .sw-st { stroke: var(--ink-3); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pf-sweep .sw-broom { stroke: var(--warning); stroke-width: 2; fill: none; stroke-linecap: round; }
.pf-sweep .sw-die { fill: rgba(56, 189, 248, 0.06); stroke: rgba(148, 184, 255, 0.3); stroke-width: 1; }
.pf-sweep .sw-stray rect { fill: rgba(56, 189, 248, 0.18); stroke: var(--cyan); stroke-width: 1; }
.pf-sweep .sw-fleck { fill: var(--warning); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pf-sweep .sw-arm { animation: pfSweepArm 1.8s ease-in-out infinite; transform-origin: 128px 19px; }
  .pf-sweep .sw-stray { animation: pfStray 7s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
  .pf-sweep .sw-fleck { animation: pfFleck 1.8s ease-in-out infinite; }
  .pf-sweep .sw-fleck--2 { animation-delay: 0.5s; }
}
@keyframes pfSweepArm { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes pfStray {
  0% { transform: translate(-32px, 1px) rotate(-14deg); opacity: 0; }
  7% { opacity: 1; }
  48%, 86% { transform: none; opacity: 1; }
  93% { opacity: 0; }
  100% { transform: translate(-32px, 1px) rotate(-14deg); opacity: 0; }
}
@keyframes pfFleck { 0%, 55%, 100% { opacity: 0; } 65%, 85% { opacity: 0.9; } }

/* Suite filter chips — small dark dies on the sand (class="di" in HTML) */
.pf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pf-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-1), color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.pf-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chip-c, var(--cyan)); flex: none; }
.pf-chip:hover { color: var(--ink); border-color: rgba(56, 189, 248, 0.4); transform: translateY(-1px); }
.pf-chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--glass-strong);
  border-color: var(--chip-c, var(--cyan));
  box-shadow: inset 0 0 0 1px var(--chip-c, var(--cyan)), var(--shadow-1);
}

/* ---------- Portfolio layout ---------- */
.pf-content { min-width: 0; }
.pf-hidden { display: none !important; }   /* suite chip filter */
.pf-srch-hide { display: none !important; } /* search filter (kept separate so chip state survives a search) */

/* ---------- Product search (sits at the top of the dark sidebar island) ---------- */
.pf-search { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.pf-search-ic { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.pf-search-in {
  width: 100%;
  min-width: 0;
  font: 500 0.84rem var(--font-ui);
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-s);
  padding: 8px 30px 8px 31px;
  transition: border-color var(--dur-1), background var(--dur-1);
}
.pf-search-in::placeholder { color: var(--ink-3); }
.pf-search-in:hover { border-color: rgba(56, 189, 248, 0.35); }
.pf-search-in:focus { outline: none; border-color: var(--cyan); background: var(--glass-strong); }
.pf-search-in::-webkit-search-cancel-button,
.pf-search-in::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.pf-search-kbd {
  position: absolute;
  right: 8px;
  font: 600 0.62rem var(--font-mono);
  color: var(--ink-3);
  border: 1px solid var(--glass-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px 2px;
  pointer-events: none;
}
.pf-search-x {
  position: absolute;
  right: 6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}
.pf-search-x:hover { color: var(--ink); background: rgba(56, 189, 248, 0.2); }
@media (max-width: 940px) {
  /* mobile sidebar is a horizontal scroller: the search stays pinned left */
  .pf-search {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 min(220px, 62vw);
    margin: 0 6px 0 0;
    background: var(--surface-1);
    border-radius: var(--radius-s);
  }
}

/* While a search is live the suite chips are overridden — dim them */
body.pf-searching .pf-chips { opacity: 0.55; transition: opacity var(--dur-1); }

/* Results count — silkscreen line above the first suite */
.pf-results { margin: 20px 0 0; }

/* Empty-search state — light premium card (v4), the ⬡ agent shrugs */
.pf-empty {
  margin-top: 22px;
  padding: clamp(26px, 4vw, 42px) 24px;
  text-align: center;
  background: #f9f5ec;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: 0 10px 30px rgba(93, 74, 40, 0.08);
}
.pf-shrug { width: 118px; height: auto; display: block; margin: 0 auto 8px; }
.pf-shrug .sh-st { stroke: var(--ink-2); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pf-shrug .sh-q { fill: var(--kicker-c); font-family: var(--font-mono); font-weight: 700; }
.pf-empty-line { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); }
.pf-empty-line b { color: var(--kicker-c); font-weight: 700; }
.pf-empty-hint { margin: 0; font-size: 0.88rem; color: var(--ink-3); }
.pf-try {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--link);
  font: 600 0.78rem var(--font-mono);
  border-radius: var(--radius-pill);
  padding: 2px 10px 3px;
  cursor: pointer;
  transition: background var(--dur-1), border-color var(--dur-1);
}
.pf-try:hover { border-color: var(--link); background: var(--glass-strong); }
.pf-empty-etch { display: block; margin-top: 16px; font-size: 0.62rem; }
@media (prefers-reduced-motion: no-preference) {
  .pf-shrug .sh-armL { animation: pfShrugL 2.8s var(--ease-out) infinite; transform-origin: 56px 38px; }
  .pf-shrug .sh-armR { animation: pfShrugR 2.8s var(--ease-out) infinite; transform-origin: 56px 38px; }
  .pf-shrug .sh-head { animation: pfHeadTilt 2.8s var(--ease-out) infinite; transform-origin: 56px 30px; }
  .pf-shrug .sh-q { animation: pfHuh 2.8s ease-in-out infinite; }
}
@keyframes pfShrugL { 0%, 14%, 68%, 100% { transform: rotate(0); } 32%, 52% { transform: rotate(16deg); } }
@keyframes pfShrugR { 0%, 14%, 68%, 100% { transform: rotate(0); } 32%, 52% { transform: rotate(-16deg); } }
@keyframes pfHeadTilt { 0%, 14%, 68%, 100% { transform: rotate(0); } 32%, 52% { transform: rotate(-6deg); } }
@keyframes pfHuh {
  0%, 22% { opacity: 0; transform: translateY(3px); }
  36%, 56% { opacity: 1; transform: none; }
  74%, 100% { opacity: 0; transform: translateY(-3px); }
}

/* Sidebar refinements (shared .side-nav is the dark panel) */
.pf-side .sn-title a {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  color: inherit;
  background: none;
  border-radius: 0;
}
.pf-side .sn-title a:hover { color: var(--ink); background: none; }
.pf-side .sn-title a.is-active { color: var(--cyan); }
.pf-side a.sn-prod { font-size: 0.84rem; display: flex; align-items: center; gap: 8px; }
.pf-side .sn-ic {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.64rem;
  line-height: 1;
  flex: none;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}
@media (max-width: 940px) {
  .pf-side a.sn-prod { display: none; }
  .pf-side { margin-bottom: 6px; }
}

/* ---------- Suite sections (headers sit on the sand) ---------- */
.pf-suite { padding: clamp(34px, 5vw, 58px) 0; scroll-margin-top: calc(var(--nav-h) + 10px); }
.pf-suite + .pf-suite { border-top: 1px solid var(--hairline); }
.pf-suite-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-suite-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--suite-sand, var(--link));
  background: color-mix(in srgb, var(--suite-sand, var(--link)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--suite-sand, var(--link)) 30%, transparent);
}
.pf-suite h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.pf-count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  white-space: nowrap;
}
.pf-expand { margin-left: auto; }
@media (max-width: 640px) { .pf-expand { margin-left: 0; } }
.pf-tagline { font-size: 1.02rem; color: var(--ink-2); max-width: 68ch; margin: 0 0 4px; }
.pf-who { font-size: 0.84rem; color: var(--ink-3); margin: 0; }

/* "Monday morning" executive lens callout — sand glass, deep suite accent */
.pf-lens {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--suite-sand, var(--link));
  border-radius: var(--radius-m);
  padding: 14px 18px;
  margin: 18px 0 26px;
}
.pf-lens-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--suite-sand, var(--ink-3));
  white-space: nowrap;
  margin-top: 3px;
}
.pf-lens p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
@media (max-width: 640px) { .pf-lens { flex-direction: column; gap: 6px; } }

/* Suite intro photo (Equipment) — framed die on the sand */
.pf-head-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  margin: 18px 0 26px;
}
.pf-head-row .pf-lens { margin: 0; }
.pf-photo { margin: 0; }
.pf-photo .etch { display: block; margin-top: 8px; font-size: 0.62rem; }
@media (max-width: 820px) {
  .pf-head-row { grid-template-columns: 1fr; }
  .pf-photo { max-width: 420px; }
}

/* ---------- Product cards (accordion-item = shared dark island) ---------- */
.pf-prod { scroll-margin-top: calc(var(--nav-h) + 12px); }
.pf-h { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.pf-prod .accordion-head { align-items: center; padding: 14px 20px; gap: 13px; }
.pf-prod.is-open { border-color: color-mix(in srgb, var(--suite-c, var(--cyan)) 40%, transparent); }

/* Product icon tile (Notion-style emoji from products.js) */
.pf-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.02rem;
  line-height: 1;
  flex: none;
  background: color-mix(in srgb, var(--suite-c, var(--cyan)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--suite-c, var(--cyan)) 32%, transparent);
  transition: transform var(--dur-1) var(--ease-out);
}
.pf-prod .accordion-head:hover .pf-ic { transform: translateY(-1px) scale(1.06); }

.pf-head-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-name { color: var(--ink); font-family: var(--font-display); font-size: 1.02rem; }

/* Maturity-honesty chip on new-product cards (SPEC v3: never imply shipped).
   Default = "New · build plan" (dashed, blueprint feel); --rr = "Runner-ready". */
.pf-mat {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 8px;
  padding: 2px 8px 3px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.pf-mat--rr {
  border-style: solid;
  border-color: color-mix(in srgb, var(--good-text) 45%, transparent);
  color: var(--good-text);
  background: color-mix(in srgb, var(--good-text) 10%, transparent);
}
.pf-short { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; font-family: var(--font-ui); line-height: 1.4; }
.pf-hint {
  margin-left: auto;
  flex: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  white-space: nowrap;
}
.pf-prod .acc-icon { margin-left: 0; }
@media (max-width: 720px) {
  .pf-hint { display: none; }
  .pf-prod .acc-icon { margin-left: auto; }
}

/* ---------- Card detail: expand with fade-slide ---------- */
.pf-detail .pf-what { font-size: 0.92rem; margin: 6px 0 20px; max-width: 78ch; }
.pf-detail h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.pf-detail > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.pf-prod.is-open .pf-detail > * { opacity: 1; transform: none; }
.pf-prod.is-open .pf-detail > *:nth-child(1) { transition-delay: 40ms; }
.pf-prod.is-open .pf-detail > *:nth-child(2) { transition-delay: 90ms; }
.pf-prod.is-open .pf-detail > *:nth-child(3) { transition-delay: 140ms; }
.pf-prod.is-open .pf-detail > *:nth-child(4) { transition-delay: 190ms; }
.pf-prod.is-open .pf-detail > *:nth-child(5) { transition-delay: 240ms; }

/* Capabilities as icon-chip rows (staggered on open) */
.pf-caps { margin-bottom: 20px; }
.pf-capflow { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 7px;
  border-radius: 11px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
}
.pf-cap-ic {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  line-height: 1;
  flex: none;
  background: color-mix(in srgb, var(--suite-c, var(--cyan)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--suite-c, var(--cyan)) 28%, transparent);
}
.pf-prod .pf-cap {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.pf-prod.is-open .pf-cap { opacity: 1; transform: none; }
.pf-prod.is-open .pf-cap:nth-child(1) { transition-delay: 140ms; }
.pf-prod.is-open .pf-cap:nth-child(2) { transition-delay: 195ms; }
.pf-prod.is-open .pf-cap:nth-child(3) { transition-delay: 250ms; }
.pf-prod.is-open .pf-cap:nth-child(4) { transition-delay: 305ms; }
.pf-prod.is-open .pf-cap:nth-child(5) { transition-delay: 360ms; }
.pf-prod.is-open .pf-cap:nth-child(n+6) { transition-delay: 415ms; }

/* KPI minis (stat-tile pattern, inside the dark card) */
.pf-out { margin-bottom: 20px; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pf-kpi {
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-top: 2px solid color-mix(in srgb, var(--suite-c, var(--cyan)) 55%, transparent);
  border-radius: var(--radius-s);
  padding: 12px 14px;
}
.pf-kpi b {
  display: block;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pf-kpi span { display: block; font-size: 0.72rem; color: var(--ink-3); line-height: 1.45; margin-top: 4px; }
.pf-bars { margin-top: 14px; max-width: 520px; }

/* ---------- Absorbed "named mode / module" sub-section (merged products) ----------
   A merged product survives as a labeled mode inside its survivor card: its own
   capability chips, KPI tiles and integration chips, visually set apart by a
   suite-accented left rail so nothing reads as deleted. */
.pf-mode {
  margin: 4px 0 20px;
  padding: 16px 18px 14px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid color-mix(in srgb, var(--suite-c, var(--cyan)) 60%, transparent);
  border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--suite-c, var(--cyan)) 5%, var(--glass));
}
.pf-mode-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; }
.pf-mode-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--suite-c, var(--cyan));
  border: 1px solid color-mix(in srgb, var(--suite-c, var(--cyan)) 45%, transparent);
  background: color-mix(in srgb, var(--suite-c, var(--cyan)) 12%, transparent);
  border-radius: var(--radius-pill);
  padding: 2px 9px 3px;
  white-space: nowrap;
}
.pf-mode-name { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.pf-mode-lin { font-size: 0.7rem; color: var(--ink-3); font-style: italic; }
.pf-mode-what { font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; max-width: 78ch; }
.pf-mode .pf-capflow { margin-bottom: 12px; }
.pf-mode-kpis { margin-bottom: 12px; }
.pf-mode-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.pf-mode-foot .pf-int { gap: 6px; }
.pf-mode-entry {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--suite-sand, var(--ink-2));
  border: 1px dashed color-mix(in srgb, var(--suite-c, var(--cyan)) 40%, transparent);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  white-space: nowrap;
}

/* Empty anchor-redirect targets for merged product ids (#toolmedic-ai etc.).
   platform.js rewrites the hash to the survivor and opens it; this span is the
   no-JS fallback and keeps old deep links resolving on the page. */
.pf-redirect { display: block; height: 0; scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- "Solves? / MicroDemo" block (rendered by platform.js) ---------- */
.pf-demo { margin-bottom: 4px; }
.pf-seg-row {
  display: inline-flex;
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
  margin-bottom: 14px;
}
.pf-seg {
  padding: 6px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}
.pf-seg:hover { color: var(--ink); }
.pf-seg.is-active { background: var(--brand-grad); color: #061018; }
.pf-pane { display: none; }
.pf-pane.is-active { display: block; }

/* Solves? — pain → outcome mini infographic */
.pf-pain {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}
.pf-pane-solves.is-active .pf-pain { animation: fadeUp 480ms var(--ease-out) backwards; }
.pf-pane-solves.is-active .pf-pain:nth-child(1) { animation-delay: 40ms; }
.pf-pane-solves.is-active .pf-pain:nth-child(2) { animation-delay: 150ms; }
.pf-pane-solves.is-active .pf-pain:nth-child(3) { animation-delay: 260ms; }
.pf-ba {
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.pf-ba i {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pf-ba-before { border-left: 2px solid var(--serious); }
.pf-ba-before i { color: var(--serious); }
.pf-ba-after { border-left: 2px solid var(--good-text); color: var(--ink); }
.pf-ba-after i { color: var(--good-text); }
.pf-arrow { align-self: center; text-align: center; color: var(--ink-3); font-size: 0.95rem; }
@media (max-width: 640px) {
  .pf-pain { grid-template-columns: 1fr; gap: 4px; }
  .pf-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* MicroDemo — alert → AI reasoning → approved outcome strip */
.pf-micro {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr;
  align-items: stretch;
}
.pf-mstep {
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  opacity: 0.35;
  transform: translateY(4px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), border-color 320ms;
}
.pf-mstep.is-on { opacity: 1; transform: none; }
.pf-mstep-outcome.is-on { border-color: color-mix(in srgb, var(--good-text) 45%, transparent); }
.pf-mtag {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
}
.pf-mstep-alert .pf-mtag { color: var(--warning); }
.pf-mstep-reason .pf-mtag { color: var(--cyan); }
.pf-mstep-outcome .pf-mtag { color: var(--good-text); }
.pf-mstep p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); min-height: 2.4em; }
.pf-mline {
  position: relative;
  align-self: center;
  height: 2px;
  margin: 0 4px;
  background: var(--surface-3);
  border-radius: 1px;
  overflow: hidden;
}
.pf-mline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease-out);
}
.pf-mline.is-run::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .pf-micro { grid-template-columns: 1fr; }
  .pf-mline { width: 2px; height: 18px; margin: 2px auto; }
  .pf-mline::after { transform: scaleY(0); transform-origin: top; }
  .pf-mline.is-run::after { transform: scaleY(1); }
}
.pf-micro-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.pf-twin { font-size: 0.84rem; font-weight: 600; white-space: nowrap; }

/* ---------- Card meta row ---------- */
.pf-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.pf-int { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-int-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.pf-int .chip { font-size: 0.73rem; padding: 4px 10px; }
.pf-lineage { font-size: 0.78rem; color: var(--ink-3); }
.pf-lineage b { color: var(--ink-2); font-weight: 600; }
.pf-wf { margin-left: auto; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 720px) { .pf-wf { margin-left: 0; } }

/* Deep-link flash (dark card on sand — deep link-blue ring) */
.pf-flash { animation: pfFlash 1.6s var(--ease-out) 1; }
@keyframes pfFlash {
  0% { box-shadow: 0 0 0 3px rgba(11, 102, 163, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(11, 102, 163, 0); }
}

/* ---------- Digital Twin Lab strip (deeper sand band) ---------- */
.pf-df-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pf-df h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 6px; }
.pf-df p { margin: 0; max-width: 66ch; }

/* ---------- Assessment CTA band (dark island — class="di" in HTML) ---------- */
.pf-cta {
  text-align: center;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.1)), var(--surface-1);
  border-top: 1px solid var(--hairline);
}
.pf-cta .kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}
.pf-cta h2 { max-width: 20ch; margin-inline: auto; }
.pf-cta .lede { max-width: 640px; margin-inline: auto; }
.pf-cta .btn { margin-top: 12px; }
