/* ========================================================================
   CFDIX — Landing pública. Estética de consola de operaciones.
   Depende de tokens.css; no carga ningún recurso externo.
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--fx-navy); }

body.fx-public {
  margin: 0;
  min-width: 320px;
  background: #071426;
  color: #f7fafc;
  font-family: var(--fx-font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.fx-public a { color: inherit; }
.fx-public img { display: block; max-width: 100%; }
.fx-public h1, .fx-public h2, .fx-public h3, .fx-public p { margin-top: 0; }
.fx-public h1, .fx-public h2, .fx-public h3 { font-family: var(--fx-font-display); line-height: 1.08; text-wrap: balance; }
.fx-public p { text-wrap: pretty; }
.fx-public code { font-family: var(--fx-font-mono); }

.fx-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scrollbars ─────────────────────────────────────── */

/*
 * La landing no carga base.css, así que las reglas viven aquí. Los tokens sí
 * llegan de tokens.css: el documento declara data-theme="dark", de modo que
 * ya resuelven al pulgar claro que necesita este fondo.
 */
html { scrollbar-gutter: stable; }

.fx-public *,
.fx-public *::before,
.fx-public *::after,
.fx-public {
  scrollbar-width: thin;
  scrollbar-color: var(--fx-scrollbar-thumb) var(--fx-scrollbar-track);
}

.fx-public ::-webkit-scrollbar,
.fx-public::-webkit-scrollbar {
  width: var(--fx-scrollbar-size);
  height: var(--fx-scrollbar-size);
}

.fx-public ::-webkit-scrollbar-track,
.fx-public::-webkit-scrollbar-track { background: var(--fx-scrollbar-track); }

.fx-public ::-webkit-scrollbar-thumb,
.fx-public::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--fx-scrollbar-thumb);
  background-clip: padding-box;
}

.fx-public ::-webkit-scrollbar-thumb:hover,
.fx-public::-webkit-scrollbar-thumb:hover {
  background: rgb(0 207 255 / 55%);
  background-clip: padding-box;
}

.fx-public ::-webkit-scrollbar-corner { background: transparent; }

/* ── Volver arriba ──────────────────────────────────── */

/*
 * Nace oculto: public.js le pone .is-visible al pasar de media pantalla, así
 * que sin JavaScript no queda un botón que no lleva a ninguna parte.
 */
.fx-to-top {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(0 207 255 / 45%);
  background: rgb(7 20 38 / 92%);
  color: #64dfff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  backdrop-filter: blur(10px);
  transition:
    opacity var(--fx-motion-base) ease,
    transform var(--fx-motion-base) ease,
    visibility var(--fx-motion-base) ease,
    border-color var(--fx-motion-fast) ease,
    color var(--fx-motion-fast) ease;
}

.fx-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fx-to-top:hover {
  border-color: var(--fx-cyan);
  color: #fff;
}

.fx-to-top:focus-visible {
  outline: 3px solid var(--fx-green);
  outline-offset: 4px;
}

.fx-skip-link {
  position: fixed;
  z-index: 100;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  background: var(--fx-cyan);
  color: var(--fx-navy) !important;
  font-weight: 800;
  transform: translateY(-150%);
}
.fx-skip-link:focus { transform: translateY(0); }

.fx-public-shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }

/* ── Cabecera ───────────────────────────────────────── */

.fx-public-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgb(7 20 38 / 94%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(14px);
}
.fx-public-nav { min-height: 4.75rem; display: flex; align-items: center; gap: 2rem; }
.fx-public-brand { flex: 0 0 auto; }
.fx-public-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.fx-public-links a, .fx-text-link {
  color: #c3d0de;
  text-decoration: none;
  font-family: var(--fx-font-mono);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.fx-public-links a:hover, .fx-text-link:hover { color: #fff; }

.fx-public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.25rem;
  padding: .8rem 1.25rem;
  border: 1px solid var(--fx-cyan);
  background: var(--fx-cyan);
  color: var(--fx-navy) !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform var(--fx-motion-fast), background var(--fx-motion-fast);
}
.fx-public-button:hover { background: #65e3ff; transform: translateY(-2px); }
.fx-public-button--compact { min-height: 2.75rem; padding: .55rem 1rem; font-size: .9rem; }

.fx-public a:focus-visible, .fx-public summary:focus-visible {
  outline: 3px solid var(--fx-green);
  outline-offset: 4px;
}

/* ── Hero ───────────────────────────────────────────── */

.fx-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  /* Rejilla técnica: refuerza la lectura de «consola» sin pedir un asset. */
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
}
.fx-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: 5rem;
  width: 25rem;
  height: 1px;
  background: var(--fx-gradient);
  transform: rotate(-48deg);
  opacity: .65;
}
.fx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.fx-eyebrow, .fx-section-number { color: #9fb3c8; font-family: var(--fx-font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fx-eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.fx-eyebrow span { width: 2rem; height: 2px; background: var(--fx-cyan); }
.fx-hero h1 { max-width: 13ch; margin-bottom: 1.4rem; font-size: clamp(2.6rem, 4.6vw, 4.4rem); letter-spacing: -.05em; }
.fx-hero h1 em { color: var(--fx-green); font-style: normal; }
.fx-hero-lead { max-width: 40rem; margin-bottom: 2rem; color: #c3d0de; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.fx-hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.fx-trust-list { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: 2.25rem 0 0; padding: 1.15rem 0 0; border-top: 1px solid rgb(255 255 255 / 10%); list-style: none; }
.fx-trust-list li { color: #b6c4d4; font-family: var(--fx-font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.fx-trust-list li::before { content: "✓"; margin-right: .45rem; color: var(--fx-green); }

/* ── Consola de código ──────────────────────────────── */

.fx-console {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgb(0 207 255 / 30%);
  background: #06111f;
  box-shadow: 1.25rem 1.25rem 0 rgb(0 0 0 / 22%);
}
.fx-console__bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(255 255 255 / 3%);
  color: #9fb3c8;
  font-family: var(--fx-font-mono);
  font-size: .72rem;
}
.fx-console__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--fx-green); box-shadow: 0 0 0 .25rem rgb(51 255 119 / 12%); }
.fx-console__file { color: #d9e4ef; }
.fx-console__tag { margin-left: auto; padding: .1rem .45rem; border: 1px solid rgb(0 207 255 / 40%); color: #64dfff; }
.fx-console__split { height: 1px; background: rgb(255 255 255 / 9%); }
.fx-console__foot {
  margin: 0;
  padding: .8rem 1rem;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: #9fb3c8;
  font-size: .78rem;
}

.fx-code {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #d5e2f0;
  font-family: var(--fx-font-mono);
  font-size: .78rem;
  line-height: 1.75;
  tab-size: 2;
}
.fx-code--res { background: rgb(51 255 119 / 3%); }
.fx-code--sm { padding: .85rem; font-size: .72rem; line-height: 1.65; background: rgb(0 0 0 / 25%); border: 1px solid rgb(255 255 255 / 8%); }

/* Resaltado propio: sin librería, para no cargar recursos de terceros. */
.t-verb  { color: var(--fx-green); font-weight: 700; }
.t-path  { color: #fff; }
.t-key   { color: #64dfff; }
.t-str   { color: #a7f3c4; }
.t-bool  { color: #fbbf24; }
.t-mut   { color: #8fa5bc; }
.t-ok    { color: var(--fx-green); font-weight: 700; }
.t-state { color: #fbbf24; font-weight: 700; }

/* ── Secciones ──────────────────────────────────────── */

.fx-public-section { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.fx-definition { background: #0a192f; }
.fx-definition-grid { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; }
.fx-definition h2 { max-width: 24ch; margin-bottom: 1.4rem; font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.045em; }
.fx-definition-grid > div > p { max-width: 51rem; color: #c3d0de; font-size: 1.1rem; }
.fx-definition-grid strong { color: #fff; font-weight: 700; }

.fx-section-head { display: grid; grid-template-columns: 1.05fr .75fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.fx-section-head h2, .fx-capabilities h2, .fx-faq-grid h2, .fx-final-cta h2 { max-width: 16ch; margin-bottom: 0; font-size: clamp(1.9rem, 3.2vw, 3rem); letter-spacing: -.04em; }
.fx-section-head > p, .fx-capabilities-grid > div > p:last-child, .fx-faq-grid > div > p:last-child { color: #b6c4d4; }
.fx-section-head code { padding: .1rem .3rem; background: rgb(255 255 255 / 8%); font-size: .85em; }

/* ── Contrato ───────────────────────────────────────── */

.fx-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 12%); }
.fx-spec { min-width: 0; padding: 1.5rem 1.35rem; background: #071426; }
.fx-spec h3 { margin-bottom: 1.1rem; font-family: var(--fx-font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #64dfff; }
.fx-spec dl { margin: 0; }
.fx-spec dt { margin-top: .9rem; }
.fx-spec dt:first-child { margin-top: 0; }
.fx-spec dt code { color: #fff; font-size: .8rem; }
.fx-spec dt code.is-ok { color: var(--fx-green); }
.fx-spec dt code.is-warn { color: #fbbf24; }
.fx-spec dd { margin: .2rem 0 0; color: #b6c4d4; font-size: .88rem; line-height: 1.55; }
.fx-spec > p { margin: .9rem 0 0; color: #b6c4d4; font-size: .88rem; }
.fx-spec > p code { padding: .05rem .25rem; background: rgb(255 255 255 / 8%); font-size: .85em; }
.fx-tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.fx-tag-row li { padding: .15rem .5rem; border: 1px solid rgb(0 207 255 / 35%); color: #64dfff; font-family: var(--fx-font-mono); font-size: .7rem; }

/* ── Máquina de estados ─────────────────────────────── */

.fx-states { background: #0a192f; }
.fx-state-grid { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.fx-state {
  padding: .5rem .85rem;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 4%);
  color: #d5e2f0;
  font-family: var(--fx-font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}
.fx-state--entrada { border-color: rgb(100 223 255 / 45%); color: #8ce7ff; }
.fx-state--proceso { border-color: rgb(251 191 36 / 40%); color: #fcd34d; }
.fx-state--exito   { border-color: rgb(51 255 119 / 50%); background: rgb(51 255 119 / 8%); color: #7dffab; }
.fx-state--cierre  { border-color: rgb(251 113 133 / 40%); color: #fda4af; }

.fx-state-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.75rem 0 0; color: #b6c4d4; font-family: var(--fx-font-mono); font-size: .74rem; }
.fx-state-key { width: .7rem; height: .7rem; border: 1px solid currentcolor; }
.fx-state-key:not(:first-child) { margin-left: 1rem; }
.fx-state-key--entrada { color: #8ce7ff; }
.fx-state-key--proceso { color: #fcd34d; }
.fx-state-key--exito   { color: #7dffab; }
.fx-state-key--cierre  { color: #fda4af; }

/* ── Flujo ──────────────────────────────────────────── */

.fx-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / 16%); list-style: none; }
.fx-process-grid li { min-height: 15rem; padding: 1.5rem 1.3rem; border-right: 1px solid rgb(255 255 255 / 12%); }
.fx-process-grid li:last-child { border-right: 0; }
.fx-process-grid span { color: var(--fx-cyan); font-family: var(--fx-font-mono); font-size: .75rem; }
.fx-process-grid h3 { margin: 3.5rem 0 .8rem; font-size: 1.4rem; }
.fx-process-grid p { color: #b6c4d4; font-size: .92rem; }

/* ── Control ────────────────────────────────────────── */

.fx-capabilities { background: #e9eef3; color: #0a192f; }
.fx-capabilities .fx-section-number { color: #41566d; }
.fx-capabilities-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 7rem); }
.fx-capabilities-grid > div > p:last-child { max-width: 28rem; color: #41566d; }
.fx-capability-list { border-top: 1px solid rgb(10 25 47 / 22%); }
.fx-capability-list article { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid rgb(10 25 47 / 16%); }
.fx-capability-list article > span { color: #046c8a; font-size: 1.4rem; }
.fx-capability-list h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.fx-capability-list p { margin-bottom: 0; color: #41566d; }

/* ── Alcance honesto ────────────────────────────────── */

.fx-honesty { background: #08111f; }
.fx-honesty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.fx-honesty-card { padding-left: clamp(1.25rem, 3vw, 2.25rem); border-left: 3px solid var(--fx-green); }
.fx-honesty-card--no { border-left-color: #fb7185; }
.fx-honesty-card h2 { max-width: 20ch; margin: .6rem 0 1rem; font-size: clamp(1.7rem, 2.9vw, 2.6rem); }
.fx-honesty-card > p:last-child { margin-bottom: 0; color: #c3d0de; font-size: 1.02rem; }

/* ── Preguntas ──────────────────────────────────────── */

.fx-faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 7rem); }
.fx-faq-list { border-top: 1px solid rgb(255 255 255 / 15%); }
.fx-faq-list details { border-bottom: 1px solid rgb(255 255 255 / 14%); }
.fx-faq-list summary { display: flex; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; cursor: pointer; font-weight: 700; list-style: none; }
.fx-faq-list summary::-webkit-details-marker { display: none; }
.fx-faq-list summary span { color: var(--fx-cyan); font-size: 1.4rem; transition: transform var(--fx-motion-fast); }
.fx-faq-list details[open] summary span { transform: rotate(45deg); }
.fx-faq-list details p { max-width: 44rem; padding: 0 3rem 1.4rem 0; color: #b6c4d4; }

/* ── Cierre ─────────────────────────────────────────── */

.fx-final-cta { background: #0a192f; }
.fx-final-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; }
.fx-final-cta h2 { max-width: 18ch; }
.fx-final-cta .fx-public-button { flex: 0 0 auto; }

.fx-public-footer { padding-block: 3rem; background: #050d18; color: #a5b5c6; }
.fx-public-footer .fx-public-shell { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.fx-public-footer p { margin: 0; font-size: .82rem; }
.fx-public-footer p:last-child { text-align: right; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1080px) {
  .fx-hero-grid { grid-template-columns: 1fr; }
  .fx-hero-copy { max-width: 48rem; }
  .fx-spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .fx-public-links { display: none; }
  .fx-public-nav .fx-public-button { margin-left: auto; }
  .fx-definition-grid, .fx-section-head, .fx-capabilities-grid, .fx-faq-grid, .fx-honesty-grid { grid-template-columns: 1fr; gap: 2rem; }
  .fx-process-grid { grid-template-columns: repeat(2, 1fr); }
  .fx-process-grid li:nth-child(2) { border-right: 0; }
  .fx-process-grid li:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 12%); }
  .fx-final-cta__inner { align-items: flex-start; flex-direction: column; }
  .fx-public-footer .fx-public-shell { grid-template-columns: 1fr; }
  .fx-public-footer p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .fx-public-shell { width: min(100% - 2rem, 1180px); }
  .fx-public-brand img { width: 126px; height: auto; }
  .fx-public-button--compact { padding-inline: .8rem; font-size: .82rem; }
  .fx-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .fx-hero-actions { align-items: stretch; flex-direction: column; }
  .fx-hero-actions .fx-public-button { width: 100%; }
  .fx-trust-list { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .fx-spec-grid { grid-template-columns: 1fr; }
  .fx-process-grid { grid-template-columns: 1fr; }
  .fx-process-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
  .fx-process-grid h3 { margin-top: 2rem; }
  .fx-faq-list details p { padding-right: 0; }
  .fx-code { font-size: .72rem; }
  .fx-state-legend .fx-state-key:not(:first-child) { margin-left: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .fx-public-button, .fx-console, .fx-honesty-card, .fx-state, .fx-spec-grid, .fx-to-top { border: 2px solid ButtonText; }
  .fx-to-top { background: ButtonFace; color: ButtonText; }
}

/* ── Guía pública de desarrolladores ───────────────── */

.fx-developers-hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--fx-border);
  background:
    linear-gradient(135deg, rgb(0 207 255 / 8%), transparent 46%),
    var(--fx-surface);
}

.fx-developers-hero__grid,
.fx-developers-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.fx-developers h1 {
  max-width: 12ch;
  margin-bottom: var(--fx-sp-5);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  letter-spacing: -.055em;
}

.fx-developers h1 em { color: var(--fx-green); font-style: normal; }

.fx-developers-lead {
  max-width: 42rem;
  margin-bottom: var(--fx-sp-6);
  color: var(--fx-text-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.fx-developers-guardrail,
.fx-developers-demo,
.fx-developers-checklist {
  padding: var(--fx-sp-6);
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface-2);
  box-shadow: var(--fx-shadow-sm);
}

.fx-developers-guardrail { border-top: 3px solid var(--fx-cyan); }
.fx-developers-guardrail__label,
.fx-developers-demo__label {
  margin-bottom: var(--fx-sp-3);
  color: var(--fx-cyan-ink);
  font-family: var(--fx-font-mono);
  font-size: var(--fx-fs-caption);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fx-developers-guardrail ul,
.fx-developers-limits,
.fx-developers-checklist ol {
  display: grid;
  gap: var(--fx-sp-3);
  margin: 0;
  padding-left: 1.25rem;
  color: var(--fx-text-soft);
}

.fx-developers-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--fx-border);
}

.fx-developers-section--contrast { background: var(--fx-surface-2); }

.fx-developers-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-border-strong);
}

.fx-developers-flow-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--fx-surface);
}

.fx-developers-flow-card__number {
  margin-bottom: var(--fx-sp-6);
  color: var(--fx-cyan-ink);
  font-family: var(--fx-font-mono);
  font-size: var(--fx-fs-caption);
  font-weight: 800;
}

.fx-developers-flow-card h3,
.fx-developers-checklist h3,
.fx-developers-demo h3 {
  margin-bottom: var(--fx-sp-3);
  font-size: 1.35rem;
}

.fx-developers-flow-card > p:not(.fx-developers-flow-card__number) {
  color: var(--fx-text-soft);
}

.fx-developers-flow-card > code,
.fx-developers-endpoint code,
.fx-developers-code {
  font-family: var(--fx-font-mono);
}

.fx-developers-flow-card > code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--fx-sp-3);
  padding: .45rem .6rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-sunk);
  color: var(--fx-cyan-ink);
  font-size: var(--fx-fs-caption);
}

.fx-developers-flow-card__note {
  margin: var(--fx-sp-5) 0 0;
  font-size: var(--fx-fs-small);
}

.fx-developers-code {
  margin: var(--fx-sp-5) 0 var(--fx-sp-3);
  padding: var(--fx-sp-4);
  overflow-x: auto;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-sunk);
  color: var(--fx-text);
  font-size: var(--fx-fs-code);
  line-height: 1.7;
}

.fx-developers-copy {
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border: 1px solid var(--fx-border-action);
  background: transparent;
  color: var(--fx-cyan-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--fx-motion-fast), color var(--fx-motion-fast);
}

.fx-developers-copy:hover { background: var(--fx-cyan); color: var(--fx-navy); }
.fx-developers-copy:focus-visible { outline: 3px solid var(--fx-green); outline-offset: 4px; }

.fx-developers-limits li::marker { color: var(--fx-danger-ink); }
.fx-developers-checklist { border-top: 3px solid var(--fx-green); }
.fx-developers-checklist li::marker { color: var(--fx-green); font-weight: 800; }

.fx-developers-demo { border-top: 3px solid var(--fx-cyan); }
.fx-developers-demo p:not(.fx-developers-demo__label) { color: var(--fx-text-soft); }

.fx-developers-states { background: var(--fx-surface-2); }

.fx-developers-reference { background: var(--fx-surface); }
.fx-developers-reference-list { display: grid; gap: var(--fx-sp-4); }

.fx-developers-endpoint {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-surface-2);
}

.fx-developers-endpoint > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fx-sp-4);
}

.fx-developers-endpoint > header p { display: flex; align-items: center; gap: var(--fx-sp-3); min-width: 0; margin: 0; }
.fx-developers-endpoint > header p code { overflow-wrap: anywhere; color: var(--fx-text); }

.fx-developers-method {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 3.6rem;
  padding: .28rem .45rem;
  border: 1px solid var(--fx-border-action);
  color: var(--fx-cyan-ink);
  font-family: var(--fx-font-mono);
  font-size: var(--fx-fs-caption);
  font-weight: 800;
  text-align: center;
}

.fx-developers-method--post { border-color: var(--fx-success); color: var(--fx-success-ink); }
.fx-developers-method--delete { border-color: var(--fx-danger); color: var(--fx-danger-ink); }
.fx-developers-operation-id { color: var(--fx-muted); font-family: var(--fx-font-mono); font-size: var(--fx-fs-caption); overflow-wrap: anywhere; text-align: right; }
.fx-developers-endpoint h3 { margin: var(--fx-sp-5) 0 var(--fx-sp-2); font-size: 1.2rem; }
.fx-developers-endpoint > p { color: var(--fx-text-soft); }
.fx-developers-scopes { margin-top: var(--fx-sp-4); font-size: var(--fx-fs-small); }

.fx-developers-parameters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--fx-sp-3);
  margin: var(--fx-sp-4) 0 0;
}

.fx-developers-parameters > div { padding: var(--fx-sp-3); border: 1px solid var(--fx-border); background: var(--fx-surface); }
.fx-developers-parameters dt { color: var(--fx-text); font-size: var(--fx-fs-small); }
.fx-developers-parameters dt span { color: var(--fx-muted); font-family: var(--fx-font-mono); font-size: var(--fx-fs-caption); }
.fx-developers-parameters dd { margin: var(--fx-sp-2) 0 0; color: var(--fx-text-soft); font-size: var(--fx-fs-caption); }

.fx-developers-responses {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fx-sp-2);
  margin: var(--fx-sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.fx-developers-responses li { padding: .25rem .45rem; border: 1px solid var(--fx-border); color: var(--fx-muted); font-size: var(--fx-fs-caption); }
.fx-developers-responses code { color: var(--fx-text); }

@media (max-width: 900px) {
  .fx-developers-hero__grid,
  .fx-developers-two-column { grid-template-columns: 1fr; }
  .fx-developers-flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .fx-developers-endpoint > header { align-items: flex-start; flex-direction: column; }
  .fx-developers-operation-id { text-align: left; }
  .fx-developers-parameters { grid-template-columns: 1fr; }
}
