/* Operating-system scenes: everything carried over from the aiuplift.space site
   (HUD, engines, feature vault, mission control, niches, proof, ROI, pricing…),
   laid out with the film vocabulary and coloured from the shared tokens. */

/* --------------------------------------------------------------------------
   Tone helpers
   -------------------------------------------------------------------------- */

.fcx-only-light {
  display: none;
}

html[data-theme="light"] .fcx-only-dark,
.fcx-scene--paper .fcx-only-dark {
  display: none;
}

html[data-theme="light"] .fcx-only-light,
.fcx-scene--paper .fcx-only-light {
  display: inline-block;
}

html[data-theme="light"] .fcx-film .fcx-only-dark,
html[data-theme="light"] .fcx-film.fcx-nav .fcx-only-dark,
.fcx-scene--paper .fcx-film .fcx-only-dark {
  display: inline-block;
}

html[data-theme="light"] .fcx-film .fcx-only-light,
.fcx-scene--paper .fcx-film .fcx-only-light {
  display: none;
}

/* --------------------------------------------------------------------------
   HUD strip (top of the nav) and drawer extras
   -------------------------------------------------------------------------- */

.fcx-nav {
  color: var(--ink);
}

.fcx-hud {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-hud .fcx-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 1.6rem;
  white-space: nowrap;
  overflow: hidden;
}

.fcx-hud__link {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.fcx-hud__scene {
  margin-left: auto;
  color: var(--hi2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcx-hud time {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .fcx-hud__link { display: inline-flex; }
}

.fcx-drawer {
  color: var(--ink);
}

.fcx-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fcx-drawer ul {
  margin: 1.25rem 0 1.75rem;
}

.fcx-drawer li a {
  font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  padding: 0.4rem 0;
}

/* --------------------------------------------------------------------------
   Hero additions: holo rings, typed line, stats
   -------------------------------------------------------------------------- */

.fcx-hero__holo {
  position: absolute;
  z-index: -3;
  right: 4%;
  top: 50%;
  width: min(78vh, 52vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.fcx-hero__holo i {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.28);
  animation: fcx-spin 46s linear infinite;
}

.fcx-hero__holo i:nth-child(2) {
  top: 13%; right: 13%; bottom: 13%; left: 13%;
  inset: 13%;
  border: 1px dashed rgba(168, 85, 247, 0.4);
  animation-duration: 34s;
  animation-direction: reverse;
}

.fcx-hero__holo i:nth-child(3) {
  top: 28%; right: 28%; bottom: 28%; left: 28%;
  inset: 28%;
  border-color: rgba(255, 61, 154, 0.3);
  border-top-color: transparent;
  animation-duration: 22s;
}

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

.fcx-hero__typer {
  margin: clamp(0.7rem, 1.6vw, 1.1rem) 0 0;
  min-height: 1.25em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.2;
}

.fcx-hero__typer > span[aria-hidden] {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.1em;
}

.fcx-hero__typer i {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--cyan);
  animation: fcx-blink 1s steps(1) infinite;
}

@keyframes fcx-blink {
  50% { opacity: 0; }
}

.fcx-hero__sub {
  margin-top: clamp(0.6rem, 1.2vw, 0.9rem);
}

.fcx-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 0.75rem clamp(1rem, 3.4vw, 3rem);
  margin: clamp(1.4rem, 3vw, 2.4rem) 0 0;
}

.fcx-hero__stats div {
  display: flex;
  flex-direction: column;
}

.fcx-hero__stats dd {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}

.fcx-hero__stats dt {
  order: 2;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-hero__foot {
  margin-top: clamp(1.25rem, 2.6vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   Problem: the gap and its three fixes
   -------------------------------------------------------------------------- */

.fcx-gap {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.fcx-gap__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .fcx-gap__pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fcx-gap__pillars li {
  padding: 1.4rem 1.4rem 1.5rem;
}

.fcx-gap__pillars h4 {
  margin: 0.6rem 0 0.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.05;
}

.fcx-gap__pillars p {
  margin: 0;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.fcx-compare {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.fcx-compare__scroll {
  overflow-x: auto;
}

.fcx-compare table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  text-align: left;
}

.fcx-compare th,
.fcx-compare td {
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.fcx-compare thead th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 2px solid var(--ink);
}

.fcx-compare tbody th {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.fcx-compare td {
  color: var(--dim);
}

.fcx-compare thead th:last-child,
.fcx-compare td:last-child {
  padding-left: 1rem;
  background: rgba(128, 128, 128, 0.08);
  background: color-mix(in srgb, var(--hi) 9%, transparent);
  color: var(--ink);
}

.fcx-compare td:last-child {
  font-weight: 600;
}

.fcx-compare td svg {
  display: inline-block;
  vertical-align: -0.2em;
}

.fcx-compare td:last-child svg {
  color: var(--hi);
  margin-right: 0.3rem;
}

/* --------------------------------------------------------------------------
   Engines: nine in orbit around one core
   -------------------------------------------------------------------------- */

.fcx-engines {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .fcx-engines { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .fcx-orbit {
    position: sticky;
    top: 8.5rem;
  }
}

.fcx-orbit {
  position: relative;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 1;
  margin-inline: auto;
}

@media (max-width: 719px) {
  .fcx-orbit { max-width: 19rem; }
}

.fcx-orbit__rings i {
  position: absolute;
  top: 7%; right: 7%; bottom: 7%; left: 7%;
  inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.41);
  border: 1px solid color-mix(in srgb, var(--hi2) 45%, transparent);
  animation: fcx-spin 60s linear infinite;
}

.fcx-orbit__rings i:nth-child(2) {
  top: 19%; right: 19%; bottom: 19%; left: 19%;
  inset: 19%;
  border: 1px dashed var(--violet);
  border: 1px dashed color-mix(in srgb, var(--violet) 55%, transparent);
  animation-duration: 40s;
  animation-direction: reverse;
}

.fcx-orbit__rings i:nth-child(3) {
  top: 30%; right: 30%; bottom: 30%; left: 30%;
  inset: 30%;
  border-color: rgba(128, 128, 128, 0.36);
  border-color: color-mix(in srgb, var(--magenta) 40%, transparent);
}

.fcx-orbit__core {
  position: absolute;
  top: 31%; right: 31%; bottom: 31%; left: 31%;
  inset: 31%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
  background: radial-gradient(circle at 35% 30%, rgba(128, 128, 128, 0.41), var(--bg-2) 70%);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--violet) 45%, transparent), color-mix(in srgb, var(--bg-2) 92%, transparent) 70%);
  box-shadow: 0 0 5rem -1rem var(--violet), inset 0 0 0 1px var(--line-2);
  box-shadow: 0 0 5rem -1rem color-mix(in srgb, var(--violet) 70%, transparent), inset 0 0 0 1px var(--line-2);
}

.fcx-orbit__core b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.05;
  animation: fcx-step-in 0.25s ease-out both;
}

.fcx-orbit__node {
  position: absolute;
  width: 2.9rem;
  height: 2.9rem;
  margin: -1.45rem 0 0 -1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--dim);
  transition: transform 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.fcx-orbit__node.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #05070d;
  transform: scale(1.18);
  box-shadow: 0 0 2rem -0.2rem var(--cyan);
  box-shadow: 0 0 2rem -0.2rem color-mix(in srgb, var(--cyan) 80%, transparent);
}

.fcx-engines__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fcx-engines__list button {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.fcx-engines__list button svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--hi2);
}

.fcx-engines__list b {
  display: block;
  font-weight: 600;
  font-size: 1.0625rem;
}

.fcx-engines__list small {
  display: block;
  font-size: 0.95rem;
  color: var(--dim);
}

.fcx-engines__list button.is-active {
  background: var(--glass);
  border-left-color: var(--hi2);
}

/* --------------------------------------------------------------------------
   Feature vault: a contact sheet of 40 frames
   -------------------------------------------------------------------------- */

.fcx-vault__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
}

.fcx-vault__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fcx-vault__groups button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.fcx-vault__groups button small {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--dim);
}

.fcx-vault__groups button:hover {
  border-color: var(--ink);
}

.fcx-vault__groups button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.fcx-vault__groups button.is-active small {
  color: inherit;
}

.fcx-vault__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  flex: 1 1 14rem;
  max-width: 20rem;
}

.fcx-vault__search:focus-within {
  border-color: var(--hi2);
}

.fcx-vault__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.fcx-vault__search input::placeholder {
  color: var(--dim);
}

.fcx-vault__count {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-vault__empty {
  margin: 0;
  padding: 2rem 0;
  color: var(--dim);
}

.fcx-vault {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.fcx-vault li {
  padding: 1.05rem 1.1rem 1.2rem;
  background: var(--bg);
  transition: background-color 0.2s;
}

.fcx-vault li:hover {
  background: var(--bg-2);
}

.fcx-vault .fcx-mono {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.fcx-vault .fcx-mono i {
  font-style: normal;
  color: var(--hi2);
}

.fcx-vault h3 {
  margin: 0.55rem 0 0.3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.08;
}

.fcx-vault p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--dim);
}

.fcx-vault__more {
  margin-top: 1.25rem;
}

@media (max-width: 959px) {
  .fcx-vault:not(.is-open) li:nth-child(n + 9) { display: none; }
}

@media (min-width: 960px) {
  .fcx-vault__more { display: none; }
}

/* --------------------------------------------------------------------------
   AI workforce: the call sheet
   -------------------------------------------------------------------------- */

.fcx-callsheet {
  border-top: 2px solid var(--ink);
}

.fcx-callsheet__head,
.fcx-callsheet__row {
  display: grid;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.fcx-callsheet__head {
  display: none;
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-callsheet__name {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
}

.fcx-callsheet__name i {
  font-style: normal;
  font-size: 1.1rem;
  min-width: 1.1em;
}

@media (min-width: 800px) {
  .fcx-callsheet__head,
  .fcx-callsheet__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 6fr);
  }
  .fcx-callsheet__head { display: grid; }
  .fcx-callsheet__row > :last-child { font-size: 1.125rem; }
}

/* --------------------------------------------------------------------------
   Story: act viewer and its sample panels
   -------------------------------------------------------------------------- */

.fcx-act {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  min-height: 24rem;
}

@media (min-width: 960px) {
  .fcx-act {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

.fcx-act__panels {
  display: grid;
  gap: 1rem;
}

.fcx-act__panel {
  padding: 1.15rem 1.25rem 1.25rem;
}

.fcx-act__panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.fcx-act__panel dl {
  margin: 0;
}

.fcx-act__panel dl.is-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr));
  gap: 1rem;
}

.fcx-act__panel dl.is-stats dd {
  margin: 0;
  font-family: var(--font-num);
  font-size: 1.9rem;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fcx-act__panel dl.is-stats dt {
  font-size: 0.9rem;
  color: var(--dim);
}

.fcx-act__panel dl.is-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.fcx-act__panel dl.is-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.fcx-act__panel dl.is-list dd {
  margin: 0;
  color: var(--dim);
  text-align: right;
}

.fcx-act__panel--cta {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 1.5rem;
}

.fcx-act__panel--cta p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Mission control
   -------------------------------------------------------------------------- */

.fcx-cockpit {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .fcx-cockpit { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.fcx-cockpit__crm,
.fcx-cockpit__hud {
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  overflow: hidden;
}

.fcx-cockpit header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.fcx-cockpit h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
}

.fcx-cockpit__live,
.fcx-cockpit header .fcx-mono {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.fcx-cockpit__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
}

@media (min-width: 620px) {
  .fcx-cockpit__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fcx-cockpit__kpis dt {
  font-size: 0.85rem;
  color: var(--dim);
}

.fcx-cockpit__kpis dd {
  margin: 0.15rem 0;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
}

.fcx-cockpit__kpis small {
  font-size: 0.8rem;
  color: var(--ok);
}

.fcx-cockpit__spark {
  display: block;
  width: calc(100% + 2 * clamp(1.1rem, 2.4vw, 1.75rem));
  height: 7rem;
  margin: 1.25rem calc(-1 * clamp(1.1rem, 2.4vw, 1.75rem)) calc(-1 * clamp(1.1rem, 2.4vw, 1.75rem));
}

.fcx-cockpit__channels {
  display: inline-flex;
  gap: 0.3rem;
}

.fcx-cockpit__channels b {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hi2);
}

.fcx-cockpit__gauges {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.fcx-cockpit__gauges .fcx-mono {
  display: flex;
  justify-content: space-between;
}

.fcx-cockpit__gauges .fcx-mono b {
  color: var(--ink);
}

.fcx-cockpit__gauges i {
  display: block;
  height: 4px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 0 / var(--v) 100% no-repeat, var(--line);
}

.fcx-cockpit__feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fcx-cockpit__feed li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.55rem 0.6rem;
  border-left: 2px solid transparent;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  transition: background-color 0.4s, border-color 0.4s;
}

.fcx-cockpit__feed b {
  flex: none;
  width: 5.2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--hi2);
}

.fcx-cockpit__feed li.is-now {
  background: var(--glass);
  border-left-color: var(--hi2);
}

.fcx-windows {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .fcx-windows { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.fcx-windows li {
  padding: 1rem 1.1rem 1.1rem;
  animation: fcx-float 7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.4s);
  box-shadow: 0 1.5rem 3rem -1.75rem rgba(0, 0, 0, 0.6);
}

.fcx-windows li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .fcx-windows li:last-child:nth-child(odd) { grid-column: auto; }
}

.fcx-windows b {
  display: block;
  margin: 0.3rem 0 0.1rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
}

.fcx-windows small {
  font-size: 0.82rem;
  color: var(--dim);
}

@keyframes fcx-float {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   Niches and integrations
   -------------------------------------------------------------------------- */

.fcx-niches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9.75rem, 100%), 1fr));
  gap: 0.6rem;
}

.fcx-niches li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.7rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  transition: border-color 0.2s, transform 0.2s;
}

.fcx-niches li:hover {
  border-color: var(--hi2);
  transform: translateY(-2px);
}

.fcx-niches span {
  grid-row: span 2;
  font-size: 1.5rem;
}

.fcx-niches b {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
}

.fcx-niches small {
  font-size: 0.72rem;
  color: var(--dim);
}

.fcx-niches__stack {
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.1rem;
}

.fcx-scene#niches {
  padding-bottom: 0;
}

.fcx-scene#niches > .fcx-marquee {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Results: proof strip, clothesline, voices, impact
   -------------------------------------------------------------------------- */

.fcx-line {
  position: relative;
  height: 3.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.fcx-line i {
  position: absolute;
  top: 50%; right: 0; bottom: auto; left: 0;
  inset: 50% 0 auto;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 1.2rem rgba(0, 229, 255, 0.55), 0 0 2.4rem rgba(255, 61, 154, 0.35);
  transform-origin: 50% 0;
  animation: fcx-wire 12s ease-in-out infinite;
}

@keyframes fcx-wire {
  50% { transform: scaleY(1.6) translateY(1px); }
}

.fcx-prints {
  list-style: none;
  margin: -1.65rem 0 0;
  padding: 0 0 1rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

@media (min-width: 860px) {
  .fcx-prints {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    overflow: visible;
  }
}

/* Prints are photo paper: white whatever the theme. */
.fcx-print {
  position: relative;
  scroll-snap-align: center;
  margin-top: 1rem;
  padding: 1.5rem 1.4rem 1.4rem;
  background: #f7f7f2;
  color: #0a0a0a;
  border-radius: 3px;
  box-shadow: 0 1.75rem 3rem -1.25rem rgba(0, 0, 0, 0.85);
  transform-origin: 50% -1rem;
}

/* The studio template's photo-sway motion. */
.fcx-print--1 { animation: fcx-sway-1 8s ease-in-out infinite; }
.fcx-print--2 { animation: fcx-sway-2 9s ease-in-out infinite; }
.fcx-print--3 { animation: fcx-sway-3 7s ease-in-out infinite; }

@keyframes fcx-sway-1 {
  0%, 100% { transform: rotate(1.6deg); }
  50% { transform: rotate(-0.8deg) translateY(-3px); }
}

@keyframes fcx-sway-2 {
  0%, 100% { transform: rotate(-0.9deg); }
  50% { transform: rotate(1.8deg) translateY(-2px); }
}

@keyframes fcx-sway-3 {
  0%, 100% { transform: rotate(0.9deg); }
  50% { transform: rotate(-1.6deg) translateY(-4px); }
}

.fcx-print__peg {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  width: 0.85rem;
  height: 2.2rem;
  margin-left: -0.425rem;
  border-radius: 3px;
  background: linear-gradient(90deg, #fde68a 0 46%, #b45309 46% 54%, #fed7aa 54%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.fcx-print__peg::after {
  content: "";
  position: absolute;
  top: 0.45rem; right: -1px; bottom: auto; left: -1px;
  inset: 0.45rem -1px auto;
  height: 0.3rem;
  border-radius: 1px;
  background: linear-gradient(#d4d4d8, #71717a);
}

.fcx-print blockquote,
.fcx-voices blockquote {
  margin: 0;
}

.fcx-print p {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.16;
}

.fcx-print footer,
.fcx-voices footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fcx-print footer b,
.fcx-voices footer b {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.fcx-print footer small {
  color: #5d5d6a;
}

.fcx-voices footer small {
  color: var(--dim);
}

.fcx-print__av {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #05070d;
  font-weight: 700;
  font-size: 0.85rem;
}

.fcx-voices {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .fcx-voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .fcx-voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fcx-voices li {
  padding: 1.25rem 1.3rem 1.3rem;
}

.fcx-voices p {
  margin: 0.7rem 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.fcx-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.fcx-laurels {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fcx-laurels li {
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
}

.fcx-laurels li::before { content: "❦ "; }
.fcx-laurels li::after { content: " ❦"; }

.fcx-impact__title {
  margin-top: clamp(4rem, 9vw, 7rem);
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

.fcx-impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.25rem;
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
}

@media (min-width: 900px) {
  .fcx-impact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.fcx-impact div {
  border-top: 1px solid var(--line-2);
  padding-top: 0.9rem;
}

.fcx-impact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-impact dd {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
}

.fcx-impact small {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   ROI calculator
   -------------------------------------------------------------------------- */

.fcx-roi {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .fcx-roi { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.fcx-roi__row + .fcx-roi__row {
  margin-top: 1.75rem;
}

.fcx-roi__row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.fcx-roi__row output {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--hi2);
  white-space: nowrap;
}

.fcx-roi__row [data-orientation="horizontal"] > span:first-child {
  background: var(--line-2);
}

.fcx-roi__row [role="slider"] {
  border-color: var(--hi2);
  background: var(--bg);
  cursor: grab;
}

.fcx-roi__note {
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--dim);
}

.fcx-roi__out {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  margin: 0;
}

@media (min-width: 900px) {
  .fcx-roi__out {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--line);
  }
}

.fcx-roi__out dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-roi__out dd {
  margin: 0.2rem 0 0;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.fcx-roi__out .fcx-btn {
  justify-self: start;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Designed to convert: the screenplay
   -------------------------------------------------------------------------- */

.fcx-script {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 860px) {
  .fcx-script { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fcx-script li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.fcx-script__who {
  display: block;
  margin: 0 0 0.2rem 28%;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.fcx-script p {
  margin: 0 6% 1.1rem 10%;
}

.fcx-script p:last-child {
  margin-bottom: 0;
}

.fcx-script p.fcx-script__q {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.1;
}

.fcx-script__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Pricing: three tickets
   -------------------------------------------------------------------------- */

.fcx-plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .fcx-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fcx-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.fcx-plan.is-featured {
  border-color: transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 2rem 5rem -2.5rem var(--violet);
  box-shadow: 0 2rem 5rem -2.5rem color-mix(in srgb, var(--violet) 80%, transparent);
}

.fcx-plan__stub {
  position: relative;
  padding: 1.5rem 1.5rem 1.4rem;
  border-bottom: 2px dashed var(--line-2);
}

/* Ticket notches where the stub tears off. */
.fcx-plan__stub::before,
.fcx-plan__stub::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
}

.fcx-plan__stub::before { left: -0.6rem; clip-path: inset(0 0 0 50%); }
.fcx-plan__stub::after { right: -0.6rem; clip-path: inset(0 50% 0 0); }

.fcx-plan.is-featured .fcx-plan__stub::before,
.fcx-plan.is-featured .fcx-plan__stub::after {
  border-color: var(--violet);
}

.fcx-plan h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hi2);
}

.fcx-plan__price {
  margin: 0.6rem 0 0.4rem;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}

.fcx-plan__price small {
  font-size: 1rem;
  color: var(--dim);
  margin-left: 0.25rem;
}

.fcx-plan__for {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.fcx-plan__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
}

.fcx-plan__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.fcx-plan__body li {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  line-height: 1.35;
}

.fcx-plan__body li svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--ok);
}

/* --------------------------------------------------------------------------
   Security
   -------------------------------------------------------------------------- */

.fcx-secure {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

.fcx-secure li {
  display: flex;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-2);
}

.fcx-secure svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--hi2);
}

.fcx-secure h3 {
  margin: 0 0 0.2rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.fcx-secure p {
  margin: 0;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Design DNA
   -------------------------------------------------------------------------- */

.fcx-xp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.fcx-xp h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
}

.fcx-xp p {
  margin: 0;
  color: var(--dim);
  font-size: 0.98rem;
}

.fcx-swatches {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.fcx-swatches ol {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
}

.fcx-swatches ol > li {
  width: 18.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fcx-swatches i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 0 1.4rem -0.2rem var(--c1);
}

.fcx-swatches h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.05;
}

.fcx-swatches p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--dim);
}

.fcx-swatches ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fcx-swatches ul li {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
}

.fcx-swatches q {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--hi);
  quotes: "“" "”";
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.fcx-faq {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .fcx-faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .fcx-faq > div:first-child {
    position: sticky;
    top: 7.5rem;
  }
}

.fcx-faq .fcx-head {
  margin-bottom: 1.75rem;
}

.fcx-faq__list {
  border-top: 2px solid var(--ink);
}

.fcx-faq__list button {
  gap: 1.25rem;
  padding-block: 1.15rem;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.fcx-faq__list button:hover {
  text-decoration: none;
  color: var(--hi);
}

.fcx-faq__list [role="region"] > div {
  max-width: 42em;
  padding-bottom: 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

/* --------------------------------------------------------------------------
   Footer lockup
   -------------------------------------------------------------------------- */

.fcx-footer {
  position: relative;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.fcx-footer__lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.fcx-footer__lockup > span {
  color: var(--dim);
  font-size: 1.25rem;
}

.fcx-footer__lockup img {
  height: 2.6rem;
  width: auto;
}

.fcx-footer__lockup .fcx-brand img {
  height: 2.1rem;
}

.fcx-footer__mission {
  margin: 1.25rem 0 clamp(2.5rem, 5vw, 3.5rem);
  max-width: 26em;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

.fcx-footer__about p {
  margin: 0;
}

.fcx-footer__scenes {
  columns: 2;
  column-gap: 2rem;
}

.fcx-footer__base a {
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .fcx-hero__holo i,
  .fcx-hero__typer i,
  .fcx-orbit__rings i,
  .fcx-windows li,
  .fcx-line i,
  .fcx-print--1,
  .fcx-print--2,
  .fcx-print--3 {
    animation: none;
  }
}
