/* Product: Zoho Qntrl - page-specific design. Accent sampled from the icon (#e22000, a
   distinctive orange-red - Qntrl is one of Zoho Corp's 4 independent brands, not a Zoho-suite
   product, so a visually distinct accent is fitting). Mechanic is a sequential approval-gate
   checklist with blocking logic: approving a gate unlocks the next, rejecting any gate blocks
   the whole chain - distinct from every other mechanic on the site (a blocking sequential-gate
   checklist, not CommandCenter's branching map, which has no gating/blocking logic).

   All classes scoped to .qn-page, prefixed qn-. */

.qn-page { --qn: #e22000; --qn-d: #a91800; --qn-l: #fdece6; }

.qn-page .ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
  margin-block-end: 18px;
}
.qn-page .ph-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* -------------------------------------------------------------------------- gates -- */
.qn-gates { padding: clamp(48px, 7vw, 84px) 0; }
.qn-gates h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.qn-gates .lede { max-width: 82ch; margin: 0 0 26px; }

.qn-chain { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.qn-gate {
  flex: 1; min-width: 160px; padding: 14px; border-radius: 12px; background: var(--white);
  border: 1.5px solid var(--line); transition: border-color .2s ease, background .2s ease;
}
.qn-gate.is-active { border-color: var(--qn); background: var(--qn-l); }
.qn-gate.is-ok { border-color: #0a7a3e; background: #e7f5f0; }
.qn-gate.is-no { border-color: var(--qn-d); background: var(--qn-l); }
.qn-gate-name { margin: 0 0 6px; font-weight: 800; font-size: .88rem; color: var(--ink); }
.qn-gate-status { margin: 0 0 12px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.qn-gate.is-ok .qn-gate-status { color: #0a7a3e; }
.qn-gate.is-no .qn-gate-status { color: var(--qn-d); }
.qn-gate-btns { display: flex; gap: 6px; }
.qn-btn { font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; padding: 6px 12px; border-radius: 7px; border: none; }
.qn-btn-ok { background: #0a7a3e; color: #fff; }
.qn-btn-no { background: var(--qn-d); color: #fff; }
.qn-btn:disabled { opacity: .35; cursor: default; }

.qn-result { margin: 18px 0 8px; font-weight: 700; font-size: .94rem; color: var(--ink); }
.qn-reset { font-size: .82rem; }

/* ------------------------------------------------------------------------ need -- */
.qn-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--qn-l);
  border-block: 1px solid color-mix(in srgb, var(--qn) 18%, var(--line));
}
.qn-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.qn-need .lede { max-width: 82ch; margin: 0; }

/* ------------------------------------------------------------------------- caps -- */
.qn-caps { padding: clamp(48px, 7vw, 84px) 0; }
.qn-caps h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.qn-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.qn-cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.qn-cap b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--qn-d); }
.qn-cap p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------------------- move -- */
.qn-move { padding: clamp(48px, 7vw, 84px) 0; }
.qn-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.qn-move h3 { font-size: 1.08rem; }
