/* =========================================================
   Zinux Products — stylesheet
   Sibling of zinuxtech.com: same ink / porcelain / signal,
   same Bricolage + Instrument + Plex Mono. The one object this
   site adds is the demo access pass.
   ========================================================= */

/* ---------- fonts (self-hosted, copied from the zinux theme) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../fonts/instrument-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../fonts/instrument-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../fonts/instrument-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("../fonts/instrument-700-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/plexmono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/plexmono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("../fonts/plexmono-600-latin.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --ink: #16130e;
  --ink-2: #1f1b14;
  --ink-3: #2a251c;
  --porcelain: #f2f1ec;
  --paper: #ffffff;
  --signal: #635bff;
  --signal-deep: #4f46e5;
  --signal-lift: #8b85ff;
  --signal-wash: #edecff;
  --text: #26221b;
  --muted: #6e6a60;
  --text-inv: #f5f3ee;
  --muted-inv: #a59e8f;
  --line: #dcd9d0;
  --line-strong: #26221b;
  --line-inv: rgba(245, 243, 238, 0.16);
  --ok: #22c55e;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, Menlo, monospace;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sect: clamp(4rem, 3rem + 4vw, 6.5rem);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-md: 0 4px 14px rgba(22, 19, 14, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(22, 19, 14, 0.28), 0 6px 18px -8px rgba(22, 19, 14, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --topbar: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 1rem); }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--text);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--signal); color: #fff; padding: .5rem .9rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font: 800 clamp(2.4rem, 1.4rem + 3.2vw, 4.1rem)/1 var(--font-display);
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
.display__accent { display: block; color: var(--signal); }
.h2 {
  font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 { font: 600 1.2rem/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.eyebrow {
  font: 500 .72rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  margin-bottom: .9rem;
}
.eyebrow--signal { color: var(--signal); }
.eyebrow__code {
  background: var(--ink); color: var(--text-inv);
  padding: .28rem .45rem .22rem; border-radius: 4px; letter-spacing: .08em;
}
.flag {
  margin-left: .35rem; padding: .28rem .55rem .22rem; border-radius: 999px;
  background: var(--signal-wash); color: var(--signal-deep); letter-spacing: .08em;
}
.flag--coming-soon { background: #e9e6dd; color: var(--muted); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow::after { content: " →"; color: var(--signal); }
.link-arrow:hover { color: var(--signal-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--text-inv); }
.btn--ink:hover { background: var(--ink-3); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--text-inv); }
.btn--ghost-inv { border-color: var(--line-inv); color: var(--text-inv); background: transparent; }
.btn--ghost-inv:hover { background: rgba(245, 243, 238, .1); border-color: rgba(245, 243, 238, .35); }
.btn--sm { font-size: .85rem; padding: .58rem .9rem; }
.btn--lg { font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn--block { width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--text-inv);
  border-bottom: 1px solid var(--line-inv);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; height: var(--topbar); gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand__sep { width: 1px; height: 22px; background: var(--line-inv); }
.brand__word { font: 700 1.05rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--text-inv); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 6px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  color: var(--muted-inv);
  transition: color .15s, background-color .15s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text-inv); }
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--signal); border-radius: 6px 6px 0 0; }
.nav__chev { transition: transform .2s var(--ease); }
.has-dropdown:hover .nav__chev, .has-dropdown.is-open .nav__chev { transform: rotate(180deg); }
.nav__cta { margin-left: .25rem; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown__item { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 6px; text-decoration: none; }
.dropdown__item:hover { background: var(--porcelain); }
.dropdown__code { font: 600 .72rem/1 var(--font-mono); letter-spacing: .08em; background: var(--ink); color: var(--text-inv); padding: .38rem .45rem; border-radius: 4px; min-width: 2.2rem; text-align: center; }
.dropdown__text { display: flex; flex-direction: column; line-height: 1.25; }
.dropdown__text strong { font-weight: 600; }
.dropdown__text small { color: var(--muted); font-size: .8rem; }
.dropdown__all { display: block; margin: .4rem .2rem 0; padding: .6rem .7rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--signal-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 6px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--text-inv); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 3vw, 5rem); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy .lede { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__stage { position: relative; padding-bottom: 5.5rem; padding-left: 1.5rem; }
.hero__pass { position: absolute; left: 0; bottom: 0; width: min(360px, 88%); }

.window {
  display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); text-decoration: none;
}
.window__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window__url { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 1rem; }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.window__blank { display: grid; place-items: center; aspect-ratio: 16 / 10; font: 800 6rem/1 var(--font-display); color: var(--line); }

/* ---------- the access pass ---------- */
.pass {
  --stub: 92px;
  position: relative;
  background: var(--ink); color: var(--text-inv);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* the ticket notches at the tear line */
  -webkit-mask:
    radial-gradient(circle 10px at 0 var(--stub), transparent 98%, #000),
    radial-gradient(circle 10px at 100% var(--stub), transparent 98%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 10px at 0 var(--stub), transparent 98%, #000),
    radial-gradient(circle 10px at 100% var(--stub), transparent 98%, #000);
  mask-composite: intersect;
}
.pass::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--signal); }
.pass--off::before { background: var(--muted-inv); }
.pass__stub { height: var(--stub); padding: 1.1rem 1.25rem 0 1.4rem; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: .9rem; }
.pass__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pass__eyebrow { font: 500 .68rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-inv); }
.pass__status { display: inline-flex; align-items: center; gap: .4rem; font: 500 .72rem/1 var(--font-mono); color: var(--text-inv); }
.pass__title { display: flex; align-items: baseline; gap: .6rem; white-space: nowrap; overflow: hidden; }
.pass__title strong { font: 700 1.35rem/1.1 var(--font-display); letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; }
.pass__title .mono { color: var(--muted-inv); font-size: .78rem; }
.pass__tear { position: absolute; top: var(--stub); left: 18px; right: 12px; border-top: 1px dashed rgba(245, 243, 238, .3); }
.pass__rows { padding: 1rem 1.25rem .25rem 1.4rem; }
.pass__row { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; gap: .5rem; padding: .35rem 0; }
.pass__row dt { font: 500 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-inv); }
.pass__row dd { margin: 0; display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .95rem; }
.pass__row .mono { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass .btn--block { width: calc(100% - 2.65rem); margin: .75rem 1.25rem 0 1.4rem; }
.pass__note { padding: .8rem 1.25rem 1.1rem 1.4rem; font-size: .82rem; line-height: 1.5; color: var(--muted-inv); }
.pass__note--lead { padding-top: 1.1rem; font-size: .92rem; color: var(--text-inv); }
.pass--off .btn--block { margin-top: 0; margin-bottom: 1.25rem; }
.pass--lg { --stub: 100px; }
.pass--lg .pass__title strong { font-size: 1.55rem; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.pass--off .dot { background: var(--muted-inv); box-shadow: none; }

.copy { position: relative; display: inline-flex; padding: .3rem; border-radius: 4px; color: var(--muted-inv); transition: color .15s, background-color .15s; }
.copy:hover { color: var(--text-inv); background: rgba(245, 243, 238, .1); }
.copy__done {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%) translateY(3px);
  background: var(--ok); color: #fff; font: 600 .68rem/1 var(--font-mono); padding: .3rem .45rem; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s var(--ease);
}
.copy.is-copied .copy__done { opacity: 1; transform: translateX(-50%); }

/* ---------- facts strip ---------- */
.facts { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.4rem 1.5rem 1.4rem 0; display: flex; flex-direction: column; gap: .35rem; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.fact__label { font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.fact__value { font-size: .92rem; line-height: 1.45; color: var(--text); }

/* ---------- sections ---------- */
.section { padding: var(--sect) 0; }
.section--tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--flush { padding-top: 2.5rem; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-bottom: 1.1rem; margin-bottom: 2rem; border-bottom: 2px solid var(--ink);
}
.section__aside { font: 500 .8rem/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; padding-bottom: .3rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem 2rem; }

/* ---------- product card ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfccc2; }
.card__media { position: relative; display: block; text-decoration: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--porcelain); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.025); }
.card__blank { display: grid; place-items: center; height: 100%; background: var(--ink-2); }
.card__blank span { font: 800 5.5rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--signal-lift); opacity: .55; }
.card__flag {
  position: absolute; top: .9rem; right: .9rem;
  font: 600 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--text-inv); padding: .42rem .55rem .36rem; border-radius: 4px;
}
.card--soon .card__flag { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.card__body { padding: 1.25rem 1.25rem 1rem; flex: 1; }
.card__body .eyebrow { margin-bottom: .6rem; }
.card__title { font: 700 1.45rem/1.15 var(--font-display); letter-spacing: -0.015em; }
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a:hover { color: var(--signal-deep); }
.card__tag { margin-top: .4rem; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chips li { font-size: .76rem; font-weight: 500; line-height: 1; padding: .42rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--porcelain); color: var(--text); }
.chips--lg li { font-size: .84rem; padding: .5rem .75rem; background: var(--paper); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--porcelain); }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price strong { font: 700 1.25rem/1 var(--font-display); color: var(--ink); }
.price small { font-size: .74rem; color: var(--muted); margin-top: .25rem; }
.price--lg strong { font-size: 2rem; }
.price--lg small { font-size: .82rem; }
.card__actions { display: flex; gap: .5rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.step__n { display: block; font-weight: 600; color: var(--signal); margin-bottom: .9rem; font-size: .85rem; }
.step p { margin-top: .6rem; color: var(--muted); font-size: .98rem; }

/* ---------- licensing ---------- */
.licence { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.licence__copy .lede { margin: 1.25rem 0 1.5rem; }
.licence__card { background: var(--ink); color: var(--text-inv); border-radius: var(--r-lg); padding: 1.75rem; position: relative; overflow: hidden; }
.licence__card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--signal); }
.licence__card-title { font: 500 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-inv); margin-bottom: 1.1rem; }
.licence__card .ticks li { color: var(--text-inv); border-color: var(--line-inv); }
.licence__card-foot { margin-top: 1.25rem; font-size: .88rem; color: var(--muted-inv); }
.licence__card-foot a { color: var(--text-inv); }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.75rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .85rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__head p { margin-top: 1rem; color: var(--muted); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa__plus { position: relative; flex: none; width: 18px; height: 18px; }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; background: var(--signal); border-radius: 2px; transition: transform .2s var(--ease); }
.qa__plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.qa__plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.qa[open] .qa__plus::after { transform: scaleY(0); }
.qa p { padding: 0 2.5rem 1.2rem 0; color: var(--muted); }

/* ---------- closing band ---------- */
.band { background: var(--ink); color: var(--text-inv); padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.band__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band .h2 { color: var(--text-inv); }
.band p { margin-top: .75rem; color: var(--muted-inv); max-width: 52ch; }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); color: var(--muted-inv); border-top: 1px solid var(--line-inv); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { margin-top: 1.1rem; max-width: 36ch; line-height: 1.55; }
.footer__title { font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv); margin-bottom: 1rem; }
.footer__col li + li { margin-top: .5rem; }
.footer__col a { text-decoration: none; color: var(--muted-inv); }
.footer__col a:hover { color: var(--text-inv); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line-inv); font-size: .8rem; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 1.1rem; }
.page-head--404 { border-bottom: 0; padding-bottom: var(--sect); }
.crumbs { display: flex; gap: .6rem; font: 500 .8rem/1 var(--font-mono); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.product-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: end; }
.product-head__buy { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.product-head__actions { display: flex; gap: .6rem; }

.gallery { padding: 2.5rem 0 0; }
.gallery__main img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery__thumbs { display: flex; gap: .75rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.thumb { flex: none; width: 144px; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; opacity: .6; transition: opacity .15s, border-color .15s; background: var(--paper); }
.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; border-color: var(--signal); }

.product-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.product-body__main .lede { max-width: 66ch; }
.h2--rule { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: 1.55rem; margin-bottom: 1.25rem; }
.feature p { margin-top: .4rem; color: var(--muted); font-size: .98rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; vertical-align: top; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.table th { width: 9rem; font-weight: 600; color: var(--ink); padding-right: 1rem; }
.table td { color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 2rem; }
.spec > div { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.spec dd { margin: 0; }
.changelog li { border-left: 2px solid var(--line); padding-left: 1.25rem; }
.changelog li + li { margin-top: 1.5rem; }
.changelog__meta { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .4rem; }
.changelog__meta .mono { font-weight: 600; color: var(--signal); }
.changelog__meta time { font-size: .85rem; color: var(--muted); }
.changelog ul li { border: 0; padding: .15rem 0 .15rem 1rem; position: relative; color: var(--muted); font-size: .95rem; }
.changelog ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.changelog ul li + li { margin-top: 0; }

.sticky { position: sticky; top: calc(var(--topbar) + 1.25rem); display: flex; flex-direction: column; gap: 1rem; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; font-size: .92rem; }
.side-box__title { font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.side-box .chips { margin-top: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; font-weight: 500; transition: background-color .15s, color .15s; }
.filter .mono { font-size: .72rem; color: var(--muted); }
.filter:hover { background: var(--paper); }
.filter.is-active { background: var(--ink); color: var(--text-inv); }
.filter.is-active .mono { color: var(--muted-inv); }
.filters__empty { color: var(--muted); padding: 2rem 0; }

.support__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1rem; }
.support-card { display: flex; flex-direction: column; gap: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.support-card__label { font: 500 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.support-card strong { font: 700 1.2rem/1.2 var(--font-display); color: var(--ink); }
.support-card span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.support .faq__list .h2--rule:first-child { margin-top: 2rem; }

/* ---------- demo frame page ---------- */
.is-demo { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--ink); }
.demobar { flex: none; display: flex; align-items: center; gap: 1.25rem; height: 56px; padding: 0 1rem; background: var(--ink); color: var(--text-inv); border-bottom: 1px solid var(--line-inv); }
.demobar__brand img { height: 20px; width: auto; }
.demobar__product { display: flex; align-items: center; gap: .6rem; padding-left: 1.25rem; border-left: 1px solid var(--line-inv); white-space: nowrap; }
.demobar__code { font-size: .7rem; font-weight: 600; letter-spacing: .08em; background: rgba(245, 243, 238, .12); padding: .3rem .4rem; border-radius: 4px; }
.demobar__live { display: inline-flex; align-items: center; gap: .4rem; font: 500 .72rem/1 var(--font-mono); color: var(--muted-inv); }
.demobar__creds { display: flex; align-items: center; gap: 1rem; flex: 1; overflow: hidden; }
.cred { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; white-space: nowrap; }
.cred__label { font: 500 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-inv); }
.demobar__actions { display: flex; gap: .5rem; margin-left: auto; }
.demoframe { flex: 1; width: 100%; border: 0; background: var(--paper); }
.demohint { flex: none; margin: 0; padding: .4rem 1rem; font: 400 .72rem/1.4 var(--font-mono); color: var(--muted-inv); background: var(--ink-2); border-top: 1px solid var(--line-inv); }
.demohint a { color: var(--text-inv); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { padding-left: 0; padding-bottom: 0; }
  .hero__pass { position: static; width: min(420px, 100%); margin-top: -2.5rem; margin-left: 1.25rem; }
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .licence, .faq { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .product-body { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .support__cards { grid-template-columns: 1fr; }
  .product-head { grid-template-columns: 1fr; align-items: start; }
  .product-head__buy { justify-content: space-between; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--topbar);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-inv);
    padding: .5rem var(--gutter) 1rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .8rem .25rem; border-bottom: 1px solid var(--line-inv); border-radius: 0; font-size: 1.05rem; }
  .nav__link.is-active { box-shadow: none; color: var(--signal-lift); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 .5rem .5rem; color: var(--text-inv); }
  .dropdown__item:hover { background: rgba(245, 243, 238, .06); }
  .dropdown__text small { color: var(--muted-inv); }
  .dropdown__code { background: rgba(245, 243, 238, .12); }
  .dropdown__all { border-color: var(--line-inv); color: var(--signal-lift); }
  .nav__cta { margin: 1rem 0 0; justify-content: center; }
  .band__row { flex-direction: column; align-items: flex-start; }
  .section__head { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 640px) {
  :root { --topbar: 58px; }
  .facts__row { grid-template-columns: 1fr; }
  .fact { padding: 1rem 0; }
  .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__legal { flex-direction: column; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__actions .btn { flex: 1; }
  .hero__pass { margin-left: 0; margin-top: 1rem; }
  .product-head__buy { flex-direction: column; align-items: stretch; }
  .product-head__actions { flex-direction: column; }
  .demobar { gap: .75rem; }
  .demobar__creds, .demobar__product strong { display: none; }
  .brand__sep, .brand__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
