/* Feature pages (/changelog-widget, /feature-voting, /public-roadmap, /mcp).
   Loaded after landing.css and pages.css; only their tokens. The product
   visuals are the home page's own components (.wd widget demo, .mw and .mail
   mocks), so nothing here restyles them beyond size and placement. */

/* ── Product visual ───────────────────────────────────────────────────── */
.fx-demo {
  position: relative; isolation: isolate;
  padding: 48px 48px 40px; border-radius: 28px;
  background: linear-gradient(180deg, #f1efff 0%, #f4f5fa 75%);
  border: 1px solid rgba(6, 27, 49, .06);
}
.fx-demo::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, rgba(6, 27, 49, .12) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 20%, transparent 80%);
}
.fx-chip {
  position: absolute; top: 18px; left: 22px;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.fx-demo .wgrid { gap: 40px; }
.fx-cap { margin-bottom: 18px; font-size: 15.5px; color: var(--text-2); }

/* ── Problem / solution cards ─────────────────────────────────────────── */
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-prob { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; }
.fx-prob .fx-n { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.fx-prob h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.fx-prob p { font-size: 15.5px; color: var(--text-2); }

.fx-sol { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding: 26px; border-radius: 20px; }
.fx-ic {
  grid-row: span 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.fx-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-sol h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18.5px; letter-spacing: -0.02em; line-height: 1.3; }
.fx-sol p { font-size: 15.5px; color: var(--text-2); }
.fx-sol code, .pg-sub code, .fx-prob code { font: 400 .9em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: #f0f1f6; color: var(--text); }

/* A wide row: text on one side, one of the home page's static mocks on the other. */
.fx-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 20px; padding: 36px 40px; border-radius: 24px; }
.fx-spot h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; }
.fx-spot p { margin-top: 10px; font-size: 16px; color: var(--text-2); }
.fx-spot .pg-list { margin-top: 14px; }
.fx-vis { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px; padding: 34px 20px 24px; border-radius: 20px; background: linear-gradient(180deg, #f1efff, #f4f5fa); }
.fx-vis .fx-chip { top: 10px; left: 12px; }
.fx-vis .mw, .fx-vis .mail-wrap { width: 340px; }
.fx-vis .mail-wrap { align-items: center; }
/* The home page fades unpicked reactions to .5; as a still image that's too faint to read. */
.fx-vis .mw-react span:not(.is-picked) { opacity: 1; color: var(--muted); }

/* ── Mini pricing ─────────────────────────────────────────────────────── */
.fx-plan { padding: 26px 28px; border-radius: 20px; }
.fx-plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 20px; letter-spacing: -0.02em; }
.fx-plan h3 span { font: 500 15px/1 var(--mono); color: var(--text-2); }
.fx-plan--pro { background: linear-gradient(180deg, #fff, #f7f5ff); box-shadow: 0 0 0 1px rgba(83, 58, 253, .18), 0 24px 48px -36px rgba(50, 50, 93, .4); }
.fx-more { margin-top: 18px; font-size: 15.5px; }
.fx-more a, .fx-link { font-weight: 600; color: var(--accent-ink); }
.fx-more a:hover, .fx-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── MCP: a static chat, the look of the home page's "Publish from Claude" card ── */
.fx-chat { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.5; }
.fx-me { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #0f1729; color: #fff; }
.fx-ai { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--text); border: 1px solid rgba(6, 27, 49, .07); box-shadow: 0 18px 36px -28px rgba(50, 50, 93, .45); }
.fx-ai small { display: block; margin-bottom: 4px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--accent-ink); }
.fx-ai b { font-weight: 600; }

.fx-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.fx-prompt { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 18px; }
.fx-prompt q { quotes: '“' '”'; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--text); }
.fx-prompt span { font-size: 14.5px; color: var(--text-2); }
.fx-prompt code { font: 400 13px/1 var(--mono); color: var(--accent-ink); }
.fx-tools code { font: 500 14px/1.4 var(--mono); color: var(--text); white-space: nowrap; }
.fx-url { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 20px; }
.fx-url code { overflow-wrap: anywhere; }
.fx-url code { padding: 10px 14px; border-radius: 12px; background: #0f1729; color: #fff; font: 400 14.5px/1.4 var(--mono); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pg-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .fx-spot { grid-template-columns: minmax(0, 1fr); padding: 28px; }
}
@media (max-width: 720px) {
  .fx-demo { padding: 16px 16px 24px; border-radius: 22px; }
  .fx-demo > .fx-chip { position: static; display: inline-block; margin-bottom: 14px; }
  .fx-demo .wtabs { margin: 0 -16px; }
  .fx-spot { padding: 22px; gap: 24px; }
  .fx-vis { padding: 34px 12px 18px; }
  .fx-prompts { grid-template-columns: minmax(0, 1fr); }
  .fx-sol { padding: 22px; }
}
