/* ==========================================================================
   FULLSTACK — Agency Partners page
   Reuses the shared hero, process strip, split band, cards, compare panels,
   fit grid, FAQ and enquiry form. Only page-specific pieces live here.
   ========================================================================== */

/* ==========================================================================
   01. HERO — the delivery stack
   ========================================================================== */

/* Measured: "the delivery." is the widest line at 8.0em (the muted lines run
   longest), so the cap is 100/8.0 = 12.5cqw. 12cqw leaves margin. */
.fs-hero--partners .fs-hero__title { font-size: min(var(--fs-text-d1), 12cqw); }

.fs-delivery {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 24rem;
}

.fs-delivery__layer {
  position: relative;
  padding: var(--fs-space-5);
  border: var(--fs-border-width) solid var(--fs-dark-border);
}

/* A downward connector between layers, anchored to the gap. */
.fs-delivery__layer + .fs-delivery__layer { margin-top: 2rem; }

.fs-delivery__layer + .fs-delivery__layer::before {
  content: '↓';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  line-height: 1;
  color: var(--fs-text-on-dark-muted);
}

.fs-delivery__label {
  display: flex;
  align-items: center;
  gap: var(--fs-space-2);
  letter-spacing: var(--fs-tracking-mono);
  color: var(--fs-text-on-dark-muted);
}

.fs-delivery__roles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fs-space-2);
  margin-top: var(--fs-space-4);
}

.fs-delivery__roles li {
  padding: 0.3125rem 0.625rem;
  border: var(--fs-border-width) solid var(--fs-dark-border-strong);
  font-size: 0.78125rem;
  font-weight: var(--fs-weight-semibold);
  color: var(--fs-text-on-dark-2);
}

/* FULLSTACK's layer is the one that reads as the engine. */
.fs-delivery__layer--engine {
  background-color: var(--fs-dark-bg-raised);
  border-color: var(--fs-border-strong);
}

.fs-delivery__layer--engine .fs-delivery__label { color: var(--fs-text-on-dark); }

.fs-delivery__layer--output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fs-space-4);
  background-color: var(--fs-warm-white);
  border-color: var(--fs-warm-white);
}

.fs-delivery__layer--output .fs-delivery__label { color: var(--fs-graphite); }
.fs-delivery__out { font-size: 1.125rem; color: var(--fs-accent-ink); }

@media (max-width: 1200px) {
  .fs-delivery { max-width: none; }
}

/* ==========================================================================
   02. THE GAP
   ========================================================================== */

.fs-gap__cta { margin-top: var(--fs-section-gap); }
.fs-gap .fs-compare { margin-top: var(--fs-section-gap); }

/* ==========================================================================
   03. CAPACITY TIERS
   ========================================================================== */

.fs-capacity__grid { margin-top: var(--fs-section-gap); }

.fs-tier {
  position: relative;
  gap: var(--fs-space-3);
  background-color: transparent;
}

.fs-tier--featured {
  background-color: var(--fs-light-bg);
  border-color: var(--fs-graphite);
}

.fs-tier__flag {
  align-self: flex-start;
  padding: 0.25rem 0.5rem;
  background-color: var(--fs-accent);
  color: var(--fs-graphite);
  letter-spacing: 0.12em;
}

.fs-tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fs-space-4);
}

.fs-tier__number { color: var(--fs-fg-muted); font-size: var(--fs-text-mono-lg); }

.fs-tier__title {
  margin-top: var(--fs-space-4);
  font-size: var(--fs-text-h3);
  font-weight: var(--fs-weight-extrabold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fs-tier__text {
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--fs-fg-muted);
}

.fs-tier__includes {
  margin-top: var(--fs-space-4);
  padding-top: var(--fs-space-4);
  border-top: var(--fs-border-width) solid var(--fs-border);
  font-size: 0.9375rem;
  font-weight: var(--fs-weight-semibold);
  line-height: 1.9;
  color: var(--fs-fg-body);
}

.fs-tier__ideal {
  margin-top: var(--fs-space-4);
  letter-spacing: 0.1em;
  color: var(--fs-fg-muted);
}

.fs-tier__cta { margin-top: auto; padding-top: var(--fs-space-5); }

.fs-capacity__note {
  margin-top: var(--fs-section-gap);
  max-width: 52rem;
  letter-spacing: 0.08em;
  color: var(--fs-fg-muted);
}

/* ==========================================================================
   04. WHITE-LABEL PROMISE
   ========================================================================== */

.fs-whitelabel { overflow: hidden; }
.fs-whitelabel__title { margin-top: var(--fs-space-6); text-transform: uppercase; }
.fs-whitelabel__text { margin-top: var(--fs-space-6); }

.fs-promises { margin-top: var(--fs-section-gap); }

.fs-promise { padding: var(--fs-space-6); }

.fs-promise__title {
  font-size: var(--fs-text-h4);
  font-weight: var(--fs-weight-extrabold);
  letter-spacing: var(--fs-tracking-tight);
  text-transform: uppercase;
  line-height: 1.25;
}

.fs-promise__text {
  margin: var(--fs-space-3) 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fs-fg-body);
}

.fs-whitelabel__cta { margin-top: var(--fs-section-gap); }

@media (max-width: 560px) {
  .fs-whitelabel__cta .fs-btn { width: 100%; }
}

/* ==========================================================================
   05. OPERATING RHYTHM
   ========================================================================== */

.fs-rhythm__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: var(--fs-section-gap) 0 0;
  background-color: var(--fs-divider);
  border: var(--fs-border-width) solid var(--fs-divider);
}

.fs-beat {
  display: flex;
  flex-direction: column;
  gap: var(--fs-space-2);
  padding: var(--fs-space-6) var(--fs-space-5) var(--fs-space-8);
  background-color: var(--fs-bg);
}

.fs-beat__when { letter-spacing: 0.14em; color: var(--fs-fg-muted); }

.fs-beat__what {
  font-size: var(--fs-text-h4);
  font-weight: var(--fs-weight-extrabold);
  letter-spacing: var(--fs-tracking-tight);
  line-height: 1.25;
}

.fs-beat__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fs-fg-body);
}

.fs-rhythm__note {
  margin-top: var(--fs-section-gap);
  max-width: 52rem;
  letter-spacing: 0.08em;
  color: var(--fs-fg-muted);
}

@media (max-width: 1023px) {
  .fs-rhythm__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fs-rhythm__list { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   06. PARTNER VS HIRE
   ========================================================================== */

/* The table scrolls inside its own container rather than the page. */
.fs-versus__scroll {
  margin-top: var(--fs-section-gap);
  overflow-x: auto;
}

.fs-versus__table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  text-align: left;
}

.fs-versus__table th,
.fs-versus__table td {
  padding: var(--fs-space-4) var(--fs-space-5);
  border-bottom: var(--fs-border-width) solid var(--fs-border);
  font-size: 0.9375rem;
  vertical-align: top;
}

.fs-versus__table thead th {
  border-bottom: var(--fs-border-emphasis) solid var(--fs-fg);
  font-family: var(--fs-font-mono);
  font-size: var(--fs-text-mono);
  font-weight: var(--fs-weight-semibold);
  letter-spacing: var(--fs-tracking-mono);
  text-transform: uppercase;
  color: var(--fs-fg-muted);
}

.fs-versus__table tbody th {
  font-weight: var(--fs-weight-bold);
  color: var(--fs-fg);
}

.fs-versus__table td { color: var(--fs-fg-body); }

/* Our column is emphasised without using lime as body text on light. */
.fs-versus__ours {
  background-color: var(--fs-light-bg);
  font-weight: var(--fs-weight-semibold);
  color: var(--fs-fg);
}

.fs-versus__table thead .fs-versus__ours { color: var(--fs-accent-text); }

/* ==========================================================================
   07. ENGINEERING RANGE
   ========================================================================== */

.fs-stacks--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .fs-stacks--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fs-stacks--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   08. PARTNERSHIPS (rendered only when real quotes exist)
   ========================================================================== */

.fs-partnerships__grid { margin-top: var(--fs-section-gap); }

.fs-quote { gap: var(--fs-space-5); }

.fs-quote__body {
  margin: 0;
  font-size: var(--fs-text-h4);
  font-weight: var(--fs-weight-medium);
  line-height: 1.5;
  color: var(--fs-fg);
}

.fs-quote__source {
  margin-top: auto;
  letter-spacing: 0.12em;
  color: var(--fs-fg-muted);
}
