/* ==========================================================================
   Qpro+ — shared stylesheet
   Direction: precision instrument / label spec sheet.
   Palette derives from the subject: label stock, thermal-print black,
   safety-signal orange (used only for live/resolved data + primary action),
   registration teal (technical annotation).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --stock:    #F1F2EF;
  --paper:    #FBFBF9;
  --stock-2:  #E5E7E2;
  --ink:      #16181C;
  --slate:    #212832;
  --slate-2:  #2C3541;
  --muted:    #5C646E;
  --muted-dk: #98A2AE;
  --rule:     #C9CCC5;
  --rule-dark:#39424E;
  --signal:   #FF5A1F;
  --signal-dk:#E04A12;

  /* Quando Solutions house palette, sampled from the mark */
  --q-green:  #01B050;
  --q-blue:   #02B0F0;
  --q-yellow: #FFC001;
  --q-red:    #FF0402;
  /* brand blue darkened for small text — 4.58:1 on label stock */
  --reg:      #0C74A8;

  --shell: 1180px;
  --pad-y: clamp(72px, 9vw, 128px);

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  font-stretch: 105%;
}

h1 { font-size: clamp(33px, 4.5vw, 55px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.16; }
h4 { font-size: 17px; letter-spacing: -0.012em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

/* Eyebrow doubles as a field label — it names the audience or the
   spec section, the way a callout names a dimension on a drawing. */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--reg);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--reg);
  flex: none;
}

.mono { font-family: var(--f-mono); }

/* ---------- shell + sections ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 26px;
}

.band { padding: var(--pad-y) 0; }
.band-tight { padding: calc(var(--pad-y) * 0.62) 0; }

.band-dark {
  background: var(--slate);
  color: var(--paper);
}
.band-dark .lede { color: var(--muted-dk); }
.band-dark .eyebrow { color: var(--signal); }
.band-dark .eyebrow::before { background: var(--signal); }

.band-paper { background: var(--paper); }

.rule-top { border-top: 1px solid var(--rule); }
.band-dark.rule-top { border-top-color: var(--rule-dark); }

/* ---------- nav ---------- */

/* Nav runs dark because the Qpro+ logotype is set in white. It also frames
   the light page and ties to the dark bands further down. */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(28, 34, 43, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-in {
  max-width: var(--shell); margin: 0 auto; padding: 0 26px;
  height: 72px;
  display: flex; align-items: center; gap: 30px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex; align-items: center; gap: 7px;
}
.brand-logo { height: 38px; width: auto; display: block; }
.foot .brand-logo { height: 40px; margin-bottom: 6px; }
.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px; text-decoration: none; color: var(--muted-dk);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }

.nav-cta {
  font-family: var(--f-mono);
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--paper) !important;
  border: 1px solid var(--muted-dk);
  padding: 8px 14px;
}
.nav-cta:hover { background: var(--signal); border-color: var(--signal); color: #fff !important; }

/* ---------- Quando endorsement strip ----------
   The Quando logotype is set in grey, so it needs a light ground. It sits
   on a pale band directly above the dark footer. */
.endorse { background: var(--paper); border-top: 1px solid var(--rule); }
.endorse-in {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px;
  padding: 26px 0;
}
.endorse-logo { height: 44px; width: auto; }
.endorse-in span {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 860px) {
  .nav-links { gap: 16px; overflow-x: auto; }
  .nav-links a { font-size: 13.5px; white-space: nowrap; }
  .nav-hide-sm { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 15px 24px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-dk); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.band-dark .btn-ghost { border-color: var(--muted-dk); color: var(--paper); }
.band-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.textlink {
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1.5px solid var(--signal);
  padding-bottom: 3px;
  display: inline-block;
}
.textlink:hover { color: var(--signal); }

/* ---------- hero ---------- */

.hero { padding: clamp(52px, 6.5vw, 88px) 0 clamp(58px, 7vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 46ch; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- signature: the resolve panel ---------- */

.resolve {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 30px 30px 22px;
}
/* registration ticks — a drafting detail from the subject's own world */
.resolve::before, .resolve::after {
  content: "";
  position: absolute;
  width: 11px; height: 11px;
  border: 1px solid var(--reg);
  border-radius: 50%;
}
.resolve::before { top: -6px; left: -6px; }
.resolve::after { bottom: -6px; right: -6px; }

.resolve-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.resolve-state { display: flex; align-items: center; gap: 7px; color: var(--signal); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* the label artifact itself */
.label {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 16px 16px 14px;
  font-family: var(--f-mono);
}
.label-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 11px;
}
.label-co { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.label-meta { font-size: 9.5px; color: var(--muted); text-align: right; line-height: 1.5; white-space: nowrap; }
@media (max-width: 420px) { .label-meta { font-size: 8.5px; } .label-co { font-size: 13px; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; margin-bottom: 13px; }
.field-k { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field-v {
  font-size: 14px; font-weight: 600; margin-top: 2px;
  min-height: 20px;
  transition: color .2s ease;
}
.field-v.token { color: var(--reg); font-weight: 500; }
.field-v.live { color: var(--signal); }

.bars { display: flex; align-items: flex-end; gap: 1.5px; height: 46px; margin-bottom: 6px; }
.bars i { display: block; background: var(--ink); height: 100%; }
.bar-num { font-size: 10px; letter-spacing: 0.28em; text-align: center; }

.dm { display: grid; gap: 1px; width: 46px; }
.dm i { display: block; aspect-ratio: 1; background: var(--ink); }
.dm i.off { background: transparent; }

.label-bottom { display: flex; gap: 14px; align-items: flex-end; margin-top: 12px; }
.label-bottom .bars-wrap { flex: 1; }

.resolve-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.fmt { display: flex; gap: 5px; }
.fmt button {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--rule); color: var(--muted);
  padding: 4px 8px; cursor: pointer;
}
.fmt button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--stock-2); }

/* ---------- proof strip ---------- */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.strip-in {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline;
  padding: 22px 0;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 700px) { .strip-in { font-size: 11px; gap: 10px 22px; } }
.strip-in b { color: var(--ink); font-weight: 600; }

/* ---------- generic grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 3.4vw, 52px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.6vw, 34px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(18px, 2.2vw, 28px); }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.head-block { max-width: 66ch; margin-bottom: clamp(38px, 4.6vw, 62px); }
.head-block h2 { margin-bottom: 18px; }

/* ---------- step sequence (order carries meaning here) ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.step { padding: 30px 26px; border-right: 1px solid var(--rule); }
.step:last-child { border-right: none; }
.step-n {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; color: var(--signal); margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; font-size: 21px; }
.step p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
}

/* ---------- audience cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card .textlink { margin-top: auto; padding-top: 20px; align-self: flex-start; }

.band-dark .card {
  background: var(--slate-2); border-color: var(--rule-dark);
}
.band-dark .card p { color: var(--muted-dk); }
.band-dark a.card:hover { border-color: var(--signal); }

/* ---------- feature list ---------- */

.feat { border-top: 1px solid var(--rule); padding-top: 18px; }
.feat h4 { margin-bottom: 7px; }
.feat p { font-size: 15px; color: var(--muted); }
.band-dark .feat { border-top-color: var(--rule-dark); }
.band-dark .feat p { color: var(--muted-dk); }

/* ---------- code ---------- */

.code {
  background: var(--slate); color: #E8EBEF;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.72;
  padding: 22px 24px; overflow-x: auto;
  border: 1px solid var(--rule-dark);
}
.band-dark .code { background: #1A2029; }
.code .c { color: #7C8894; }
.code .s { color: #FFB58F; }
.code .k { color: #6FD3DD; }
.code-head {
  background: var(--slate-2); color: var(--muted-dk);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 10px 24px;
  border: 1px solid var(--rule-dark); border-bottom: none;
  display: flex; justify-content: space-between;
}

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--rule); }
.tier { background: var(--paper); border-right: 1px solid var(--rule); padding: 32px 28px 30px; display: flex; flex-direction: column; }
.tier:last-child { border-right: none; }
.tier-mark { background: var(--stock-2); }
.tier-name { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--reg); margin-bottom: 14px; }
.tier-mark .tier-name { color: var(--signal); }
.tier h3 { font-size: 27px; margin-bottom: 8px; }
.tier-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.tier ul { list-style: none; margin: 0 0 26px; padding: 0; }
.tier li { font-size: 15px; padding: 9px 0 9px 20px; border-top: 1px solid var(--rule); position: relative; }
.tier li::before { content: "—"; position: absolute; left: 0; color: var(--signal); font-family: var(--f-mono); font-size: 12px; }
.tier .btn { margin-top: auto; justify-content: center; }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--rule); }
  .tier:last-child { border-bottom: none; }
}

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

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.tbl th {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.tbl td.num { font-family: var(--f-mono); }
.band-dark .tbl th, .band-dark .tbl td { border-bottom-color: var(--rule-dark); }
.band-dark .tbl th { color: var(--muted-dk); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); }
.band-dark .tbl-wrap { border-color: var(--rule-dark); background: var(--slate-2); }

/* ---------- callout ---------- */

.callout {
  border-left: 3px solid var(--signal);
  padding: 4px 0 4px 22px;
  font-size: 16.5px;
}
.callout strong { font-weight: 600; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-family: var(--f-display);
  font-weight: 600; font-size: 18px; letter-spacing: -0.015em;
  list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-family: var(--f-mono); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 22px; color: var(--muted); max-width: 74ch; font-size: 16px; }

/* ---------- cta band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.foot { background: var(--slate); color: var(--muted-dk); padding: 56px 0 34px; font-size: 14.5px; }
.foot a { color: var(--muted-dk); text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 42px; }
.foot h5 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper); margin: 0 0 16px; font-weight: 600;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot .brand { color: var(--paper); margin-bottom: 14px; }
.foot-note {
  border-top: 1px solid var(--rule-dark); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Quando house rule ----------
   The mark is built from 45° strokes, which is also the canvas rotation-snap
   increment. Used as a fine rule at the two structural edges of every page. */

.qbar,
.foot::before {
  content: "";
  display: block;
  height: 2px;
  background: repeating-linear-gradient(
    135deg,
    var(--q-green)  0 88px,
    var(--q-yellow) 88px 160px,
    var(--q-blue)   160px 208px,
    var(--q-red)    208px 232px
  );
}
.foot { position: relative; }
.foot::before { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Quando endorsement lockup ---------- */

.q-lockup {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; text-decoration: none;
  padding-top: 20px; border-top: 1px solid var(--rule-dark);
}
.q-lockup svg { flex: none; width: 34px; height: 34px; }
.q-lockup b {
  display: block; color: var(--paper); font-weight: 600;
  font-size: 13.5px; letter-spacing: -0.005em;
}
.q-lockup span span {
  display: block; font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dk); margin-top: 3px;
}
.q-lockup:hover b { color: var(--q-blue); }

/* ---------- logos ---------- */

/* Nav sits on light stock, so it uses the coloured mark (background-agnostic)
   with the wordmark set in type. */

/* Footer is dark, so the supplied white wordmark works as-is. */

/* The Quando logo's type is dark grey, so on the dark footer it sits on a
   light containment plate rather than being recoloured. */
.q-lockup {
  display: inline-block;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  text-decoration: none;
}
.q-plate {
  display: inline-block;
  background: var(--paper);
  padding: 11px 15px;
  border: 1px solid var(--rule-dark);
}
.q-plate img { height: 30px; width: auto; }
.q-lockup .q-cap {
  display: block; margin-top: 11px;
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted-dk);
}
.q-lockup:hover .q-plate { border-color: var(--q-blue); }

/* ---------- a11y / motion ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
