/* ==========================================================================
   QuroPanel design system
   Montserrat only. Six brand colourways driven by one variable per page.
   Light and dark, following the OS with a manual override.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  /* Brand palette, from the owner's swatch sheet (05-BRAND.md) */
  --green:  #44af69;
  --red:    #f8333c;
  --orange: #fcab10;
  --blue:   #2b9eb3;
  --sand:   #dbd5b5;
  --violet: #8338ec;

  /* Default colourway. A page overrides --brand* and everything follows. */
  --brand:      var(--green);
  --brand-ink:  #2f7d4a;   /* text-safe on white; the raw brand often is not */
  --brand-soft: #eaf6ef;
  --brand-line: #bfe3cd;

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --step: 8px;
  --wrap: 1200px;
  --wrap-narrow: 760px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light dark;
}

/* Colourways. Each sets a text-safe ink because several brand hues fail
   contrast on white -- orange and sand badly so. */
[data-brand="green"]  { --brand: var(--green);  --brand-ink:#2f7d4a; --brand-soft:#eaf6ef; --brand-line:#bfe3cd; }
[data-brand="red"]    { --brand: var(--red);    --brand-ink:#c9202a; --brand-soft:#fdecec; --brand-line:#f8c3c6; }
[data-brand="orange"] { --brand: var(--orange); --brand-ink:#8a5a00; --brand-soft:#fff4de; --brand-line:#f6d79a; }
[data-brand="blue"]   { --brand: var(--blue);   --brand-ink:#1d7385; --brand-soft:#e6f4f7; --brand-line:#a9dbe5; }
[data-brand="violet"] { --brand: var(--violet); --brand-ink:#6a24c8; --brand-soft:#f2e9fe; --brand-line:#d5bcf7; }
[data-brand="sand"]   { --brand: var(--sand);   --brand-ink:#6b6446; --brand-soft:#f7f5ec; --brand-line:#ddd7bd; }

/* Light surface */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --bg-sunk:   #eef0f4;
  --panel:     #ffffff;
  --ink:       #14161a;
  --ink-mid:   #4a5058;
  --ink-soft:  #6b727c;
  --line:      #e3e6ea;
  --line-soft: #eef0f3;
  --shadow-sm: 0 1px 2px rgba(16,18,22,.06), 0 1px 3px rgba(16,18,22,.05);
  --shadow:    0 4px 12px rgba(16,18,22,.07), 0 2px 4px rgba(16,18,22,.04);
  --shadow-lg: 0 18px 40px rgba(16,18,22,.12), 0 4px 12px rgba(16,18,22,.06);
}

/* Dark surface. Applied by OS preference, then overridden by the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d0f13;
    --bg-alt:    #14171d;
    --bg-sunk:   #1a1e25;
    --panel:     #161a20;
    --ink:       #eef1f5;
    --ink-mid:   #b3bac4;
    --ink-soft:  #8b939f;
    --line:      #262c35;
    --line-soft: #1e232b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 4px 14px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 44px rgba(0,0,0,.55);
    --brand-soft: color-mix(in srgb, var(--brand) 14%, #0d0f13);
    --brand-line: color-mix(in srgb, var(--brand) 34%, #0d0f13);
    --brand-ink:  color-mix(in srgb, var(--brand) 78%, #ffffff);
  }
}
:root[data-theme="dark"] {
  --bg:        #0d0f13;
  --bg-alt:    #14171d;
  --bg-sunk:   #1a1e25;
  --panel:     #161a20;
  --ink:       #eef1f5;
  --ink-mid:   #b3bac4;
  --ink-soft:  #8b939f;
  --line:      #262c35;
  --line-soft: #1e232b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow:    0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 44px rgba(0,0,0,.55);
  --brand-soft: color-mix(in srgb, var(--brand) 14%, #0d0f13);
  --brand-line: color-mix(in srgb, var(--brand) 34%, #0d0f13);
  --brand-ink:  color-mix(in srgb, var(--brand) 78%, #ffffff);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------- type */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1.0625rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.display {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: .35em;
}
.lead { font-size: 1.125rem; color: var(--ink-mid); max-width: 62ch; }
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-ink); margin: 0 0 .75rem;
}
.small { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }

/* ----------------------------------------------------------------- layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--sunk { background: var(--bg-sunk); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------------ icons */
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.28em; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 2rem; height: 2rem; }
.i-xl { width: 2.5rem; height: 2.5rem; }
.i3d { width: 64px; height: 64px; }

/* Animated icons. Motion is CSS only -- no JS, no Lottie runtime, and it all
   collapses under prefers-reduced-motion via the global rule above. */
@keyframes qp-float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes qp-spin   { to { transform: rotate(360deg) } }
@keyframes qp-pulse  { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.09);opacity:.85} }
@keyframes qp-launch { 0%{transform:translate(0,0)} 55%{transform:translate(5px,-7px)} 100%{transform:translate(0,0)} }
@keyframes qp-swing  { 0%,100%{transform:rotate(0)} 25%{transform:rotate(11deg)} 75%{transform:rotate(-11deg)} }
@keyframes qp-draw   { from { stroke-dashoffset: 260 } to { stroke-dashoffset: 0 } }
@keyframes qp-rise   { from { opacity:0; transform: translateY(14px) } to { opacity:1; transform:none } }

.anim-float  { animation: qp-float 3.6s var(--ease) infinite; }
.anim-pulse  { animation: qp-pulse 2.4s var(--ease) infinite; }
.anim-spin   { animation: qp-spin 9s linear infinite; }
/* Hover-triggered: cheap, and it only plays when someone is looking at it. */
.card:hover .on-hover-launch { animation: qp-launch .7s var(--ease); }
.card:hover .on-hover-swing  { animation: qp-swing .7s var(--ease); }
.card:hover .on-hover-spin   { animation: qp-spin 1.1s linear; }
.card:hover .on-hover-pulse  { animation: qp-pulse .8s var(--ease); }
.card:hover .i3d             { transform: scale(1.07) translateY(-3px); }
.i3d { transition: transform .35s var(--ease); }

/* Stroke-drawing effect for outline icons in the hero */
.anim-draw path {
  stroke-dasharray: 260; animation: qp-draw 1.6s var(--ease) forwards;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9375rem; letter-spacing: -.01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); filter: brightness(1.05); }
/* Orange and sand fail contrast with white text, so they get dark ink. */
[data-brand="orange"] .btn-primary, [data-brand="sand"] .btn-primary { color: #23200f; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-quiet { background: transparent; color: var(--brand-ink); padding-inline: .4rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ----------------------------------------------------------------- badges */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  background: var(--brand-soft); color: var(--brand-ink);
  border: 1px solid var(--brand-line);
}
.pill-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.pill-neutral { background: var(--bg-sunk); color: var(--ink-mid); border-color: var(--line); }
.tag {
  display: inline-block; padding: .18rem .5rem; border-radius: 5px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg-sunk); color: var(--ink-soft);
}
.tag-planned { background: var(--bg-sunk); color: var(--ink-soft); }
.tag-progress { background: var(--brand-soft); color: var(--brand-ink); }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}
.card--link:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-mid); font-size: .9375rem; margin-bottom: 0; }
.card-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--brand-soft); color: var(--brand-ink);
}
.card-icon .i { width: 1.6rem; height: 1.6rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem;
  font-weight: 700; font-size: .875rem; color: var(--brand-ink); text-decoration: none;
}
.card--link:hover .card-link { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; display: block; }

/* Workspace cards carry their own colourway */
.ws-card { border-top: 3px solid var(--brand); }

/* --------------------------------------------------------------- feature  */
.feature { display: flex; gap: .85rem; align-items: flex-start; }
.feature .i { color: var(--brand); margin-top: .3rem; }
.feature h4 { margin-bottom: .15rem; }
.feature p { font-size: .9rem; color: var(--ink-mid); margin: 0; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; }
.checks .i { color: var(--brand); margin-top: .32rem; width: 1.05rem; height: 1.05rem; }

/* Dense capability lists, the aaPanel "everything at a glance" pass */
.caps { columns: 3 200px; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.caps li {
  break-inside: avoid; padding: .3rem 0 .3rem 1.4rem; position: relative;
  font-size: .9rem; color: var(--ink-mid);
}
.caps li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--brand);
}

/* ------------------------------------------------------------------ header */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand b { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); }

.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .7rem; border-radius: 8px; background: none; border: 0;
  font-size: .9375rem; font-weight: 600; color: var(--ink-mid);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-item[data-open="true"] .nav-link { color: var(--ink); background: var(--bg-alt); }
.nav-link .i-sm { transition: transform .2s var(--ease); }
.nav-item[data-open="true"] .nav-link .i-sm { transform: rotate(180deg); }

/* Mega menu, the cpanel.net pattern: grouped columns, not a flat list */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.25rem; z-index: 60;
  display: none; min-width: max-content;
}
.nav-item[data-open="true"] .mega { display: block; animation: qp-rise .18s var(--ease); }
.mega-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(210px, 1fr)); gap: .25rem 1.5rem; }
.mega-group-title {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); padding: .5rem .6rem .3rem;
}
.mega a {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.mega a:hover { background: var(--bg-alt); }
.mega a .i { color: var(--brand); margin-top: .18rem; }
.mega a span { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.mega a small { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 400; line-height: 1.4; }

.hdr-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; color: var(--ink-mid); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.burger { display: none; }

/* Mobile drawer */
.drawer { display: none; }
@media (max-width: 1040px) {
  .nav, .hdr-actions .btn { display: none; }
  .burger { display: grid; }
  .drawer {
    display: block; position: fixed; inset: 68px 0 0; z-index: 90;
    background: var(--bg); overflow-y: auto; padding: 1.25rem 0 4rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s;
  }
  .drawer[data-open="true"] { transform: none; visibility: visible; }
  body[data-locked="true"] { overflow: hidden; }
  .dr-sec { border-bottom: 1px solid var(--line-soft); }
  .dr-toggle {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1rem .25rem; background: none; border: 0; cursor: pointer;
    font-size: 1rem; font-weight: 700; color: var(--ink);
  }
  .dr-toggle .i-sm { transition: transform .2s var(--ease); color: var(--ink-soft); }
  .dr-sec[data-open="true"] .dr-toggle .i-sm { transform: rotate(180deg); }
  .dr-body { display: none; padding-bottom: .75rem; }
  .dr-sec[data-open="true"] .dr-body { display: block; }
  .dr-body a {
    display: flex; gap: .6rem; align-items: center;
    padding: .6rem .25rem .6rem 1rem; text-decoration: none;
    color: var(--ink-mid); font-size: .9375rem; font-weight: 600;
  }
  .dr-body a .i { color: var(--brand); }
  .drawer .btn { display: inline-flex; width: 100%; justify-content: center; margin-top: 1rem; }
}

/* ------------------------------------------------------------------- hero */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 620px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%,
    color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); } }
.hero p.lead { font-size: 1.1875rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------------------------- panel mock (built, not shot)
   The marketing site shows the product as live markup rather than a screenshot:
   the panel does not exist yet, the supplied mockups carry a wrong logo, and
   real markup stays sharp, recolours per page and is swappable later. */
.mock {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.45;
}
.mock-bar {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.mock-dots { display: flex; gap: .32rem; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-url {
  flex: 1; text-align: center; font-size: 11px; color: var(--ink-soft);
  background: var(--bg); border-radius: 5px; padding: .18rem .6rem;
  border: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden;
}
.mock-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
@media (max-width: 620px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }

.mock-side { background: #10131a; color: #97a1b0; padding: .85rem .6rem; }
:root[data-theme="light"] .mock-side { background: #10131a; }
.mock-brand {
  display: flex; align-items: center; gap: .45rem; padding: .3rem .5rem 1rem;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.02em;
}
.mock-brand .i { color: var(--brand); }
.mock-nav { display: grid; gap: 1px; }
.mock-nav a {
  display: flex; align-items: center; gap: .55rem; padding: .42rem .5rem;
  border-radius: 7px; color: #97a1b0; text-decoration: none; font-size: 12.5px; font-weight: 500;
}
.mock-nav a .i { width: 15px; height: 15px; }
.mock-nav a[aria-current] { background: var(--brand); color: #fff; font-weight: 700; }
[data-brand="orange"] .mock-nav a[aria-current], [data-brand="sand"] .mock-nav a[aria-current] { color: #23200f; }

.mock-main { padding: 1rem; background: var(--bg-alt); }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; gap: 1rem; }
.mock-head h4 { margin: 0; font-size: 15px; }
.mock-search {
  flex: 1; max-width: 260px; display: flex; align-items: center; gap: .4rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  padding: .3rem .55rem; color: var(--ink-soft); font-size: 11.5px;
}
.mock-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: .5rem; margin-bottom: .85rem; }
.mock-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .65rem; }
.mock-stat b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mock-stat span { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mock-meter { height: 3px; border-radius: 2px; background: var(--line); margin-top: .4rem; overflow: hidden; }
.mock-meter i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }

/* The cPanel-style tool grid, generated from the documented dashboard
   categories in 02-PRODUCT-PLANNING.md section 6 */
.mock-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .45rem; }
.mock-tool {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: .6rem .4rem; text-align: center; transition: border-color .2s, transform .2s;
}
.mock-tool:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.mock-tool .i { width: 21px; height: 21px; margin: 0 auto .28rem; color: var(--brand); }
.mock-tool span { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-mid); line-height: 1.3; }

/* --------------------------------------------------------------- tabs (aaPanel
   "Core Features" pattern -- the best way to show modules without a text wall) */
.tabs-nav {
  display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem;
  margin-bottom: 1.5rem; scrollbar-width: thin;
}
.tab-btn {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-mid);
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: all .2s var(--ease);
}
.tab-btn:hover { border-color: var(--brand-line); color: var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-brand="orange"] .tab-btn[aria-selected="true"],
[data-brand="sand"] .tab-btn[aria-selected="true"] { color: #23200f; }
.tab-btn .i { width: 1.05rem; height: 1.05rem; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: qp-rise .25s var(--ease); }
.tab-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .tab-split { grid-template-columns: 1fr 1.15fr; } }

/* ------------------------------------------------------------------ table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .9rem; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: var(--bg-alt); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
  position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
td.mark { text-align: center; }
.mark-yes { color: var(--green); }
.mark-no  { color: var(--ink-soft); opacity: .5; }
.mark-part{ color: var(--orange); }
th.is-us, td.is-us { background: var(--brand-soft); }

/* --------------------------------------------------------------- accordion */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  padding: 1.1rem 1.35rem; cursor: pointer; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc summary:hover { background: var(--bg-alt); }
.acc-body { padding: 0 1.35rem 1.25rem; color: var(--ink-mid); font-size: .9375rem; max-width: 78ch; }

/* ------------------------------------------------------------------ callout */
.callout {
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
  display: flex; gap: .9rem; align-items: flex-start;
}
.callout .i { color: var(--brand-ink); flex: none; margin-top: .2rem; }
.callout p { font-size: .9375rem; color: var(--ink-mid); }
.callout strong { color: var(--ink); }
.callout--plain { background: var(--bg-alt); border-color: var(--line); }

/* --------------------------------------------------------------- CTA band */
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-3 { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 820px) { .cta-3 { grid-template-columns: repeat(3, 1fr); } }
.cta-3 h3 { font-size: 1.0625rem; }
.cta-3 p { font-size: .9rem; color: var(--ink-mid); }

/* ------------------------------------------------------------- stack strip */
.stack-strip {
  display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem;
  align-items: center; justify-content: center;
}
.stack-strip figure { margin: 0; display: grid; justify-items: center; gap: .45rem; width: 76px; }
.stack-strip svg { width: 34px; height: 34px; }
.stack-strip figcaption { font-size: .72rem; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* ------------------------------------------------------------------ footer */
.ftr { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 3.5rem 0 1.75rem; }
.ftr-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ftr-brand { grid-column: 1 / -1; max-width: 34ch; }
@media (min-width: 900px) { .ftr-brand { grid-column: span 2; } }
.ftr-brand img { height: 30px; margin-bottom: .9rem; }
.ftr-brand p { font-size: .875rem; color: var(--ink-soft); }
.ftr h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .9rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ftr a { color: var(--ink-mid); text-decoration: none; font-size: .875rem; }
.ftr a:hover { color: var(--brand-ink); text-decoration: underline; }
.ftr-base {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.ftr-base p { font-size: .8125rem; color: var(--ink-soft); margin: 0; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.ftr-legal a { font-size: .8125rem; }

/* ------------------------------------------------------------------- misc */
.breadcrumb { display: flex; gap: .45rem; align-items: center; font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-ink); }
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 340px; z-index: -1;
  background: linear-gradient(180deg, var(--brand-soft), transparent);
}
.anchor-nav { position: sticky; top: 68px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; }
.anchor-nav a {
  display: block; padding: .45rem .8rem; border-radius: 7px; white-space: nowrap;
  font-size: .875rem; font-weight: 600; color: var(--ink-mid); text-decoration: none;
}
.anchor-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose code {
  background: var(--bg-sunk); padding: .12em .38em; border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .875em;
}
pre {
  background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; overflow-x: auto; font-size: .82rem; line-height: 1.65;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ------------------------------------------------------- announcement bar */
.announce {
  background: var(--brand-soft); border-bottom: 1px solid var(--brand-line);
  font-size: .875rem;
}
.announce-in { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem 0; }
.announce p { margin: 0; color: var(--ink-mid); flex: 1 1 320px; }
.announce-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.announce-links a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 700; color: var(--brand-ink); text-decoration: none; white-space: nowrap;
}
.announce-links a:hover { text-decoration: underline; }
@media (max-width: 700px) { .announce { display: none; } }

/* -------------------------------------------------------------- workflow  */
.flow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.flow-step {
  flex: 1 1 130px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .85rem .9rem; position: relative;
  display: flex; flex-direction: column; gap: .3rem;
}
.flow-step span {
  font-size: .7rem; font-weight: 800; color: var(--brand);
  letter-spacing: .06em;
}
.flow-step b { font-size: .875rem; font-weight: 700; line-height: 1.35; }
.flow-step::after {
  content: ""; position: absolute; right: -.5rem; top: 50%; z-index: 1;
  width: 7px; height: 7px; translate: 0 -50%; rotate: -45deg;
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
}
.flow-step:last-child::after { display: none; }
.flow--tight .flow-step { flex-basis: 108px; padding: .6rem .7rem; }
.flow--tight .flow-step b { font-size: .8125rem; }

/* ---------------------------------------------------------- dark section */
.section--dark {
  background: #101725; color: #f5f7fb;
  border-block: 1px solid #263149;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark p { color: #a8b2c3; }
.section--dark .eyebrow { color: color-mix(in srgb, var(--brand) 72%, #ffffff); }
.section--dark .btn-ghost { background: transparent; color: #f5f7fb; border-color: #34405c; }
.section--dark .btn-ghost:hover { border-color: var(--brand); color: #fff; }
.section--dark pre { background: #0a0f1a; border-color: #263149; color: #cdd6e4; }

.build-log { font-size: .82rem; line-height: 1.9; }
.build-log b { font-weight: 700; display: inline-block; width: 1.1rem; }
.build-log .ok   { color: #44af69; }
.build-log .run  { color: #fcab10; animation: qp-pulse 1.6s var(--ease) infinite; }
.build-log .wait { color: #5a6780; }

/* ------------------------------------------------------------- stat tile */
.stat-num {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--brand-ink); line-height: 1.1; margin-bottom: .35rem;
}

/* Tighter caps columns on small screens */
@media (max-width: 640px) { .caps { columns: 1; } }

/* ---------------------------------------------------------------- fixes */

/* Grid and flex children default to min-width:auto, so a wide child -- a
   scrolling tab strip, a wide table, the panel mock -- forces its track wider
   than the viewport and the whole page scrolls sideways. These children must be
   allowed to shrink so their own overflow-x does the scrolling instead. */
.hero-grid > *, .tab-split > *, .grid > *, .cta-3 > * { min-width: 0; }
.tabs-nav, .table-scroll, .mock, pre { max-width: 100%; }
.mock-main { min-width: 0; }

/* Long unbroken strings (a domain, a command) should wrap rather than widen
   the page on a narrow screen. */
h1, h2, h3, .display { overflow-wrap: break-word; }

/* Logo has to invert in dark mode. It is an <img>, so page CSS cannot recolour
   it -- both variants ship and CSS picks one. This works for the OS preference
   and for the manual toggle, which a <picture media=""> would not. */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark  { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark  { display: block; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark  { display: none; }

/* The footer sits on --bg-alt, which is light in light mode, so the footer
   logo follows the same rule. */
.ftr-brand .logo-dark, .ftr-brand .logo-light { height: 30px; width: auto; }

/* --------------------------------------------------- inline-style removal
   `style-src 'self'` blocks style attributes, and CSP hashes do not apply to
   them. Rather than weaken the policy to 'unsafe-inline', every inline style
   the generator used has a class here. */
.meter-21 i { width: 21%; }
.meter-38 i { width: 38%; }
.meter-52 i { width: 52%; }
.meter-64 i { width: 64%; }

.mega-grid { grid-template-columns: repeat(2, minmax(210px, 1fr)); }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(210px, 1fr)); }

.card-role { margin: .15rem 0 .6rem; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.row-between h3 { margin: 0; }
.mt-1 { margin-top: 1rem; }
.mi-auto { margin-inline: auto; }
.center-row { justify-content: center; }
.error-main { min-height: 70vh; display: grid; place-items: center; }
.error-logo { margin: 0 auto 2rem; }

/* ================================================================= UI AUDIT
   Fixes from the 2026-08-06 Playwright audit (46 pages x 3 viewports).
   ========================================================================= */

/* --- contrast -------------------------------------------------------------
   White text on the raw brand fill fails WCAG AA badly: amber 1.91:1,
   green 2.77:1, teal 3.16:1, red 3.80:1, sand 1.48:1 against a 4.5:1
   minimum. Only purple passed.

   Fix: solid fills use --brand-btn, a darker shade of the same hue that
   clears 4.5:1 with white. The vivid --brand stays for borders, meters,
   icons and other non-text marks, where 3:1 is the bar and it passes.
   Measured ratios against #fff are in the comments. */
:root          { --brand-btn: #2f7d4a; }  /* 5.06:1 */
[data-brand="green"]  { --brand-btn: #2f7d4a; }  /* 5.06:1 */
[data-brand="red"]    { --brand-btn: #c9202a; }  /* 5.64:1 */
[data-brand="orange"] { --brand-btn: #8a5a00; }  /* 5.93:1 */
[data-brand="blue"]   { --brand-btn: #1d7385; }  /* 5.46:1 */
[data-brand="violet"] { --brand-btn: #6a24c8; }  /* 7.78:1 */
[data-brand="sand"]   { --brand-btn: #6b6446; }  /* 6.31:1 */

.btn-primary { background: var(--brand-btn); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
/* The dark-ink exception is gone: every colourway now uses white on a
   darkened fill, so these two no longer need special-casing. */
[data-brand="orange"] .btn-primary,
[data-brand="sand"] .btn-primary { color: #fff; }

.skip { background: var(--brand-btn); color: #fff; }

.tab-btn[aria-selected="true"] { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
[data-brand="orange"] .tab-btn[aria-selected="true"],
[data-brand="sand"] .tab-btn[aria-selected="true"] { color: #fff; }

.mock-nav a[aria-current] { background: var(--brand-btn); color: #fff; }
[data-brand="orange"] .mock-nav a[aria-current],
[data-brand="sand"] .mock-nav a[aria-current] { color: #fff; }

/* .tag-planned measured 4.26:1 -- just under the bar. */
.tag { color: var(--ink-mid); }
.tag-planned { background: var(--bg-sunk); color: var(--ink-mid); }

/* In dark mode the darkened fill goes muddy, so lift it back toward the
   vivid brand -- against a dark surface that direction is the safe one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand-btn: color-mix(in srgb, var(--brand) 88%, #ffffff); }
}
:root[data-theme="dark"] { --brand-btn: color-mix(in srgb, var(--brand) 88%, #ffffff); }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .tab-btn[aria-selected="true"],
:root[data-theme="dark"] .mock-nav a[aria-current] { color: #0d0f13; }

/* --- tap target -----------------------------------------------------------
   The brand link measured 139x30 on mobile, under the 44px guideline. */
.brand { min-height: 44px; align-items: center; }

/* --- orphan grid rows -----------------------------------------------------
   auto-fit put 4 workspace cards on row one and left 3 stranded on row two.
   Seven cards read better as 3 + 3 + 1 than 4 + 3. */
.grid-ws { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 1080px) { .grid-ws { grid-template-columns: repeat(3, 1fr); } }

/* --- code inside a heading ------------------------------------------------
   /download/ has <code> in an <h2>; the pill background broke the line. */
h1 code, h2 code, h3 code {
  background: none; padding: 0; font-size: .92em; font-weight: 700;
  color: var(--brand-ink); white-space: nowrap;
}

/* --- feature groups replace the dense tables ------------------------------ */
.fgroup { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.fgroup + .fgroup { margin-top: .75rem; }
.fgroup-head {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.15rem;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.fgroup-head .i { color: var(--brand); }
.fgroup-head h4 { margin: 0; flex: 1; font-size: .9375rem; }
.fgroup ul {
  margin: 0; padding: .9rem 1.15rem; list-style: none;
  columns: 2 260px; column-gap: 2rem;
}
.fgroup li {
  break-inside: avoid; position: relative; padding: .25rem 0 .25rem 1.25rem;
  font-size: .9rem; color: var(--ink-mid);
}
.fgroup li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: .35rem; height: .35rem; border-radius: 50%; background: var(--brand);
}
@media (max-width: 560px) { .fgroup ul { columns: 1; } }

/* --- placeholder pages ----------------------------------------------------
   A hero plus a one-line note read as a broken page. Give them structure. */
.stub { display: grid; gap: 1.25rem; }
.stub-note {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.5rem; background: var(--bg-alt);
}
.stub-note h3 { margin-bottom: .35rem; font-size: 1.0625rem; }
.stub-note p { color: var(--ink-mid); font-size: .9375rem; }

/* Brand page swatches */
.swatch { height: 76px; border-radius: var(--radius-sm); background: var(--brand); }
.brand-sample { height: 44px; width: auto; margin: 0 auto; }
.checks .i.mark-x, .checks li .i[data-x] { color: var(--ink-soft); }

/* --- heading semantics vs visual size -------------------------------------
   These are h2 for document structure but must not look like page headings. */
.cta-h { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .35rem; }
.ftr-h { font-size: .78rem; font-weight: 700; text-transform: uppercase;
         letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .9rem; }
.mock-title { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.fgroup-head h3 { margin: 0; flex: 1; font-size: .9375rem; }
.feature h3 { margin-bottom: .15rem; font-size: 1.0625rem; }

/* --- remaining contrast failures -----------------------------------------
   All of these were vivid brand hues used as small text on a light surface. */
.flow-step span { color: var(--brand-btn); }
.mark-yes  { color: var(--brand-btn); }        /* was raw green, 2.50:1 */
.mark-part { color: #8a5a00; }                 /* was raw amber, 1.91:1 */
.mark-no   { color: var(--ink-soft); opacity: 1; }
th.is-us, td.is-us { background: var(--brand-soft); color: var(--ink); }
thead th.is-us { color: var(--ink); }

/* --- tap targets ---------------------------------------------------------- */
.breadcrumb a, .card-link { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 700px) { .breadcrumb a, .card-link { min-height: 44px; } }
