/* ==========================================================================
   Qpro+ Partner Registry — stylesheet
   Built on Qpro-Brand-Reference.md v1.0.

   PART A  §1–§8  Canonical. Transcribed from the reference. Do not edit
                  here — edit the reference, then bring the change across.
   PART B         Extensions. The reference defines NO form components,
                  because the site is marketing pages and this is an
                  application. Everything in Part B is new, built from
                  system parts, and listed in the README so it can be
                  folded back into the reference or overruled.

   Two rules this file obeys:
     §2.1  The Quando four-colour palette is not a UI palette. It appears
           only in .brandrule.
     §2.3  Signal orange marks exactly four things: live/resolved data, the
           primary action, the + in the lockup, priority status.
   ========================================================================== */

@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');

/* ========================= PART A — CANONICAL ========================= */

/* §10 starter block */
: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; --reg:#0E7C86;

  --brand-green:#01B050; --brand-blue:#02B0F0;
  --brand-yellow:#FFC001; --brand-red:#FF0402;

  --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;

  /* EXTENSION — the reference defines no error state. See README. */
  --alert:#A8271E;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
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; }
.shell{ width:100%; max-width:var(--shell); margin:0 auto; padding:0 26px; }

/* §3.2 scale */
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; }

/* §3.4 eyebrow */
.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; }
.band-dark .eyebrow{ color:var(--signal); }
.band-dark .eyebrow::before{ background:var(--signal); }

/* §4 layout */
.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-paper{ background:var(--paper); }
.rule-top{ border-top:1px solid var(--rule); }
.band-dark.rule-top{ border-top-color:var(--rule-dark); }

.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); }
@media (max-width:900px){ .grid-3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

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

/* §1 brand rule — one 135° gradient, four equal quarters, never reordered */
.brandrule{
  height:7px;
  background:linear-gradient(135deg,
    var(--brand-green) 0 25%,
    var(--brand-blue)  25% 50%,
    var(--brand-yellow)50% 75%,
    var(--brand-red)   75% 100%);
}

/* §5.1 nav — dark, because the Qpro+ logotype is white-only */
.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; color:var(--paper);
  display:flex; align-items:center; gap:7px;
}
.brand span{ color:var(--signal); }        /* the + is always signal orange */
.brand-logo{ height:38px; width:auto; display:block; }
.foot .brand-logo{ height:40px; margin-bottom:6px; }
.endorse-logo{ height:44px; width:auto; }

.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; font-weight:600;
  text-transform:uppercase; letter-spacing:0.07em;
  color:var(--paper); background:transparent;
  border:1px solid var(--muted-dk); padding:8px 14px; cursor:pointer;
}
.nav-cta:hover{ background:var(--signal); border-color:var(--signal); color:#fff; }
@media (max-width:860px){
  .nav-links{ gap:16px; }
  .nav-hide-sm{ display:none; }
}

/* §5.4 buttons — square, mono, uppercase. No radius anywhere in this system. */
.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;
  background:transparent; color:var(--ink); cursor:pointer;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--signal); color:#fff; }   /* §2.3(2) */
.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; }
.btn[disabled]{ opacity:.42; cursor:not-allowed; transform:none; }

.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); }

/* §5.5 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);
}
.strip-in b{ color:var(--ink); font-weight:600; }
@media (max-width:700px){ .strip-in{ font-size:11px; gap:10px 22px; } }

/* §5.7 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;
}
.card h3{ margin-bottom:12px; }
.card p{ font-size:15.5px; color:var(--muted); }

/* §5.8 feature item */
.feat{ border-top:1px solid var(--rule); padding-top:18px; }
.feat h4{ margin-bottom:7px; }
.feat p{ font-size:15px; color:var(--muted); }

/* §5.11 callout — one per band */
.callout{ border-left:3px solid var(--signal); padding:4px 0 4px 22px; font-size:16.5px; }
.callout strong{ font-weight:600; }

/* §5.15 endorsement strip */
.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-in span{
  font-family:var(--f-mono); font-size:11px;
  letter-spacing:0.09em; text-transform:uppercase; color:var(--muted);
}

/* §5.16 footer — trimmed to one row; the portal has no marketing columns */
.foot{ background:var(--slate); color:var(--muted-dk); padding:40px 0 30px; font-size:14.5px; }
.foot a{ color:var(--muted-dk); text-decoration:none; }
.foot a:hover{ color:var(--paper); }
.foot .brand{ 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;
}

/* §8 accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible{
  outline:2px solid var(--signal); outline-offset:3px;
}

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

/* ======================== PART B — EXTENSIONS ======================== */
/* New components. Each is built from system parts and noted in the README. */

/* B1 · Record — one registration. Derives from §5.7 card. The spec block is
   the §6 spec-strip pattern; the counter is the §6 stat grid. */
.record{ margin-bottom:18px; }
.record-head{ display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.record-code{
  font-family:var(--f-mono); font-size:11px; font-weight:600;
  letter-spacing:0.15em; text-transform:uppercase; color:var(--reg); margin-bottom:9px;
}
.record h3{ margin-bottom:5px; }
.record-domain{ font-family:var(--f-mono); font-size:13px; color:var(--muted); }
.record-right{ text-align:right; }

/* §6 spec strip — mono grid styled like a drawing callout */
.spec-strip{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:18px;
  margin-top:24px; padding-top:20px; border-top:1px solid var(--rule);
}
.spec-k{
  font-family:var(--f-mono); font-size:10.5px; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); margin-bottom:5px;
}
.spec-v{ font-family:var(--f-mono); font-size:13px; word-break:break-word; }

/* §6 stat grid — large display numerals over mono labels */
.stat{ margin-top:12px; }
.stat-n{ font-family:var(--f-display); font-size:44px; font-weight:800;
         line-height:1; letter-spacing:-0.03em; }
.stat-l{ font-family:var(--f-mono); font-size:10.5px; font-weight:600;
         letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); margin-top:7px; }
.stat-live .stat-n{ color:var(--signal); }   /* §2.3(4) priority status */

/* B2 · Pill — status. §6 pill-tag semantics: orange = now/priority,
   teal = next/pending, muted = later/closed. Every pill carries its own
   word, which answers §11 item 9 — no colour-only encoding. */
.pill{
  display:inline-block; font-family:var(--f-mono); font-size:10.5px; font-weight:600;
  letter-spacing:0.14em; text-transform:uppercase; padding:5px 10px;
}
.pill-live{ background:var(--signal); color:#fff; }
.pill-next{ background:var(--stock-2); color:var(--reg); }
.pill-later{ background:var(--stock-2); color:var(--muted); }
.pill-closed{ background:var(--slate); color:var(--paper); }
.pill-stop{ background:var(--stock-2); color:var(--alert); }

/* B3 · Notes. Neutral note and watch-out are §6 components; the alert
   variant is new, because the system has no error state. */
.note{ margin-top:20px; padding:14px 16px; font-size:15px;
       background:var(--paper); border:1px solid var(--rule); }
.watchout{ margin-top:20px; padding:14px 16px; font-size:15px;
           background:var(--stock-2); border-left:3px solid var(--signal); }
.alertbox{ margin-top:20px; padding:14px 16px; font-size:15px;
           background:var(--stock-2); border-left:3px solid var(--alert); }
.note-row{ display:flex; gap:16px; flex-wrap:wrap; }
.note-row > *{ flex:1 1 280px; margin-top:0; }

/* B4 · Forms. Nothing in the reference covers these. Built from system
   parts: mono uppercase labels borrowed from §5.10 table headers, hairline
   borders, square corners, signal focus ring from §8. */
.field{ margin-bottom:20px; }
.field > label{
  display:block; font-family:var(--f-mono); font-size:10.5px; font-weight:600;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); margin-bottom:7px;
}
.input{
  width:100%; padding:13px 15px; border:1px solid var(--rule); background:#fff;
  font-family:var(--f-body); font-size:16px; line-height:1.5; color:var(--ink);
  transition:border-color .16s ease;
}
.input:focus{ border-color:var(--reg); }
textarea.input{ resize:vertical; }
.input-bad{ border-color:var(--alert); }
.err-tag{ font-family:var(--f-mono); font-size:10.5px; color:var(--alert);
          letter-spacing:0; text-transform:none; margin-left:9px; }
.hint{ font-size:14px; color:var(--muted); margin-top:6px; line-height:1.45; }
.field-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .field-2{ grid-template-columns:1fr; } }

.check{
  display:flex; gap:12px; align-items:flex-start; margin-top:16px; padding:15px 16px;
  background:var(--paper); border:1px solid var(--rule);
  font-size:15px; line-height:1.55; cursor:pointer;
}
.check input{ margin-top:4px; accent-color:var(--reg); flex:none; }  /* §2.3 teal: registration ticks */
.check-bad{ border-color:var(--alert); }
.form-section{ margin:36px 0 20px; }
.btn-full{ width:100%; justify-content:center; margin-top:26px; }

/* B5 · App chrome — flash, filters, empty state, action row */
.flash{ font-family:var(--f-mono); font-size:12.5px; letter-spacing:0.07em;
        text-transform:uppercase; padding:15px 0; background:var(--paper);
        border-bottom:1px solid var(--rule); }
.flash-ok{ border-bottom-color:var(--reg); }
.flash-warn{ border-bottom-color:var(--alert); }
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin:28px 0 26px; }
.filters .btn{ padding:10px 16px; font-size:12px; }
.filters .btn-on{ background:var(--slate); color:var(--paper); }
.filters .count{ opacity:.62; }
.empty{ padding:44px 26px; border:1px dashed var(--rule); color:var(--muted); font-size:16px; }
.actions{ display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start; margin-top:24px; }
.actions .btn{ padding:12px 18px; font-size:12.5px; }
.inline{ display:inline; }
.panel{ flex-basis:100%; margin-top:18px; padding:24px;
        background:var(--stock); border:1px solid var(--rule); }
.whoami{ font-family:var(--f-mono); font-size:11px; letter-spacing:0.08em;
         text-transform:uppercase; color:var(--muted-dk); text-align:right;
         margin-left:auto; line-height:1.6; }
.whoami b{ color:var(--paper); font-weight:600; }
.split{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);
        gap:clamp(28px,3.4vw,52px); }
@media (max-width:940px){ .split{ grid-template-columns:1fr; } }
.narrow{ max-width:470px; margin:0 auto; }
.mono{ font-family:var(--f-mono); }
.dim{ color:var(--muted); }
.stop{ color:var(--alert); }
