/* Platform below-hero — Linear bridge + stacked feature sections */

.pf-bridge,
.pf-features,
.pf-pricing,
.pf-faq {
  --pf-max: 89.75rem;
  --pf-side: 2.875rem;
  --pf-inset: 2rem;
  --pf-keyline: color-mix(in srgb, var(--alt-fg, #fff) 8%, transparent);
  /* Real terminal surfaces (apps/charts theme.css) — not marketing blue-gray */
  --fc-bg: #0c0c0c;
  --fc-panel: #1a1a1a;
  --fc-surface: #0c0c0c;
  --fc-border: #262626;
  --fc-fg: #f8f8f8;
  --fc-strong: #ffffff;
  --fc-muted: #929aa5;
  --fc-bull: #26a69a;
  --fc-bear: #ef5350;
  --fc-panel-2: #101010;
  --fc-hover: #1a1a1a;
  --fc-line: #1b1b1b;
  --fc-accent: #a5b5d2;
  --fc-ema: #f0b90b;
  --pf-feat-pad-y: 8rem;
  --pf-feat-header-gap: 6rem;
}

html[data-theme="light"] .pf-bridge,
html[data-theme="light"] .pf-features,
html[data-theme="light"] .pf-pricing,
html[data-theme="light"] .pf-faq {
  --pf-keyline: color-mix(in srgb, var(--alt-fg, #10161f) 10%, transparent);
  --fc-bg: #ffffff;
  --fc-panel: #f3f4f6;
  --fc-surface: #ffffff;
  --fc-border: #e5e7eb;
  --fc-fg: #111827;
  --fc-strong: #111827;
  --fc-muted: #6b7280;
  --fc-bull: #089981;
  --fc-bear: #f23645;
  --fc-panel-2: #f8f9fa;
  --fc-hover: #eef0f3;
  --fc-line: #eceef1;
  --fc-accent: #4b6390;
  --fc-ema: #b45309;
}

/* —— Bridge: logos → manifesto → pillars —— */
.pf-bridge {
  width: 100%;
  box-sizing: border-box;
}

.pf-bridge-rail {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  padding-left: var(--pf-side);
  padding-right: var(--pf-side);
  box-sizing: border-box;
}

.pf-bridge-logos {
  padding: 3.5rem var(--pf-side) 2.75rem;
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.pf-bridge-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  margin: 0 0 1.25rem;
}

/* Same recolor as landing .alt-trust-logo — SVGs are black fills */
.pf-bridge-logo {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: 6.5rem;
  object-fit: contain;
  object-position: center;
  opacity: 0.9;
  filter: brightness(0) invert(76%) sepia(8%) saturate(548%) hue-rotate(178deg) brightness(93%) contrast(88%);
}

html[data-theme="light"] .pf-bridge-logo {
  opacity: 0.85;
  filter: brightness(0) invert(22%) sepia(24%) saturate(980%) hue-rotate(185deg) brightness(92%) contrast(90%);
}

.pf-bridge-logos-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fc-muted) 85%, transparent);
}

.pf-bridge-manifesto {
  padding: 5.5rem 0 5rem;
}

.pf-bridge-manifesto .pf-bridge-rail {
  padding-left: calc(var(--pf-side) + var(--pf-inset));
  padding-right: calc(var(--pf-side) + var(--pf-inset));
}

.pf-bridge-manifesto h2 {
  margin: 0;
  max-width: 48rem;
  font-family: var(--alt-font-sans);
  font-size: clamp(1.85rem, 2.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--fc-muted);
}

.pf-bridge-lead {
  color: var(--fc-strong);
}

.pf-bridge-pillars {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 2.5rem var(--pf-side) 4.5rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pf-bridge-pillar {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pf-bridge-illust {
  flex: 0 0 auto;
  height: 11.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0.5rem;
  color: color-mix(in srgb, var(--fc-strong) 55%, var(--fc-muted));
}

.pf-bridge-illust svg {
  width: min(100%, 14rem);
  height: auto;
  display: block;
}

.pf-bridge-pillar h3 {
  margin: 0;
  font-family: var(--alt-font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fc-strong);
}

.pf-bridge-pillar p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--fc-muted);
  max-width: 22rem;
}

@media (max-width: 900px) {
  .pf-bridge-logos {
    padding: 2.75rem 1.25rem 2rem;
  }

  .pf-bridge-logos-row {
    gap: 1.25rem 1.75rem;
  }

  .pf-bridge-manifesto {
    padding: 3.5rem 0 3rem;
  }

  .pf-bridge-manifesto .pf-bridge-rail,
  .pf-bridge-pillars {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pf-bridge-pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .pf-bridge-pillar {
    padding: 0;
  }

  .pf-bridge-illust {
    height: 9rem;
  }
}

/* —— Feature sections —— */
.pf-features {
  --pf-feat-pad-y: 8rem; /* 128px — Linear section pad */
  --pf-feat-header-gap: 6rem; /* 96px — header → illustration */
  --pf-feat-stack: 0;
  --pf-frame-radius: 0.75rem;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--pf-keyline);
}

.pf-feat {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--pf-feat-pad-y) 0;
  box-sizing: border-box;
}

.pf-feat + .pf-feat {
  border-top: 1px solid var(--pf-keyline);
}

.pf-feat:last-child {
  padding-bottom: calc(var(--pf-feat-pad-y) * 0.85);
}

.pf-feat-header,
.pf-feat-media {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pf-side);
  padding-right: var(--pf-side);
  box-sizing: border-box;
}

/* —— Header: title | description (Linear 50/50) —— */
.pf-feat-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-top: 0;
  padding-bottom: var(--pf-feat-header-gap);
  /* left/right from shared rail rule above; keep Linear inset inside */
  padding-left: calc(var(--pf-side) + var(--pf-inset));
  padding-right: calc(var(--pf-side) + var(--pf-inset));
}

.pf-feat-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-feat-header h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--alt-font-sans);
  font-size: clamp(2rem, 2.8vw, 3rem); /* → 48px */
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--fc-strong);
}

.pf-feat-desc {
  margin: 0;
  padding-top: 0.15rem;
  max-width: 36rem;
}

.pf-feat-desc p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--fc-muted);
}

.pf-feat-desc p:last-child {
  margin-bottom: 0;
}

/* —— Wide product frame —— */
.pf-feat-media {
  position: relative;
  width: 100%;
  min-width: 0;
}

.pf-feat-frame {
  position: relative;
  width: 100%;
  min-height: clamp(22rem, 42vw, 39rem);
  height: clamp(22rem, 42vw, 39rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--pf-frame-radius) var(--pf-frame-radius) 0 0;
  overflow: hidden;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-bottom: none;
  color: var(--fc-fg);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 4%, transparent) inset,
    0 28px 64px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
  font-family: var(--alt-font-sans);
  /* Linear-style edge dissolve */
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, #000 30%),
    linear-gradient(to left, transparent 0%, #000 3%),
    linear-gradient(to right, transparent 0%, #000 3%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to top, transparent 0%, #000 30%),
    linear-gradient(to left, transparent 0%, #000 3%),
    linear-gradient(to right, transparent 0%, #000 3%);
  mask-composite: intersect;
}

/* Soft blur + opacity wash over the dissolve (matches Linear edge feel) */
.pf-feat-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--alt-bg, #070a0d) 0%,
    color-mix(in srgb, var(--alt-bg, #070a0d) 72%, transparent) 28%,
    color-mix(in srgb, var(--alt-bg, #070a0d) 28%, transparent) 58%,
    transparent 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  mask-image: linear-gradient(to top, #000 10%, transparent 92%);
}

html[data-theme="light"] .pf-feat-media::after {
  background: linear-gradient(
    to top,
    var(--alt-bg, #eef2f7) 0%,
    color-mix(in srgb, var(--alt-bg, #eef2f7) 75%, transparent) 30%,
    color-mix(in srgb, var(--alt-bg, #eef2f7) 25%, transparent) 60%,
    transparent 100%
  );
}

html[data-theme="light"] .pf-feat-frame {
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 80%, transparent) inset,
    0 20px 48px rgba(16, 22, 31, 0.1);
}

.pf-feat-card-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  height: 36px;
  box-sizing: border-box;
  padding: 0 0.95rem;
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--fc-muted);
}

.pf-chrome-right {
  margin-left: auto;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  opacity: 0.75;
}

.pf-feat-card-chrome .dots {
  display: flex;
  gap: 0.32rem;
}

.pf-feat-card-chrome .dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 42%, transparent);
}

.pf-feat-card-chrome .dots i:nth-child(1) { background: #ff5f57; opacity: 0.85; }
.pf-feat-card-chrome .dots i:nth-child(2) { background: #febc2e; opacity: 0.85; }
.pf-feat-card-chrome .dots i:nth-child(3) { background: #28c840; opacity: 0.85; }

.pf-feat-card-body {
  flex: 1;
  min-height: 0;
  padding: 0.75rem 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  background: var(--fc-bg);
}

.pf-feat-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

/* —— Shared app primitives (inert demo surfaces) —— */
.pf-feat-card-body.is-app {
  padding: 0;
  gap: 0;
  font-size: 12px;
  line-height: 1.4;
}

.pf-features .up { color: var(--fc-bull); }
.pf-features .dn { color: var(--fc-bear); }

.pf-ui-num {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.pf-ui-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-bg);
  white-space: nowrap;
  overflow: hidden;
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-ui-spacer { flex: 1 1 auto; }

.pf-ui-div {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: var(--fc-border);
}

.pf-ui-sym {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-ui-sym b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fc-strong);
}

.pf-ui-venue {
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-ui-last {
  font-size: 13px;
  color: var(--fc-strong);
}

.pf-ui-coin {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #0c0c0c;
  background: #9aa3ae;
}

.pf-ui-coin.is-sm { width: 16px; height: 16px; font-size: 9px; }
.pf-ui-coin[data-c="btc"] { background: #f7931a; }
.pf-ui-coin[data-c="eth"] { background: #8c9eff; }
.pf-ui-coin[data-c="sol"] { background: linear-gradient(135deg, #14f195, #9945ff); }
.pf-ui-coin[data-c="bnb"] { background: #f0b90b; }
.pf-ui-coin[data-c="xrp"] { background: #c8ccd2; }
.pf-ui-coin[data-c="doge"] { background: #c2a633; }
.pf-ui-coin[data-c="avax"] { background: #e84142; color: #fff; }

.pf-ui-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
}

.pf-ui-seg span {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fc-muted);
}

.pf-ui-seg span.is-on {
  color: var(--fc-strong);
  background: var(--fc-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc-strong) 8%, transparent) inset;
}

.pf-ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 11.5px;
  color: var(--fc-fg);
}

.pf-ui-chip.is-ghost {
  border-style: dashed;
  background: transparent;
  color: var(--fc-muted);
}

.pf-ui-chip.is-accent {
  color: var(--fc-strong);
  border-color: color-mix(in srgb, var(--fc-accent) 40%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-accent) 12%, var(--fc-bg));
}

.pf-ui-seg span.is-flash,
.pf-ui-chip.is-flash {
  color: var(--fc-strong);
  background: color-mix(in srgb, var(--fc-accent) 18%, var(--fc-bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc-accent) 55%, transparent) inset;
}

.sw {
  display: inline-block;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--c, var(--fc-muted));
  vertical-align: middle;
}

.pf-ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-ui-btn.is-primary {
  color: #0c0c0c;
  background: #f3f3f3;
  border-color: #f3f3f3;
}

.pf-ui-btn b { font-size: 9px; }

.pf-ui-status,
.pf-ui-live,
.pf-ui-mic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-ui-status i,
.pf-ui-live i,
.pf-ui-mic i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-muted);
}

.pf-ui-status.is-ok { color: var(--fc-fg); }
.pf-ui-status.is-ok i,
.pf-ui-live i,
.pf-ui-mic i {
  background: var(--fc-bull);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-bull) 22%, transparent);
}

.pf-ui-live { color: var(--fc-bull); font-weight: 500; }

.pf-ui-mic {
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fc-bull) 40%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-bull) 10%, var(--fc-bg));
  color: var(--fc-bull);
  font-weight: 500;
}

.pf-ui-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--fc-muted);
}

.pf-ui-crumb i {
  font-style: normal;
  opacity: 0.5;
}

.pf-ui-crumb b {
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-ui-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
}

.pf-ui-tabs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fc-muted);
  box-shadow: inset 0 -1.5px 0 transparent;
}

.pf-ui-tabs span.is-on {
  color: var(--fc-strong);
  box-shadow: inset 0 -1.5px 0 var(--fc-strong);
}

.pf-ui-tabs span.is-add { font-size: 14px; }

.pf-ui-tabs em {
  font-style: normal;
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--fc-hover);
  color: var(--fc-muted);
}

.pf-ui-tabs.is-pills {
  align-self: center;
  gap: 3px;
}

.pf-ui-tabs.is-pills span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  box-shadow: none;
}

.pf-ui-tabs.is-pills span.is-on {
  background: var(--fc-hover);
  box-shadow: 0 0 0 1px var(--fc-border) inset;
}

.pf-ui-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 8px 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-ui-search svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pf-ui-search span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-ui-search kbd {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--fc-border);
  color: var(--fc-muted);
}

.pf-ui-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
  white-space: nowrap;
}

.pf-ui-pane-head em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

/* charts */
.pf-ui-chart {
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.pf-ui-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pf-ui-chart > .pf-ui-svg {
  position: absolute;
  inset: 0;
}

.pf-ui-svg path,
.pf-ui-svg polyline,
.pf-ui-svg line {
  vector-effect: non-scaling-stroke;
}

.pf-ui-svg .g { fill: none; stroke: var(--fc-line); stroke-width: 1; }
.pf-ui-svg .cd .u { fill: var(--fc-bull); stroke: var(--fc-bull); stroke-width: 1; }
.pf-ui-svg .cd .d { fill: var(--fc-bear); stroke: var(--fc-bear); stroke-width: 1; }
.pf-ui-svg .vol .vu { fill: var(--fc-bull); opacity: 0.13; }
.pf-ui-svg .vol .vd { fill: var(--fc-bear); opacity: 0.13; }
.pf-ui-svg .ema { fill: none; stroke: var(--fc-ema); stroke-width: 1.5; }
.pf-ui-svg .last { fill: none; stroke: var(--fc-bull); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.pf-ui-svg .su { fill: none; stroke: var(--fc-bull); stroke-width: 1.5; }
.pf-ui-svg .sd { fill: none; stroke: var(--fc-bear); stroke-width: 1.5; }
.pf-ui-svg .sn { fill: none; stroke: var(--fc-accent); stroke-width: 1.5; }
.pf-ui-svg .sa { fill: var(--fc-bull); opacity: 0.12; }
.pf-ui-svg .dot { fill: var(--fc-strong); stroke: var(--fc-bg); stroke-width: 2; }

.pf-ui-yaxis {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
}

.pf-ui-yaxis span {
  position: absolute;
  right: 10px;
  transform: translateY(-50%);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--fc-muted);
  opacity: 0.85;
}

.pf-ui-tag {
  position: absolute;
  right: 4px;
  z-index: 1;
  transform: translateY(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--fc-muted);
}

.pf-ui-tag.is-up { background: var(--fc-bull); }
.pf-ui-tag.is-lvl,
.pf-ui-tag.is-med { background: var(--fc-accent); color: #0c0c0c; }

.pf-ui-tag.is-q {
  color: var(--fc-accent);
  background: var(--fc-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc-accent) 45%, transparent) inset;
}

.pf-ui-ohlc {
  position: absolute;
  top: 9px;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 11px;
  color: var(--fc-muted);
  white-space: nowrap;
}

.pf-ui-ohlc b {
  font-weight: 600;
  color: var(--fc-strong);
}

.pf-ui-ohlc em {
  font-style: normal;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--fc-fg);
}

.pf-ui-ohlc .ema em { color: var(--fc-ema); }
.pf-ui-ohlc em.acc { color: var(--fc-accent); }
.pf-ui-ohlc em.up { color: var(--fc-bull); }

.pf-ui-xaxis {
  position: relative;
  height: 24px;
  flex: 0 0 auto;
  border-top: 1px solid var(--fc-border);
}

.pf-ui-xaxis.is-inline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--fc-line);
}

.pf-ui-xaxis span {
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: var(--fc-muted);
  white-space: nowrap;
}

.pf-ui-xaxis span.is-now {
  color: var(--fc-strong);
  font-weight: 600;
}

/* —— Voice —— */
.pf-v-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 84px 24px;
}

.pf-v-chart { border-bottom: 1px solid var(--fc-border); }

.pf-ui-svg .lvl {
  fill: none;
  stroke: var(--fc-accent);
  stroke-width: 1.25;
  stroke-dasharray: 6 4;
}

.pf-ui-svg .lvl-zone { fill: var(--fc-accent); opacity: 0.08; }
.pf-ui-svg .band { fill: var(--fc-accent); opacity: 0.06; }
.pf-ui-svg .rsi { fill: none; stroke: var(--fc-accent); stroke-width: 1.4; }

.pf-v-lvl-label {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translate(6px, -150%);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fc-accent);
  background: color-mix(in srgb, var(--fc-accent) 12%, var(--fc-bg));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc-accent) 30%, transparent) inset;
}

.pf-v-lvl-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pf-v-hud {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 6%;
  width: 330px;
  padding: 12px 14px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fc-strong) 12%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-panel-2) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 3%, transparent) inset,
    0 18px 48px rgba(0, 0, 0, 0.5);
}

.pf-v-hud-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.pf-v-hud-head b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fc-strong);
}

.pf-v-hud-head span {
  display: block;
  font-size: 10.5px;
  color: var(--fc-muted);
}

.pf-v-hud-head em {
  font-style: normal;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-v-orb {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fc-bull) 70%, #fff), var(--fc-bull) 55%, color-mix(in srgb, var(--fc-bull) 40%, #000));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc-bull) 16%, transparent), 0 0 18px color-mix(in srgb, var(--fc-bull) 45%, transparent);
}

.pf-v-orb i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.pf-v-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  margin: 12px 0 10px;
}

.pf-v-wave i {
  flex: 1 1 0;
  height: var(--h, 40%);
  border-radius: 2px;
  background: linear-gradient(to top, var(--fc-bull), color-mix(in srgb, var(--fc-bull) 45%, var(--fc-accent)));
  opacity: 0.9;
}

.pf-v-said {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fc-strong);
  letter-spacing: -0.01em;
}

.pf-v-said mark {
  padding: 0 3px;
  border-radius: 3px;
  color: var(--fc-strong);
  background: color-mix(in srgb, var(--fc-accent) 22%, transparent);
}

.pf-v-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--fc-line);
}

.pf-v-steps > div {
  display: grid;
  grid-template-columns: 12px auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 11px;
  color: var(--fc-muted);
  white-space: nowrap;
}

.pf-v-steps i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-sizing: border-box;
}

.pf-v-steps .is-done i {
  background: var(--fc-bull);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--fc-bull) 55%, #0c0c0c);
}

.pf-v-steps .is-run i {
  border: 1.5px solid color-mix(in srgb, var(--fc-accent) 30%, transparent);
  border-top-color: var(--fc-accent);
  animation: pf-spin 0.9s linear infinite;
}

.pf-v-steps code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: var(--fc-strong);
}

.pf-v-steps span { overflow: hidden; text-overflow: ellipsis; }

.pf-v-steps em {
  font-style: normal;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  opacity: 0.75;
}

@keyframes pf-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pf-v-steps .is-run i { animation: none; }
}

/* —— Forecast —— */
.pf-f-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.pf-f-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pf-f-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.pf-f-legend .l-med { height: 2px; background: var(--fc-accent); }
.pf-f-legend .l-50 { background: color-mix(in srgb, var(--fc-accent) 42%, transparent); }
.pf-f-legend .l-80 { background: color-mix(in srgb, var(--fc-accent) 18%, transparent); }
.pf-f-legend .l-smp { height: 1px; background: color-mix(in srgb, var(--fc-accent) 70%, transparent); }

.pf-f-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.pf-f-chart { border-right: 1px solid var(--fc-border); }

.pf-ui-svg .fz { fill: var(--fc-accent); opacity: 0.035; }
.pf-ui-svg .b80 { fill: var(--fc-accent); opacity: 0.13; }
.pf-ui-svg .b50 { fill: var(--fc-accent); opacity: 0.2; }
.pf-ui-svg .smp { fill: none; stroke: var(--fc-accent); stroke-width: 1; opacity: 0.4; }
.pf-ui-svg .med { fill: none; stroke: var(--fc-accent); stroke-width: 1.8; }
.pf-ui-svg .now { fill: none; stroke: var(--fc-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.35; }

.pf-f-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--fc-panel-2);
  overflow: hidden;
}

.pf-f-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: -2px;
}

.pf-f-big b {
  font-size: 26px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-f-big span { font-size: 13px; }

.pf-f-prob-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-f-prob-row b { color: var(--fc-strong); font-weight: 500; }

.pf-f-meter {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--fc-line);
  overflow: hidden;
}

.pf-f-meter i,
.pf-d-risk i,
.pf-fw-progress i {
  display: block;
  height: 100%;
  width: var(--p, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fc-bull) 55%, transparent), var(--fc-bull));
}

.pf-f-qs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--fc-line);
}

.pf-f-qs > div {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--fc-line);
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-f-qs b { font-weight: 500; color: var(--fc-fg); }
.pf-f-qs em { font-style: normal; font-size: 11px; }

.pf-f-qs > .is-med {
  background: color-mix(in srgb, var(--fc-accent) 10%, transparent);
  box-shadow: inset 2px 0 0 var(--fc-accent);
}

.pf-f-qs > .is-med b { color: var(--fc-strong); }

.pf-f-scen {
  display: flex;
  gap: 2px;
  height: 8px;
}

.pf-f-scen i {
  flex: 0 0 var(--w);
  border-radius: 2px;
}

.pf-f-scen .bull,
.pf-f-scen-l i.bull { background: var(--fc-bull); }
.pf-f-scen .base,
.pf-f-scen-l i.base { background: var(--fc-accent); }
.pf-f-scen .bear,
.pf-f-scen-l i.bear { background: var(--fc-bear); }

.pf-f-scen-l {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: -2px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-f-scen-l span { display: inline-flex; align-items: center; gap: 5px; }
.pf-f-scen-l i { width: 6px; height: 6px; border-radius: 2px; }

/* —— Coding —— */
.pf-c-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 310px;
}

.pf-c-tree,
.pf-c-rules {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  background: var(--fc-panel-2);
  overflow: hidden;
}

.pf-c-tree { border-right: 1px solid var(--fc-border); }

.pf-c-rules {
  gap: 8px;
  padding: 12px 14px;
  border-left: 1px solid var(--fc-border);
}

.pf-c-tree .pf-ui-pane-head { padding: 10px 8px 6px; }
.pf-c-tree .pf-ui-pane-head:first-child { padding-top: 2px; }
.pf-c-rules .pf-ui-pane-head:not(:first-child) { margin-top: 6px; }

.pf-c-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-c-file i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 55%, transparent);
}

.pf-c-file i.ok { background: var(--fc-bull); }
.pf-c-file i.warn { background: var(--fc-ema); }
.pf-c-file.is-data i { border-radius: 1px; background: var(--fc-accent); opacity: 0.7; }

.pf-c-file em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  opacity: 0.7;
}

.pf-c-file.is-on {
  color: var(--fc-strong);
  background: var(--fc-hover);
}

.pf-c-run {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-c-run b { font-weight: 500; }

.pf-c-editor {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  overflow: hidden;
}

.pf-c-prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pf-c-avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #0c0c0c;
  background: linear-gradient(135deg, #d7dde8, var(--fc-accent));
}

.pf-c-avatar.is-sm { width: 16px; height: 16px; font-size: 8.5px; }

.pf-c-prompt p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fc-strong);
}

.pf-c-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-c-reply img { width: 18px; height: 18px; }
.pf-c-reply b { font-weight: 500; color: var(--fc-strong); }

.pf-c-code {
  flex: 1;
  min-height: 0;
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.8;
  overflow: hidden;
}

.pf-c-code .ln {
  display: grid;
  grid-template-columns: 46px 1fr;
  box-shadow: inset 2px 0 0 transparent;
}

.pf-c-code .ln.is-hl {
  background: color-mix(in srgb, var(--fc-accent) 8%, transparent);
  box-shadow: inset 2px 0 0 var(--fc-accent);
}

.pf-c-code em {
  padding-right: 16px;
  text-align: right;
  font-style: normal;
  color: var(--fc-muted);
  opacity: 0.45;
}

.pf-c-code code {
  font: inherit;
  white-space: pre;
  color: var(--fc-fg);
}

.pf-c-code .kw { color: #c4a7e7; }
.pf-c-code .fn { color: #7fb4ca; }
.pf-c-code .str { color: #a6d189; }
.pf-c-code .num { color: #e5c07b; }
.pf-c-code .cm { color: var(--fc-muted); font-style: italic; opacity: 0.75; }
.pf-c-code .op { color: var(--fc-muted); }
.pf-c-code .id { color: var(--fc-fg); }

html[data-theme="light"] .pf-c-code .kw { color: #7c3aed; }
html[data-theme="light"] .pf-c-code .fn { color: #0e7490; }
html[data-theme="light"] .pf-c-code .str { color: #15803d; }
html[data-theme="light"] .pf-c-code .num { color: #b45309; }

.pf-c-rule {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: var(--fc-bg);
}

.pf-c-rule span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--k, var(--fc-muted));
}

.pf-c-rule[data-k="entry"] { --k: var(--fc-bull); }
.pf-c-rule[data-k="exit"] { --k: var(--fc-bear); }
.pf-c-rule[data-k="filter"] { --k: var(--fc-accent); }
.pf-c-rule[data-k="size"] { --k: var(--fc-ema); }

.pf-c-rule p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fc-muted);
}

.pf-c-rule b { font-weight: 500; color: var(--fc-strong); }

.pf-c-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fc-fg);
}

.pf-c-check i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-bull) 18%, transparent);
  box-shadow: inset 0 0 0 3.5px var(--fc-bull);
}

.pf-c-check em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  color: var(--fc-muted);
}

/* —— Dashboards —— */
.pf-d-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.pf-d-grid > div {
  min-width: 0;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  overflow: hidden;
}

.pf-d-kpi { grid-column: span 3; }
.pf-d-chart { grid-column: span 6; display: flex; flex-direction: column; }
.pf-d-watch { grid-column: span 3; }
.pf-d-alerts { grid-column: span 3; }

.pf-d-kpi > b {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-d-kpi > b.up { color: var(--fc-bull); }

.pf-d-kpi small {
  font-size: 14px;
  color: var(--fc-muted);
}

.pf-d-kpi-foot {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-d-kpi-foot em { font-style: normal; font-size: 11px; }
.pf-d-kpi .pf-ui-svg { height: 28px; margin-top: 10px; }

.pf-d-risk {
  height: 6px;
  margin: 21px 0 11px;
  border-radius: 999px;
  background: var(--fc-line);
  overflow: hidden;
}

.pf-d-risk i { background: linear-gradient(90deg, var(--fc-bull), var(--fc-ema)); }

.pf-d-chart-px {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.pf-d-chart-px b { font-size: 18px; font-weight: 500; color: var(--fc-strong); }
.pf-d-chart-px em { font-style: normal; font-size: 11.5px; }

.pf-d-plot {
  flex: 1;
  margin: 8px -14px 0 0;
  color: var(--fc-accent);
}

.pf-d-plot .area { fill: url(#pfDArea); opacity: 0.6; }
.pf-d-plot .line { fill: none; stroke: var(--fc-accent); stroke-width: 1.6; }
.pf-d-plot .ema { opacity: 0.85; stroke-width: 1.2; }

.pf-d-watch .pf-ui-pane-head,
.pf-d-alerts .pf-ui-pane-head { margin-bottom: 6px; }

.pf-d-wrow {
  display: grid;
  grid-template-columns: 16px 38px minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fc-line);
  font-size: 12px;
  color: var(--fc-fg);
}

.pf-d-wrow b { font-weight: 600; color: var(--fc-strong); }
.pf-d-wrow .pf-ui-svg { height: 18px; }
.pf-d-wrow em { font-style: normal; font-size: 11px; text-align: right; }

.pf-d-alert {
  display: grid;
  grid-template-columns: 8px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 -6px;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-d-alert i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 60%, transparent);
}

.pf-d-alert b { font-weight: 600; color: var(--fc-strong); }
.pf-d-alert span { color: var(--fc-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-d-alert em { font-style: normal; font-size: 11px; }

.pf-d-alert.is-hot { background: color-mix(in srgb, var(--fc-bull) 8%, transparent); }
.pf-d-alert.is-hot i { background: var(--fc-bull); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-bull) 22%, transparent); }
.pf-d-alert.is-hot em { color: var(--fc-bull); }

/* —— Research / backtest —— */
.pf-r-kpis,
.pf-s-stats {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--fc-border);
}

.pf-r-kpis > div,
.pf-s-stats > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--fc-line);
  white-space: nowrap;
}

.pf-r-kpis > div:last-child,
.pf-s-stats > div:last-child { border-right: none; }

.pf-r-kpis span,
.pf-s-stats span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-r-kpis b,
.pf-s-stats b {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-r-kpis b.up,
.pf-s-stats b.up { color: var(--fc-bull); }
.pf-r-kpis b.dn { color: var(--fc-bear); }

.pf-r-kpis em,
.pf-s-stats em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-r-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.pf-r-chart {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 0 0 16px;
}

.pf-r-chart > .pf-ui-pane-head { padding-right: 16px; margin-bottom: 6px; }

.pf-r-legend span { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.pf-r-legend i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.pf-r-legend .l-eq { background: var(--fc-bull); }
.pf-r-legend .l-v2 { background: var(--fc-accent); }
.pf-r-legend .l-bh { background: repeating-linear-gradient(90deg, var(--fc-muted) 0 3px, transparent 3px 5px); }

.pf-r-eq { flex: 1; color: var(--fc-bull); }
.pf-r-eq .area { fill: url(#pfREq); opacity: 0.7; }
.pf-ui-svg .eq { fill: none; stroke: var(--fc-bull); stroke-width: 1.7; }
.pf-ui-svg .v2 { fill: none; stroke: var(--fc-accent); stroke-width: 1.1; opacity: 0.75; }
.pf-ui-svg .bh { fill: none; stroke: var(--fc-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.pf-ui-svg .base { fill: none; stroke: var(--fc-muted); stroke-width: 1; stroke-dasharray: 1 3; opacity: 0.5; }

.pf-r-dd {
  flex: 0 0 64px;
  border-top: 1px solid var(--fc-line);
}

.pf-r-dd-label {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-ui-svg .dda { fill: var(--fc-bear); opacity: 0.16; }
.pf-ui-svg .ddl { fill: none; stroke: var(--fc-bear); stroke-width: 1; opacity: 0.85; }

.pf-r-trades {
  min-width: 0;
  min-height: 0;
  padding: 12px 16px;
  border-left: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  overflow: hidden;
}

.pf-r-trades .pf-ui-pane-head { margin-bottom: 4px; }

.pf-r-tr {
  display: grid;
  grid-template-columns: 38px 50px 40px 1fr 1fr 52px;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--fc-line);
  font-size: 12px;
  color: var(--fc-fg);
}

.pf-r-tr > span:first-child { color: var(--fc-muted); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; }
.pf-r-tr .side { color: var(--fc-bull); font-size: 11px; font-weight: 500; }
.pf-r-tr b { text-align: right; font-weight: 500; }

.pf-r-tr.is-head {
  padding: 6px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-r-tr.is-head > span:first-child { font-family: inherit; font-size: inherit; }

/* —— News —— */
.pf-n-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
}

.pf-n-list {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pf-n-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 54px;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--fc-line);
}

.pf-n-row.is-on {
  background: var(--fc-hover);
  box-shadow: inset 2px 0 0 var(--fc-accent);
}

.pf-n-time {
  padding-top: 1px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-n-tags {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pf-n-tags span,
.pf-n-detail-meta .cat {
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--fc-border);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  line-height: 16px;
  color: var(--fc-fg);
}

.pf-n-tags span.cat,
.pf-n-detail-meta .cat {
  border: none;
  padding: 0;
  margin-right: 3px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-n-title {
  margin: 4px 0 2px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fc-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-n-src {
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-n-jev {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-top: 1px;
  --jc: var(--fc-muted);
}

.pf-n-jev[data-l="hi"] { --jc: var(--fc-ema); }
.pf-n-jev[data-l="md"] { --jc: var(--fc-accent); }

.pf-n-jev b {
  font-size: 15px;
  font-weight: 500;
  color: var(--jc);
}

.pf-n-jev i {
  position: relative;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--fc-line);
  overflow: hidden;
}

.pf-n-jev i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--jc);
}

.pf-n-detail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-left: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  overflow: hidden;
}

.pf-n-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-n-detail-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--fc-strong);
}

.pf-n-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-bg);
}

.pf-n-score-num {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-n-score-num b {
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--fc-ema);
}

.pf-n-score-num span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--fc-muted);
}

.pf-n-score-num em { font-style: normal; color: var(--fc-strong); }

.pf-n-score-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-n-score-bars div {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-n-score-bars i {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--fc-line);
  overflow: hidden;
}

.pf-n-score-bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: color-mix(in srgb, var(--fc-ema) 80%, transparent);
}

.pf-n-react { margin-top: -6px; }

.pf-n-react > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 62px 52px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fc-line);
  font-size: 12px;
  color: var(--fc-fg);
}

.pf-n-react b { font-weight: 600; color: var(--fc-strong); }
.pf-n-react .pf-ui-svg { height: 18px; }
.pf-n-react span { text-align: right; }
.pf-n-react em { font-style: normal; font-size: 11px; text-align: right; }

.pf-n-sum {
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}

.pf-n-sum li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fc-fg);
}

.pf-n-sum li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fc-muted);
}

/* —— Signals —— */
.pf-s-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pf-s-stats b { font-size: 18px; }
.pf-s-stats small { font-size: 12px; color: var(--fc-muted); margin-left: 1px; }

.pf-s-table {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pf-s-row {
  display: grid;
  grid-template-columns: 76px 58px 100px minmax(0, 1.5fr) minmax(0, 1fr) 84px 70px 130px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fc-line);
  font-size: 12.5px;
  color: var(--fc-fg);
  white-space: nowrap;
}

.pf-s-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.pf-s-row.is-head {
  padding-top: 8px;
  padding-bottom: 8px;
  background: var(--fc-panel-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-s-row.is-new {
  background: color-mix(in srgb, var(--fc-bull) 7%, transparent);
  box-shadow: inset 2px 0 0 var(--fc-bull);
}

.pf-s-row .t { font-size: 11px; color: var(--fc-muted); }
.pf-s-row b { font-weight: 600; color: var(--fc-strong); }
.pf-s-row .src { color: var(--fc-muted); }
.pf-s-row .px,
.pf-s-row .chg { text-align: right; }
.pf-s-row .chg { font-size: 11.5px; }

.pf-s-side {
  display: inline-flex;
  justify-self: start;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fc-muted);
  background: var(--fc-hover);
}

.pf-s-side[data-s="long"] { color: var(--fc-bull); background: color-mix(in srgb, var(--fc-bull) 14%, transparent); }
.pf-s-side[data-s="short"] { color: var(--fc-bear); background: color-mix(in srgb, var(--fc-bear) 14%, transparent); }

.pf-s-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fc-muted);
  --rc: var(--fc-muted);
}

.pf-s-route i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc);
}

.pf-s-route[data-r="ok"] { --rc: var(--fc-bull); color: var(--fc-fg); }
.pf-s-route[data-r="paper"] { --rc: var(--fc-accent); }
.pf-s-route[data-r="pend"] { --rc: var(--fc-ema); color: var(--fc-ema); }
.pf-s-route[data-r="skip"] { --rc: var(--fc-bear); }
.pf-s-route[data-r="muted"] { --rc: color-mix(in srgb, var(--fc-muted) 50%, transparent); }

@media (max-width: 900px) {
  .pf-feat {
    padding: 4.5rem 0;
  }

  .pf-feat-header,
  .pf-feat-media {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pf-feat-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 2.5rem;
  }

  .pf-feat-header h2 {
    max-width: none;
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .pf-feat-frame {
    height: 26rem;
    min-height: 26rem;
  }

  .pf-ui-bar > .pf-ui-chip,
  .pf-ui-bar > .pf-ui-btn,
  .pf-ui-bar > .pf-ui-status,
  .pf-ui-venue,
  .pf-f-legend,
  .pf-ui-ohlc span {
    display: none;
  }

  .pf-v-hud {
    left: 12px;
    width: min(290px, calc(100% - 24px));
  }

  .pf-f-main,
  .pf-n-main,
  .pf-r-main {
    grid-template-columns: 1fr;
  }

  .pf-f-side,
  .pf-n-detail,
  .pf-r-trades,
  .pf-c-tree,
  .pf-c-rules {
    display: none;
  }

  .pf-c-main {
    grid-template-columns: 1fr;
  }

  .pf-d-kpi { grid-column: span 6; }
  .pf-d-chart { grid-column: span 12; min-height: 12rem; }
  .pf-d-watch,
  .pf-d-alerts { grid-column: span 6; }

  .pf-r-kpis,
  .pf-s-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pf-r-kpis > div:nth-child(n + 4),
  .pf-s-stats > div:nth-child(n + 4) {
    display: none;
  }

  .pf-s-row {
    grid-template-columns: 58px 90px minmax(0, 1fr) 80px;
  }

  .pf-s-row > .t,
  .pf-s-row > .src,
  .pf-s-row > .chg,
  .pf-s-row > .pf-s-route,
  .pf-s-row > .rt {
    display: none;
  }
}


/* —— Routing wizard (floating card over dim desk) —— */
.pf-feat-routing .pf-feat-header {
  padding-bottom: calc(var(--pf-feat-header-gap) - 2.5rem);
}

.pf-feat-routing .pf-feat-stage {
  position: relative;
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 0 var(--pf-side);
  box-sizing: border-box;
  min-height: clamp(26rem, 48vw, 36rem);
  height: clamp(26rem, 48vw, 36rem);
  display: flex;
  align-items: center;
  justify-content: center;
  /* slight lift so desk reads below the card */
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  font-family: var(--alt-font-sans);
}

.pf-feat-routing .pf-feat-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, transparent 20%, var(--alt-bg, #070a0d) 78%),
    linear-gradient(to top, var(--alt-bg, #070a0d) 0%, transparent 28%),
    linear-gradient(to bottom, var(--alt-bg, #070a0d) 0%, transparent 18%);
}

html[data-theme="light"] .pf-feat-routing .pf-feat-stage::after {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, transparent 20%, var(--alt-bg, #eef2f7) 78%),
    linear-gradient(to top, var(--alt-bg, #eef2f7) 0%, transparent 28%),
    linear-gradient(to bottom, var(--alt-bg, #eef2f7) 0%, transparent 18%);
}

.pf-fw-desk {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  top: auto;
  height: 74%;
  z-index: 0;
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid var(--fc-border);
  border-bottom: none;
  background: var(--fc-bg);
  opacity: 0.5;
  filter: blur(0.6px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pf-fw-desk-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-panel);
  color: var(--fc-muted);
  font-size: 0.68rem;
}

.pf-fw-desk-chrome .dots {
  display: inline-flex;
  gap: 0.28rem;
}

.pf-fw-desk-chrome .dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 55%, transparent);
}

.pf-fw-desk-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pf-fw-float {
  position: relative;
  z-index: 3;
  width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fc-bg);
  border: 1px solid color-mix(in srgb, var(--fc-border) 70%, var(--fc-strong));
  color: var(--fc-fg);
  font-size: 12px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 5%, transparent) inset,
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .pf-fw-float {
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 80%, transparent) inset,
    0 20px 48px rgba(16, 22, 31, 0.14),
    0 2px 8px rgba(16, 22, 31, 0.06);
}

.pf-fw-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  height: 38px;
  box-sizing: border-box;
  padding: 0 14px;
  background: var(--fc-panel-2);
  color: var(--fc-fg);
  font-size: 12px;
  font-weight: 500;
}

.pf-fw-chrome .dots {
  display: inline-flex;
  gap: 0.28rem;
}

.pf-fw-chrome .dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 55%, transparent);
}

.pf-fw-chrome .dots i:nth-child(1) { background: #ff5f57; }
.pf-fw-chrome .dots i:nth-child(2) { background: #febc2e; }
.pf-fw-chrome .dots i:nth-child(3) { background: #28c840; }

.pf-fw-chrome-sig {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 450;
  color: var(--fc-muted);
}

.pf-fw-progress {
  flex: 0 0 auto;
  height: 2px;
  background: var(--fc-border);
}

.pf-fw-progress i { border-radius: 0; background: linear-gradient(90deg, var(--fc-bull), var(--fc-accent)); }

.pf-fw-card {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  background: var(--fc-bg);
}

.pf-fw-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 12px 14px;
  border-right: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  min-height: 0;
}

.pf-fw-rail .pf-feat-kicker { margin: 0 0 0 6px; }

.pf-fw-steps {
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-fw-steps::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--fc-border);
}

.pf-fw-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 8px;
  color: var(--fc-muted);
}

.pf-fw-step.is-on {
  background: var(--fc-hover);
  box-shadow: 0 0 0 1px var(--fc-border) inset;
  color: var(--fc-strong);
}

.pf-fw-step.is-done { color: var(--fc-strong); }

.pf-fw-num {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--fc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fc-muted);
  background: var(--fc-bg);
  flex: 0 0 auto;
}

.pf-fw-step.is-on .pf-fw-num {
  color: #0c0c0c;
  border-color: var(--fc-strong);
  background: var(--fc-strong);
}

.pf-fw-step.is-done .pf-fw-num {
  color: var(--fc-bull);
  border-color: color-mix(in srgb, var(--fc-bull) 45%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-bull) 14%, var(--fc-bg));
}

.pf-fw-step-title {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: inherit;
}

.pf-fw-step-sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-fw-exec {
  margin-top: auto;
  padding: 10px 6px 0;
  border-top: 1px solid var(--fc-line);
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-fw-exec div {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-fw-exec div i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-bull);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-bull) 22%, transparent);
}

.pf-fw-exec span {
  display: block;
  padding-left: 13px;
  line-height: 1.6;
}

.pf-fw-exec span:first-of-type { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; }

.pf-fw-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 16px;
}

.pf-fw-panel-head .pf-fw-panel-title {
  margin: 2px 0 4px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fc-strong);
}

.pf-fw-panel-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fc-muted);
  max-width: 44ch;
}

.pf-fw-venues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pf-fw-venue {
  position: relative;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
}

.pf-fw-venue.is-on {
  border-color: color-mix(in srgb, var(--fc-strong) 40%, var(--fc-border));
  background: var(--fc-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc-strong) 14%, transparent) inset;
}

.pf-fw-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0c0c0c;
  background: #f3f3f3;
}

.pf-fw-logo[data-v="bn"] { background: #f0b90b; }
.pf-fw-logo[data-v="by"] { color: #f7a600; background: #17181e; box-shadow: 0 0 0 1px #2a2b33 inset; }

.pf-fw-venue-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-strong);
  letter-spacing: -0.01em;
}

.pf-fw-venue-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-fw-venue-badge {
  position: absolute;
  top: 12px;
  right: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fc-bull) 35%, var(--fc-border));
  color: var(--fc-bull);
  background: color-mix(in srgb, var(--fc-bull) 10%, var(--fc-bg));
}

.pf-fw-preview {
  padding: 10px 14px 6px;
  border-radius: 10px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
}

.pf-fw-preview .pf-feat-kicker { margin-bottom: 4px; }

.pf-fw-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--fc-line);
  font-size: 12px;
  color: var(--fc-muted);
}

.pf-fw-kv b {
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-fw-mode {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--fc-border);
  background: var(--fc-bg);
}

.pf-fw-mode i {
  padding: 1px 8px;
  border-radius: 4px;
  font-style: normal;
  font-size: 11px;
  color: var(--fc-muted);
}

.pf-fw-mode i.is-on {
  color: var(--fc-strong);
  background: var(--fc-hover);
}

.pf-fw-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.pf-fw-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-fw-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-bull);
}

.pf-fw-cta {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 7px 14px;
  border-radius: 8px;
  color: #0c0c0c;
  background: #f3f3f3;
}

html[data-theme="light"] .pf-fw-cta,
html[data-theme="light"] .pf-ui-btn.is-primary {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

html[data-theme="light"] .pf-fw-step.is-on .pf-fw-num { color: #fff; }

@media (max-width: 900px) {
  .pf-feat-routing .pf-feat-stage {
    height: auto;
    min-height: 24rem;
    padding-bottom: 1rem;
  }

  .pf-fw-desk {
    left: 2%;
    right: 2%;
    bottom: 0;
    top: auto;
    height: 58%;
    opacity: 0.28;
  }

  .pf-fw-float {
    width: min(100%, 28rem);
  }

  .pf-fw-card {
    grid-template-columns: 1fr;
  }

  .pf-fw-rail {
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }

  .pf-fw-rail .pf-feat-kicker {
    display: none;
  }

  .pf-fw-steps {
    flex-direction: row;
    width: 100%;
    gap: 0.2rem;
  }

  .pf-fw-step {
    flex: 1;
    min-width: 0;
    padding: 0.25rem;
  }

  .pf-fw-step-sub {
    display: none;
  }

  .pf-fw-venues {
    grid-template-columns: 1fr;
  }

  .pf-fw-steps::before,
  .pf-fw-exec,
  .pf-fw-preview,
  .pf-fw-chrome-sig {
    display: none;
  }

  .pf-fw-rail {
    border-right: none;
    border-bottom: 1px solid var(--fc-border);
  }
}


/* —— Community marketplace (Netflix-style library) —— */
.pf-fm-body {
  gap: 12px;
  padding: 12px 18px 0;
  font-size: 12px;
  overflow: hidden;
}

.pf-fm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0 0.15rem;
}

.pf-fm-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.pf-fm-nav-links span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--fc-muted);
}

.pf-fm-nav-links em {
  font-style: normal;
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--fc-hover);
}

.pf-fm-nav-links span.is-on {
  color: var(--fc-strong);
  background: var(--fc-panel);
  border: 1px solid var(--fc-border);
}

.pf-fm-search {
  width: 260px;
}

.pf-fm-billboard {
  position: relative;
  flex: 0 0 auto;
  min-height: 12.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fc-border);
  background: #101010;
}

.pf-fm-billboard-art {
  position: absolute;
  inset: 0;
  color: color-mix(in srgb, var(--fc-bull) 70%, #7eb8c9);
  background:
    radial-gradient(ellipse 70% 90% at 78% 40%, color-mix(in srgb, var(--fc-bull) 26%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 70% at 92% 85%, color-mix(in srgb, #7eb8c9 18%, transparent), transparent 55%),
    linear-gradient(120deg, #0c0c0c 0%, #151515 48%, #0f1214 100%);
}

.pf-fm-billboard-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.96) 0%, rgba(8,8,8,0.78) 34%, rgba(8,8,8,0.2) 62%, transparent 80%),
    linear-gradient(0deg, rgba(8,8,8,0.75) 0%, transparent 42%);
  pointer-events: none;
}

html[data-theme="light"] .pf-fm-billboard {
  background: #eef2f7;
}

html[data-theme="light"] .pf-fm-billboard-art {
  background:
    radial-gradient(ellipse 70% 90% at 78% 40%, color-mix(in srgb, var(--fc-bull) 18%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 70% at 92% 85%, color-mix(in srgb, #3d8fa3 14%, transparent), transparent 55%),
    linear-gradient(120deg, #e8edf3 0%, #f4f6f9 50%, #e3e9f0 100%);
}

html[data-theme="light"] .pf-fm-billboard-shade {
  background:
    linear-gradient(90deg, rgba(244,246,249,0.97) 0%, rgba(244,246,249,0.8) 34%, rgba(244,246,249,0.2) 62%, transparent 80%),
    linear-gradient(0deg, rgba(244,246,249,0.7) 0%, transparent 42%);
}

.pf-fm-billboard-copy {
  position: relative;
  z-index: 1;
  max-width: 29rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 24px 18px;
}

.pf-fm-creator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fc-fg);
}

.pf-fm-creator em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--fc-accent);
  background: color-mix(in srgb, var(--fc-accent) 14%, transparent);
}

.pf-fm-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 4%;
  width: min(44%, 30rem);
  transform: translateY(-50%) perspective(1200px) rotateY(-9deg) rotateX(2deg);
  transform-origin: right center;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #fff 10%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-bg) 92%, transparent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.pf-fm-preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-bottom: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
  font-size: 10.5px;
  color: var(--fc-muted);
}

.pf-fm-preview-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fc-muted) 45%, transparent);
}

.pf-fm-preview-bar span { margin-left: 6px; }

.pf-fm-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 10px;
}

.pf-fm-pv-chart {
  grid-column: span 2;
  grid-row: span 2;
  position: relative;
  min-height: 8rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
}

.pf-fm-pv-chart .pf-ui-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 72%;
}

.pf-fm-pv-chart polyline { fill: none; stroke: var(--fc-bull); stroke-width: 1.5; }
.pf-fm-pv-chart .sess { fill: var(--fc-accent); opacity: 0.1; }
.pf-fm-pv-chart .or { fill: none; stroke: var(--fc-accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; }

.pf-fm-pv-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fc-fg);
}

.pf-fm-pv-tile {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel-2);
}

.pf-fm-pv-tile.is-wide { grid-column: span 3; display: flex; align-items: baseline; gap: 8px; }

.pf-fm-pv-tile span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.pf-fm-pv-tile b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fc-strong);
}

.pf-fm-pv-tile.is-wide b { margin: 0; }
.pf-fm-pv-tile em { font-style: normal; font-size: 11px; color: var(--fc-muted); }

html[data-theme="light"] .pf-fm-preview { box-shadow: 0 24px 48px rgba(16, 22, 31, 0.16); }

.pf-fm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pf-fm-tags span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.38rem;
  border-radius: 0.25rem;
  border: 1px solid var(--fc-border);
  color: var(--fc-muted);
  background: color-mix(in srgb, var(--fc-bg) 55%, transparent);
}

.pf-fm-tags span.is-accent {
  color: var(--fc-bull);
  border-color: color-mix(in srgb, var(--fc-bull) 40%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-bull) 12%, transparent);
}

.pf-fm-billboard-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--fc-strong);
}

.pf-fm-billboard-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fc-muted);
  max-width: 34ch;
}

.pf-fm-billboard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-fm-billboard-meta .is-match {
  color: var(--fc-bull);
  font-weight: 600;
}

.pf-fm-billboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.pf-fm-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid var(--fc-border);
  color: var(--fc-strong);
  background: color-mix(in srgb, var(--fc-strong) 7%, var(--fc-bg));
}

.pf-fm-cta.is-primary {
  color: #0c0c0c;
  background: #f3f3f3;
  border-color: #f3f3f3;
}

html[data-theme="light"] .pf-fm-cta.is-primary {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.pf-fm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0 0.1rem;
}

.pf-fm-chips span {
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  color: var(--fc-muted);
  background: var(--fc-panel);
}

.pf-fm-chips span.is-on {
  color: var(--fc-strong);
  background: color-mix(in srgb, var(--fc-strong) 10%, var(--fc-bg));
  border-color: color-mix(in srgb, var(--fc-strong) 25%, var(--fc-border));
}

.pf-fm-row {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.pf-fm-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.1rem;
}

.pf-fm-row-label {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--fc-strong);
}

.pf-fm-row-more {
  font-size: 11.5px;
  color: var(--fc-muted);
}

.pf-fm-rail {
  position: relative;
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 2px 2px 6px;
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
}

.pf-fm-rail-wide {
  gap: 0.55rem;
}

.pf-fm-poster {
  position: relative;
  flex: 0 0 auto;
  width: 8rem;
  min-width: 0;
}

.pf-fm-poster.is-ranked {
  width: 11rem;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2px;
  align-items: end;
}

.pf-fm-rank {
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.6px color-mix(in srgb, var(--fc-muted) 75%, var(--fc-strong));
  text-stroke: 1.6px color-mix(in srgb, var(--fc-muted) 75%, var(--fc-strong));
  transform: translateY(0.15rem);
  user-select: none;
}

.pf-fm-poster-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #fff 7%, var(--fc-border));
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.pf-fm-art-svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 22%;
  height: 36%;
  width: 100%;
  overflow: visible;
}

.pf-fm-art-svg path {
  fill: #fff;
  opacity: 0.07;
}

.pf-fm-art-svg polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

html[data-theme="light"] .pf-fm-art-svg path { fill: #10161f; }
html[data-theme="light"] .pf-fm-art-svg polyline { stroke: #10161f; opacity: 0.45; }

.pf-fm-poster.is-on .pf-fm-poster-art {
  outline: 1.5px solid color-mix(in srgb, #fff 70%, transparent);
  outline-offset: 1px;
}

.pf-fm-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.82) 100%);
  pointer-events: none;
}

html[data-theme="light"] .pf-fm-poster-art::after {
  background: linear-gradient(180deg, transparent 45%, rgba(16,22,31,0.55) 100%);
}

.pf-fm-poster-caption {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 1;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.pf-fm-poster-caption small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 450;
  opacity: 0.65;
}

.pf-fm-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}

.pf-fm-pill.is-free {
  color: var(--fc-bull);
  background: color-mix(in srgb, var(--fc-bull) 18%, rgba(0,0,0,0.55));
  border-color: color-mix(in srgb, var(--fc-bull) 35%, transparent);
}

.pf-fm-pill.is-new {
  color: #fff;
  background: color-mix(in srgb, #7eb8c9 55%, #111);
  border-color: color-mix(in srgb, #7eb8c9 40%, transparent);
}

.pf-fm-poster[data-tone="a"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 30% 25%, #3d6b66, transparent 55%),
    linear-gradient(145deg, #1a2a2a, #0e1212);
}
.pf-fm-poster[data-tone="b"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 70% 30%, #4a5d78, transparent 55%),
    linear-gradient(145deg, #1a2030, #0e1016);
}
.pf-fm-poster[data-tone="c"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 40% 70%, #6b4a3d, transparent 55%),
    linear-gradient(145deg, #2a1e1a, #120e0c);
}
.pf-fm-poster[data-tone="d"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 60% 20%, #3d4a6b, transparent 55%),
    linear-gradient(145deg, #1a1e2a, #0c0e14);
}
.pf-fm-poster[data-tone="e"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 25% 60%, #4a6b3d, transparent 55%),
    linear-gradient(145deg, #1a2a1a, #0c120c);
}
.pf-fm-poster[data-tone="f"] .pf-fm-poster-art {
  background:
    radial-gradient(circle at 75% 65%, #6b3d5a, transparent 55%),
    linear-gradient(145deg, #2a1a24, #120c10);
}

html[data-theme="light"] .pf-fm-poster-art {
  box-shadow: 0 6px 14px rgba(16, 22, 31, 0.1);
}

html[data-theme="light"] .pf-fm-poster.is-on .pf-fm-poster-art {
  outline-color: color-mix(in srgb, var(--fc-strong) 45%, transparent);
}

html[data-theme="light"] .pf-fm-poster[data-tone="a"] .pf-fm-poster-art {
  background: radial-gradient(circle at 30% 25%, #9ec9c4, transparent 55%), linear-gradient(145deg, #dce8e6, #eef3f2);
}
html[data-theme="light"] .pf-fm-poster[data-tone="b"] .pf-fm-poster-art {
  background: radial-gradient(circle at 70% 30%, #a8b6cc, transparent 55%), linear-gradient(145deg, #e0e5ee, #f1f3f7);
}
html[data-theme="light"] .pf-fm-poster[data-tone="c"] .pf-fm-poster-art {
  background: radial-gradient(circle at 40% 70%, #c9b09e, transparent 55%), linear-gradient(145deg, #eee4dc, #f7f2ee);
}
html[data-theme="light"] .pf-fm-poster[data-tone="d"] .pf-fm-poster-art {
  background: radial-gradient(circle at 60% 20%, #a8b0c9, transparent 55%), linear-gradient(145deg, #e0e3ee, #f1f2f7);
}
html[data-theme="light"] .pf-fm-poster[data-tone="e"] .pf-fm-poster-art {
  background: radial-gradient(circle at 25% 60%, #b0c9a8, transparent 55%), linear-gradient(145deg, #e3eee0, #f2f7f1);
}
html[data-theme="light"] .pf-fm-poster[data-tone="f"] .pf-fm-poster-art {
  background: radial-gradient(circle at 75% 65%, #c9a8b8, transparent 55%), linear-gradient(145deg, #eee0e7, #f7f1f4);
}

@media (max-width: 900px) {
  .pf-fm-billboard {
    min-height: 12.5rem;
  }

  .pf-fm-preview,
  .pf-fm-search {
    display: none;
  }

  .pf-fm-poster {
    width: 6.5rem;
  }

  .pf-fm-poster.is-ranked {
    width: 8.6rem;
    grid-template-columns: 2rem 1fr;
  }

  .pf-fm-rank {
    font-size: 3.2rem;
  }
}


/* —— Platform pricing (x.ai-style cards) —— */
.pf-pricing,
.pf-faq {
  width: 100%;
  padding: var(--pf-feat-pad-y) 0;
  box-sizing: border-box;
}

.pf-pricing {
  border-top: 1px solid var(--pf-keyline);
}

.pf-faq {
  border-top: 1px solid var(--pf-keyline);
  padding-bottom: calc(var(--pf-feat-pad-y) * 1.1);
}

.pf-pricing-all {
  color: var(--fc-strong);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fc-strong) 35%, transparent);
}

.pf-pricing-all:hover {
  border-bottom-color: var(--fc-strong);
}

.pf-pricing-controls {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto 1.75rem;
  padding: 0 var(--pf-side);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.pf-pricing-toggle {
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel);
  gap: 0.15rem;
}

.pf-pricing-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.pf-pricing-toggle button em {
  font-style: normal;
  font-size: 0.65rem;
  opacity: 0.75;
  margin-left: 0.25rem;
}

.pf-pricing-toggle button.is-on {
  color: var(--fc-bg);
  background: var(--fc-strong);
}

html[data-theme="light"] .pf-pricing-toggle button.is-on {
  color: #fff;
}

.pf-pricing-grid {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 0 var(--pf-side);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.pf-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: 0.85rem;
  border: 1px solid var(--fc-border);
  background: var(--fc-panel);
  color: var(--fc-fg);
  font-family: var(--alt-font-sans);
}

.pf-price-card.is-featured {
  border-color: color-mix(in srgb, var(--fc-strong) 28%, var(--fc-border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fc-strong) 8%, transparent) inset,
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.pf-price-badge {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  color: var(--fc-bull);
  border: 1px solid color-mix(in srgb, var(--fc-bull) 35%, var(--fc-border));
  background: color-mix(in srgb, var(--fc-bull) 10%, var(--fc-bg));
}

.pf-price-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fc-strong);
}

.pf-price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.pf-price-num {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fc-strong);
  font-variant-numeric: tabular-nums;
}

.pf-price-per {
  font-size: 0.78rem;
  color: var(--fc-muted);
}

.pf-price-blurb {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fc-muted);
  min-height: 4.2em;
}

.pf-price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.62rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--fc-border);
  color: var(--fc-strong);
  background: color-mix(in srgb, var(--fc-strong) 6%, var(--fc-bg));
}

.pf-price-cta.is-primary {
  color: #0c0c0c;
  background: #f3f3f3;
  border-color: #f3f3f3;
}

html[data-theme="light"] .pf-price-cta.is-primary {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.pf-price-features {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--fc-border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pf-price-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--fc-muted);
}

.pf-price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 1.5px solid var(--fc-muted);
  border-bottom: 1.5px solid var(--fc-muted);
  transform: rotate(-45deg);
  opacity: 0.85;
}

.pf-pricing-note {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 1.35rem auto 0;
  padding: 0 var(--pf-side);
  box-sizing: border-box;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--fc-muted);
  text-align: center;
}

/* —— Platform FAQ —— */
.pf-faq-list {
  width: min(100%, var(--pf-max));
  max-width: var(--pf-max);
  margin: 0 auto;
  padding: 0 calc(var(--pf-side) + var(--pf-inset));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pf-faq-item {
  border-bottom: 1px solid var(--fc-border);
}

.pf-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.1rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fc-strong);
  font-family: var(--alt-font-sans);
}

.pf-faq-item summary::-webkit-details-marker {
  display: none;
}

.pf-faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--fc-muted);
  line-height: 1;
}

.pf-faq-item[open] summary::after {
  content: "−";
}

.pf-faq-a {
  padding: 0 1.5rem 1.15rem 0.1rem;
}

.pf-faq-a p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fc-muted);
  max-width: 40rem;
}

.pf-faq-a a {
  color: var(--fc-strong);
}

@media (max-width: 980px) {
  .pf-pricing-grid {
    grid-template-columns: 1fr;
    padding-left: var(--pf-side);
    padding-right: var(--pf-side);
  }

  .pf-price-blurb {
    min-height: 0;
  }

  .pf-pricing-controls,
  .pf-pricing-note,
  .pf-faq-list {
    padding-left: var(--pf-side);
    padding-right: var(--pf-side);
  }
}
