.page-products {
  --fc-gap: clamp(18px, 2.6vw, 30px);
  --fc-line: rgba(62, 107, 90, 0.42);
  --fc-line-soft: rgba(62, 107, 90, 0.22);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(44, 242, 208, 0.10), transparent 62%),
    radial-gradient(820px 460px at -6% 26%, rgba(255, 179, 71, 0.07), transparent 64%);
  background-repeat: no-repeat;
  color: var(--nearwhite);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-products .wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.page-products .fc-crumbs {
  padding-top: clamp(14px, 2.4vw, 26px);
}

/* ---------- hero ---------- */
.page-products .fc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-block: clamp(20px, 3.4vw, 40px) clamp(30px, 4.6vw, 56px);
}

.page-products .fc-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.34em 0 0.5em;
  color: var(--nearwhite);
  text-wrap: balance;
}

.page-products .fc-mark {
  color: var(--cyan);
  background-image: linear-gradient(transparent 64%, rgba(44, 242, 208, 0.18) 64%);
  background-repeat: no-repeat;
}

.page-products .fc-lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.72;
  color: var(--paper-dim);
  max-width: 48ch;
  margin: 0 0 clamp(18px, 2.8vw, 26px);
}

.page-products .fc-hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
}

.page-products .fc-hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.page-products .fc-fact-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--amber);
  line-height: 1.1;
}

.page-products .fc-fact-label {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.4;
}

.page-products .fc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.page-products .fc-hero-art {
  margin: 0;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--fc-line);
  box-shadow: var(--shadow-panel);
  background:
    linear-gradient(140deg, rgba(44, 242, 208, 0.14), transparent 56%),
    var(--carbon);
}

.page-products .fc-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .fc-hero-art::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% 34%;
  height: 58%;
  background: repeating-linear-gradient(115deg, rgba(44, 242, 208, 0.18) 0 1px, transparent 1px 14px);
  transform: rotate(-6deg);
  pointer-events: none;
}

/* ---------- layout + index ---------- */
.page-products .fc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.page-products .fc-index {
  border: 1px solid var(--fc-line-soft);
  border-radius: var(--radius-m);
  background: rgba(18, 22, 20, 0.74);
  padding: 14px 12px;
}

.page-products .fc-index-title {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--slate);
  font-weight: 600;
}

.page-products .fc-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-products .fc-index-list a {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--nearwhite);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.3;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-products .fc-index-list a:hover,
.page-products .fc-index-list a:focus-visible {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.page-products .fc-idx {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  color: var(--amber);
}

.page-products .fc-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fog);
}

.page-products .fc-dot--cyan { background: var(--cyan); }
.page-products .fc-dot--amber { background: var(--amber); }
.page-products .fc-dot--rose { background: var(--rose); }
.page-products .fc-dot--gold { background: var(--gold); }

/* ---------- sections ---------- */
.page-products .fc-section {
  scroll-margin-top: 92px;
  padding-top: clamp(20px, 3vw, 30px);
  min-width: 0;
}

.page-products .fc-section + .fc-section {
  margin-top: clamp(26px, 3.6vw, 42px);
  border-top: 1px solid var(--fc-line-soft);
}

.page-products .fc-sec-head {
  margin-bottom: clamp(16px, 2.4vw, 24px);
}

.page-products .fc-sec-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--cyan);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}

.page-products .fc-sec-num--amber { background: var(--amber); }
.page-products .fc-sec-num--gold { background: var(--gold); color: var(--ink-deep); }
.page-products .fc-sec-num--rose { background: var(--rose); color: var(--ink-deep); }

.page-products .fc-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.42rem, 3.1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--nearwhite);
  text-wrap: balance;
}

.page-products .fc-sec-sub {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.4vw, 1.04rem);
  line-height: 1.72;
  color: var(--paper-dim);
  max-width: 60ch;
  margin: 0;
}

.page-products .fc-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
}

/* ---------- matrix table ---------- */
.page-products .fc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-m);
  background: rgba(18, 22, 20, 0.68);
  max-width: 100%;
}

.page-products .fc-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-products .fc-matrix th,
.page-products .fc-matrix td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fc-line-soft);
  vertical-align: top;
  line-height: 1.58;
}

.page-products .fc-matrix thead th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--slate);
  background: rgba(4, 10, 7, 0.82);
  white-space: nowrap;
}

.page-products .fc-matrix tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.page-products .fc-matrix tbody td {
  color: var(--paper-dim);
}

.page-products .fc-matrix tbody tr:last-child th,
.page-products .fc-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .fc-matrix tbody tr:hover {
  background: rgba(44, 242, 208, 0.05);
}

/* ---------- steps ---------- */
.page-products .fc-steps {
  list-style: none;
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .fc-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--fc-line-soft);
  background: linear-gradient(158deg, rgba(62, 107, 90, 0.18), rgba(18, 22, 20, 0.52));
  min-width: 0;
}

.page-products .fc-step-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--amber);
  padding-top: 2px;
}

.page-products .fc-step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  color: var(--nearwhite);
}

.page-products .fc-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--paper-dim);
}

/* ---------- figures ---------- */
.page-products .fc-figure {
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--fc-line);
  background: var(--carbon);
}

.page-products .fc-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .fc-figure figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--slate);
  border-top: 1px solid var(--fc-line-soft);
}

.page-products .fc-figure--tall {
  margin-bottom: 0;
}

.page-products .fc-figure--band {
  margin-top: clamp(14px, 2.2vw, 20px);
  margin-bottom: 0;
}

/* ---------- client split ---------- */
.page-products .fc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
}

.page-products .fc-ver {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--amber);
  border: 1px solid rgba(255, 179, 71, 0.42);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 14px;
}

.page-products .fc-client-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .fc-client-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--paper-dim);
}

.page-products .fc-client-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.page-products .fc-client-list strong {
  color: var(--nearwhite);
  font-weight: 600;
}

/* ---------- legacy filter demo ---------- */
.page-products .fc-filter {
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-m);
  background: rgba(18, 22, 20, 0.72);
  padding: clamp(14px, 2.2vw, 22px);
  display: grid;
  gap: 14px;
  margin-bottom: clamp(14px, 2.2vw, 20px);
}

.page-products .fc-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.page-products .fc-filter-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-products .fc-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.page-products .fc-chips li {
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--fc-line-soft);
  color: var(--paper-dim);
}

.page-products .fc-chips li.is-on {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.page-products .fc-filter-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--slate);
  border-top: 1px solid var(--fc-line-soft);
  padding-top: 12px;
}

/* ---------- roster ---------- */
.page-products .fc-roster {
  border: 1px solid rgba(255, 77, 126, 0.34);
  border-radius: var(--radius-m);
  background: linear-gradient(100deg, rgba(255, 77, 126, 0.12), rgba(18, 22, 20, 0.74) 48%);
  padding: clamp(16px, 2.6vw, 26px);
  display: grid;
  gap: 14px;
}

.page-products .fc-roster-lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.72;
  color: var(--nearwhite);
  max-width: 62ch;
}

.page-products .fc-roster-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-products .fc-roster-tags li {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--rose);
  border: 1px solid rgba(255, 77, 126, 0.5);
  background: rgba(255, 77, 126, 0.08);
}

/* ---------- path diagram ---------- */
.page-products .fc-path-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--fc-line-soft);
  border-radius: var(--radius-m);
  background: rgba(4, 10, 7, 0.55);
}

.page-products .fc-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-products .fc-path-card {
  border: 1px solid var(--fc-line-soft);
  border-radius: var(--radius-m);
  padding: 16px;
  background: rgba(18, 22, 20, 0.62);
  min-width: 0;
}

.page-products .fc-path-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--cyan);
}

.page-products .fc-path-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--paper-dim);
}

/* ---------- accordion ---------- */
.page-products .fc-acc {
  border: 1px solid var(--fc-line-soft);
  border-radius: var(--radius-s);
  background: rgba(18, 22, 20, 0.62);
  margin-bottom: 10px;
  overflow: hidden;
}

.page-products .fc-acc summary {
  cursor: pointer;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--nearwhite);
  transition: background-color 0.2s var(--ease);
}

.page-products .fc-acc summary::-webkit-details-marker {
  display: none;
}

.page-products .fc-acc summary:hover {
  background: rgba(44, 242, 208, 0.06);
}

.page-products .fc-acc summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  flex: none;
}

.page-products .fc-acc[open] summary::after {
  content: "–";
}

.page-products .fc-acc p {
  margin: 0;
  padding: 0 16px 15px;
  font-size: 0.89rem;
  line-height: 1.72;
  color: var(--paper-dim);
}

.page-products .fc-acc p a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- next links ---------- */
.page-products .fc-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .fc-next a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  border: 1px solid var(--fc-line);
  background: rgba(18, 22, 20, 0.68);
  text-decoration: none;
  color: var(--nearwhite);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-products .fc-next a:hover,
.page-products .fc-next a:focus-visible {
  border-color: var(--cyan);
  background: rgba(44, 242, 208, 0.08);
  transform: translateY(-2px);
}

.page-products .fc-next-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 6px;
}

.page-products .fc-next-title {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- media queries ---------- */
@media (min-width: 620px) {
  .page-products .fc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .fc-filter-row {
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .page-products .fc-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .fc-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .page-products .fc-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

@media (min-width: 920px) {
  .page-products .fc-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    padding-block: clamp(30px, 3.6vw, 56px) clamp(40px, 4.6vw, 68px);
  }
}

@media (min-width: 1000px) {
  .page-products .fc-layout {
    grid-template-columns: 234px minmax(0, 1fr);
  }

  .page-products .fc-index {
    position: sticky;
    top: 96px;
  }

  .page-products .fc-index-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .page-products .fc-index-list a {
    grid-template-columns: 26px minmax(0, 1fr) 8px;
    padding: 9px 8px;
    border-radius: var(--radius-s);
    gap: 10px;
  }

  .page-products .fc-dot {
    display: block;
  }
}

@media (min-width: 1180px) {
  .page-products .fc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .fc-index-list a,
  .page-products .fc-next a,
  .page-products .fc-acc summary {
    transition: none;
  }

  .page-products .fc-next a:hover,
  .page-products .fc-next a:focus-visible {
    transform: none;
  }
}
