/* ==========================================================================
   PiPO HRIS — LAYER 16 · BUILT TO FIT YOUR OPERATING ENVIRONMENT
   Consolidation of former layers 11 (Integrations) and 12 (Configurability)
   into one Tier-3 reassurance section. Layers 11 and 12 are retained for the
   standalone /integrations/ and /configuration/ pages and are NOT loaded here.
   Language discipline: configurable, structured around, adapted to.
   Never "fully bespoke" or "unlimited customisation". No vendor names.
   ========================================================================== */

.fit { background: var(--lilac); }
.fit__head { max-width: 760px; }
.fit__head h2 { margin-top: 1.1rem; }
.fit__head .lede { margin-top: 1.1rem; }

/* ── The pair: configure | connect ──────────────────────────────────────── */
.fitpair {
  margin-top: clamp(30px, 3.6vw, 50px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 30px);
  align-items: stretch;
}
@media (max-width: 900px) { .fitpair { grid-template-columns: 1fr; } }
.fitpair > * { min-width: 0; }

.fitcol {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(20px, 2.4vw, 30px);
  display: grid; align-content: start;
}
.fitcol__k {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--emerald-700);
}
.fitcol h3 { font-size: clamp(1.1rem, 1.5vw, 1.32rem); letter-spacing: -.026em; margin-top: .55rem; }
.fitcol > p { font-size: .98rem; line-height: 1.6; color: var(--muted); margin-top: .6rem; }

/* the surface each column carries */
.fitviz {
  margin-top: clamp(16px, 2vw, 22px); border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 15px 16px;
}

/* organisation tree (configure side) */
.ftree { display: grid; gap: 5px; }
.ftree__row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ftree__n {
  font-size: .72rem; font-weight: 600; color: var(--ink-3); letter-spacing: -.005em;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
}
.ftree__n--root { background: var(--emerald-tint); border-color: rgba(8,127,91,.26); color: var(--emerald-700); }
.ftree__link { width: 1px; height: 9px; background: var(--line); margin-left: 13px; display: block; }
.ftree__lvl {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-left: .25rem;
}

/* approval chain */
.fchain { margin-top: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fchain__k {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2);
}
.fchain__row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.fchain__s {
  font-size: .68rem; font-weight: 600; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line-soft); border-radius: 100px; padding: 4px 9px;
}
.fchain__s--start { background: var(--emerald-tint); border-color: rgba(8,127,91,.22); color: var(--emerald-700); }
.fchain__row svg { width: 10px; height: 10px; color: var(--muted-2); flex: none; }

/* capture → platform → connect (connect side) */
.farch { display: grid; gap: 7px; }
.farch__k {
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted-2);
}
.farch__band { display: flex; flex-wrap: wrap; gap: 5px; }
.farch__n {
  font-size: .72rem; font-weight: 500; color: var(--ink-3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
}
.farch__core {
  border-radius: 8px; padding: 10px 12px; text-align: center;
  background: var(--emerald-tint); border: 1px solid rgba(8,127,91,.26);
}
.farch__core b { font-family: var(--font-display); font-size: .92rem; font-weight: 700; letter-spacing: -.022em; color: var(--emerald-700); }
.farch__flow { display: grid; place-items: center; gap: 3px; padding: 2px 0; }
.farch__flow i { width: 1px; height: 12px; background: var(--line); display: block; }
.farch__flow span {
  font-family: var(--font-mono); font-size: .52rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted-2);
}

/* the dimension list under each column */
.fitlist { list-style: none; margin: clamp(14px, 1.8vw, 20px) 0 0; padding: 0; display: grid; gap: .5rem; }
.fitlist li {
  display: grid; grid-template-columns: 13px 1fr; gap: .6rem; align-items: start;
  font-size: .94rem; line-height: 1.55; color: var(--ink-3);
}
.fitlist li svg { width: 11px; height: 11px; color: var(--emerald); margin-top: .32rem; }
.fitlist b { font-weight: 600; color: var(--ink); }

/* ── Close ──────────────────────────────────────────────────────────────── */
.fitclose {
  margin-top: clamp(30px, 3.4vw, 46px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 3vw, 46px); align-items: center;
  border-top: 1px solid var(--line); padding-top: clamp(24px, 2.8vw, 36px);
}
@media (max-width: 860px) { .fitclose { grid-template-columns: 1fr; } }
.fitclose > * { min-width: 0; }
.fitclose h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.03em; line-height: 1.2; }
.fitclose p { font-size: .95rem; line-height: 1.65; color: var(--muted); }
.fitclose p + p { margin-top: .8rem; }

.fitlinks { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.3rem; }

.fittrans {
  position: relative;
  margin-top: clamp(30px, 3.4vw, 46px); padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); text-align: center;
}

/* CTA rows mixing a filled/outline button with a text-arrow link */
.ctas, .front__cta, .fitlinks { align-items: center; }
.plat__cta .tlink, .front__cta .tlink { margin-top: .2rem; }


/* the seam between sections carries the brand journey, once */
.fittrans::before, .impltrans::before, .ttrans::before, .roltrans::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(360px, 60%); height: 1px; background: var(--grad-rule); opacity: .85;
}
.fittrans, .impltrans, .ttrans, .roltrans { position: relative; }

/* The inter-section label sits on a gold hairline: the boundary between
   two sections is exactly where a third brand colour belongs. */
.fittrans { border-top: 0; position: relative; }
.fittrans::before { content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 54px; height: 2px;
  background: var(--gold); border-radius: 2px; }
