/*
 * THE QTECX WEBSITE (qtecx.co). The platform's own language, at an editorial scale: white paper on
 * a quiet ground, green for actions only, and the lime point
 * on the mark alone. No glow on any ground (owner 2026-10-30): calm, confident, and the product is
 * the hero: real media first, the drawn window only where no real media exists yet.
 * Faces: Gabarito for display, Inter for reading, IBM Plex Arabic for Arabic, Geist Mono only for
 * a checksum or a command. All four OFL, shipped by systems/qtecx-design-system/fonts.
 */
@font-face { font-family: 'QX Gabarito'; font-weight: 400 900; font-display: swap; src: url('/fonts/gabarito-latin-wght.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'QX Inter'; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'QX Inter'; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'QX Plex Arabic'; font-weight: 400; font-display: swap; src: url('/fonts/plex-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'QX Plex Arabic'; font-weight: 500; font-display: swap; src: url('/fonts/plex-arabic-500.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'QX Plex Arabic'; font-weight: 600 700; font-display: swap; src: url('/fonts/plex-arabic-600.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'QX Geist Mono'; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin-wght.woff2') format('woff2'); }

:root {
  --ground: #ffffff;
  --paper: #ffffff;
  --stage: #f4f4f5;
  --sunken: #f4f4f5;
  --ink: #000000;
  --text: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --go: #216b42;
  --go-hover: #1b5636;
  --on-go: #ffffff;
  --go-text: #1b5636;
  --go-soft: #eef6f1;
  --lime: #a3e035;
  --focus: #2f8553;
  --shadow: 0 0 0 1px rgb(19 20 31 / 0.06), 0 4px 12px -4px rgb(19 20 31 / 0.08), 0 24px 56px -16px rgb(19 20 31 / 0.22);
  --shadow-s: 0 0 0 1px rgb(19 20 31 / 0.07), 0 2px 4px -2px rgb(19 20 31 / 0.06), 0 8px 20px -6px rgb(19 20 31 / 0.12);
  --display: 'QX Gabarito', 'QX Plex Arabic', ui-sans-serif, system-ui, sans-serif;
  --sans: 'QX Inter', 'QX Plex Arabic', ui-sans-serif, system-ui, sans-serif;
  --mono: 'QX Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --ground: #121517;
  --paper: #1b1f21;
  --stage: #181c1e;
  --sunken: #191d1f;
  --ink: #f5f7f6;
  --text: #e9edf0;
  --muted: #a9b3bc;
  --line: #2e363a;
  --line-strong: #435056;
  --go: #4fa271;
  --go-hover: #5fb282;
  --on-go: #06150d;
  --go-text: #8fd0a8;
  --go-soft: rgb(79 162 113 / 0.16);
  --focus: #4fa271;
  --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 64px -16px rgb(0 0 0 / 0.6);
  --shadow-s: 0 0 0 1px rgb(255 255 255 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #121517;
    --paper: #1b1f21;
    --stage: #181c1e;
    --sunken: #191d1f;
    --ink: #f5f7f6;
    --text: #e9edf0;
    --muted: #a9b3bc;
    --line: #2e363a;
    --line-strong: #435056;
    --go: #4fa271;
    --go-hover: #5fb282;
    --on-go: #06150d;
    --go-text: #8fd0a8;
    --go-soft: rgb(79 162 113 / 0.16);
    --focus: #4fa271;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 64px -16px rgb(0 0 0 / 0.6);
    --shadow-s: 0 0 0 1px rgb(255 255 255 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[dir='rtl'] body, body[data-lang='ar'] { font-size: 17px; line-height: 1.8; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
.i { flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
bdi { unicode-bidi: isolate; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* Type */
.display, .display-2, .display-3, .h2, .h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(44px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.display-2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.display-3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; display: flex; gap: 10px; align-items: center; }
[dir='rtl'] .display, [dir='rtl'] .display-2, [dir='rtl'] .display-3, [dir='rtl'] .h2, [dir='rtl'] .h3 {
  font-family: 'QX Plex Arabic', var(--display);
  letter-spacing: 0;
  font-weight: 600;
}
[dir='rtl'] .display { line-height: 1.22; font-size: clamp(40px, 5.8vw, 76px); }
[dir='rtl'] .display-2 { line-height: 1.3; }
[dir='rtl'] .display-3, [dir='rtl'] .h2 { line-height: 1.4; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; margin-top: 22px; text-wrap: pretty; }
[dir='rtl'] .lede { line-height: 1.85; }
.crumb { font-size: 15px; color: var(--go-text); font-weight: 600; margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.link { color: var(--go-text); font-weight: 600; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; background: none; color: var(--text);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
[dir='rtl'] .btn { font-size: 16px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn-go { background: var(--go); color: var(--on-go); }
.btn-go:hover { background: var(--go-hover); }
.btn-line { border-color: var(--line-strong); background: var(--paper); }
.btn-line:hover { border-color: var(--text); }
.btn-line-go { background: var(--paper); color: var(--go-text); border-color: var(--line-strong); }
.btn-line-go:hover { border-color: var(--go); }
.btn-quiet:hover { background: var(--sunken); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.ver { white-space: nowrap; }

/* Skip link */
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--paper); padding: 10px 14px; border-radius: var(--r-s); box-shadow: var(--shadow-s); }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--ground) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent); }
.top-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav > a, .menu-product > summary { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text); cursor: pointer; }
.nav > a:hover, .menu-product > summary:hover { background: color-mix(in oklab, var(--text) 6%, transparent); }
.menu-product { position: relative; }
.menu-product > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.menu-product > summary::-webkit-details-marker { display: none; }
.menu-product[open] > summary .i { transform: rotate(180deg); }
.menu-product .product-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: -8px; width: 360px; padding: 8px; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow); }
.product-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-m); text-decoration: none; }
.product-menu a:hover { background: var(--sunken); }
.product-menu b { font-weight: 600; color: var(--ink); }
.product-menu span { font-size: 14px; color: var(--muted); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-size: 15px; text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.lang:hover { background: color-mix(in oklab, var(--text) 6%, transparent); }
.theme { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 0; background: none; color: var(--text); cursor: pointer; }
.theme:hover { background: color-mix(in oklab, var(--text) 6%, transparent); }
.theme .i:last-child { display: none; }
:root[data-theme='dark'] .theme .i:first-child { display: none; }
:root[data-theme='dark'] .theme .i:last-child { display: block; }
.account { display: inline-flex; align-items: center; gap: 8px; }
.menu-mobile { display: none; }
.menu-mobile > summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; cursor: pointer; }
.menu-mobile > summary::-webkit-details-marker { display: none; }
.sheet { position: fixed; inset: 64px 0 auto; max-height: calc(100dvh - 64px); overflow: auto; background: var(--paper); padding: 12px var(--gutter) 24px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.sheet > a { padding: 12px; border-radius: var(--r-m); text-decoration: none; font-weight: 600; }
.sheet .product-menu { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }

/* Hero: the words, then the product, wide */
.hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; max-width: 820px; }
.stage-wide { margin-top: clamp(40px, 6vw, 72px); padding: clamp(16px, 3vw, 40px); background: var(--stage); border-radius: 28px; }
.shot { margin: 0; }
.shot img, .shot video { display: block; width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.feature-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-flip .feature-in { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature-flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 14px; color: var(--muted); max-width: 44ch; }
.feature-copy .crumb { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.feature-media { padding: clamp(12px, 2vw, 28px); background: var(--stage); border-radius: 24px; }
.hero-plain { padding-bottom: 40px; }
.hero-download .lede { max-width: 56ch; }

/* Real captures (ui/media) and, where none exists yet, a plain card of the product's parts. */
.shot img { aspect-ratio: auto; background: var(--paper); }
.feature-media .shot img { max-height: 640px; object-fit: cover; object-position: top left; }
.parts { background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-s); padding: 22px 24px; }
.parts-head { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 650 18px/1.3 var(--sans); margin-bottom: 6px; }
.parts-head .i { color: var(--go); }
.parts ul { display: grid; }
.parts li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.parts li:first-child { border-top: 0; }
.parts li b { color: var(--ink); font-weight: 600; }
.parts li span { color: var(--muted); font-size: 15px; }

/* Bands */
.band { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.feature { border-top: 0; }
.band-last { padding-bottom: clamp(72px, 9vw, 128px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-head { position: sticky; top: 96px; }
.split-head p { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.panel { background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-s); }

.modes { width: 100%; border-collapse: collapse; font-size: 15px; }
.modes th, .modes td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.modes tbody tr:last-child th, .modes tbody tr:last-child td { border-bottom: 0; }
.modes thead th { font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.modes thead th .i { display: inline-block; vertical-align: -3px; margin-inline-end: 6px; }
.modes tbody th { font-weight: 500; color: var(--text); }
.modes td { width: 22%; }
.yes { color: var(--go); display: inline-flex; }
.no { color: var(--muted); font-size: 13px; }

.rights { counter-reset: none; }
ol.rights { display: grid; gap: 10px; }
ol.rights li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 18px 20px; background: var(--paper); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); }
ol.rights li.on { box-shadow: 0 0 0 2px var(--go); }
ol.rights b { color: var(--ink); font-weight: 650; }
ol.rights span { color: var(--muted); }

.notice { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-l); background: var(--go-soft); color: var(--text); }
.notice h3 { display: flex; gap: 10px; align-items: center; font: 650 17px/1.3 var(--sans); color: var(--ink); margin-bottom: 8px; }
.notice p + p { margin-top: 8px; }

.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; gap: 4px; padding: 20px 4px; text-decoration: none; }
.index a:hover b { color: var(--go-text); }
.index b { font: 650 20px/1.3 var(--display); color: var(--ink); display: flex; align-items: center; gap: 10px; }
[dir='rtl'] .index b { font-family: 'QX Plex Arabic', var(--display); }
.index span { color: var(--muted); }
.index li:nth-child(odd) a { padding-inline-end: 24px; }
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--sunken); color: var(--muted); font: 600 12px/1.6 var(--sans); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.facts > li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.facts h3 { font: 650 21px/1.3 var(--display); color: var(--ink); margin-bottom: 8px; }
[dir='rtl'] .facts h3 { font-family: 'QX Plex Arabic', var(--display); }
.facts p { color: var(--muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { padding: 4px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.coming { display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; padding: 12px 16px; border-radius: var(--r-m); background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-weight: 500; }

/* Closing */
.closing { position: relative; padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.closing-in { text-align: center; display: grid; justify-items: center; }
.closing-in p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Download */
.dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: 44px; align-items: start; }
.dl-main { padding: 28px; display: grid; gap: 24px; }
.dl-os { display: flex; gap: 14px; align-items: center; }
.dl-os b { display: block; font: 700 26px/1.1 var(--display); color: var(--ink); }
.dl-os small { color: var(--muted); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { font-weight: 600; color: var(--ink); }
.dl-main .btn { justify-self: start; }
.dl-later { display: grid; gap: 10px; }
.dl-later li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 16px 18px; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.dl-later b { color: var(--ink); }
.dl-later span:last-child { grid-column: 2 / -1; color: var(--muted); font-size: 14px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: baseline; font-size: 17px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 1px var(--line-strong); font: 650 14px/1 var(--sans); color: var(--ink); }
.code { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.code code { font: 13px/1.6 var(--mono); word-break: break-all; flex: 1; color: var(--ink); text-align: left; } /* direction-exempt: a shell command reads left to right in every language */
.web-note { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.web-note p { color: var(--muted); margin-top: 6px; }

/* Lists: blog, legal, help, about */
.plain { display: grid; gap: 12px; margin-top: 28px; }
.plain li { padding-inline-start: 22px; position: relative; }
.plain li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--go); }
.hero-plain .link { display: inline-block; margin-top: 24px; }
.posts, .docs { border-top: 1px solid var(--line); }
.posts li, .docs li { border-bottom: 1px solid var(--line); }
.posts a, .docs a { display: grid; gap: 6px; padding: 24px 0; text-decoration: none; }
.posts b, .docs b { font: 650 22px/1.3 var(--display); color: var(--ink); }
[dir='rtl'] .posts b, [dir='rtl'] .docs b { font-family: 'QX Plex Arabic', var(--display); }
.posts a:hover b, .docs a:hover b { color: var(--go-text); }
.posts span, .docs span { color: var(--muted); }
.docs small { font-size: 13px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); }
.article-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 32px; }
.article-head .post-meta { margin-top: 20px; }
.byline { padding-top: 24px; padding-bottom: 96px; color: var(--muted); }

.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 650 26px/1.25 var(--display); color: var(--ink); margin-top: 1.8em; letter-spacing: -0.015em; }
.prose h3 { font: 650 19px/1.35 var(--sans); color: var(--ink); margin-top: 1.5em; }
[dir='rtl'] .prose:not([dir='ltr']) h2 { font-family: 'QX Plex Arabic', var(--display); letter-spacing: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--go-text); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: var(--r-l); background: var(--go-soft); }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose code { font: 0.9em var(--mono); background: var(--sunken); padding: 1px 5px; border-radius: 5px; }
.prose strong { color: var(--ink); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: 120px; }
.legal-side { position: sticky; top: 88px; align-self: start; max-height: calc(100dvh - 110px); overflow: auto; font-size: 14px; }
.legal-side h2 { font: 600 13px/1.4 var(--sans); color: var(--muted); margin-bottom: 10px; }
.legal-side ol { display: grid; gap: 2px; }
.legal-side a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.legal-side a:hover { color: var(--ink); background: var(--sunken); }
.legal-main { max-width: 780px; }
.legal-main header { margin-bottom: 36px; }
.legal-main .post-meta { margin-top: 14px; }
.lang-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-m); background: var(--sunken); font-size: 15px; }

.search { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding: 0 16px; height: 54px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-s); color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; color: var(--ink); outline: none; height: 100%; }
.search:focus-within { box-shadow: 0 0 0 2px var(--focus), var(--shadow-s); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-size: 14px; }
.jump a:hover { box-shadow: 0 0 0 1px var(--text); }
.topic { padding: 28px 0; border-bottom: 1px solid var(--line); }
.topic:first-child { padding-top: 0; }
.topic ul { display: grid; gap: 10px; margin-top: 14px; }
.topic li { padding-inline-start: 18px; position: relative; color: var(--text); }
.topic li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.topic p { margin-top: 14px; }
.topic[hidden] { display: none; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles b { font: 650 20px/1.3 var(--display); color: var(--ink); }
[dir='rtl'] .principles b { font-family: 'QX Plex Arabic', var(--display); }
.principles span { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.foot h2 { font: 600 14px/1.4 var(--sans); color: var(--ink); margin-bottom: 12px; }
.foot ul { display: grid; gap: 8px; font-size: 15px; }
.foot ul a { text-decoration: none; color: var(--muted); }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-line { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter) 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* The language offer (site.js), shown once to a reader whose browser prefers the other language */
.offer { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40; display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); font-size: 15px; }
[dir='rtl'] .offer { padding: 10px 16px 10px 10px; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-mobile { display: block; }
  .hero-in, .feature-in { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: 0; }
  .feature-flip .feature-in { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; max-height: none; }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hide-s, .top-end > .lang { display: none; }
  .top-in { gap: 12px; }
  .top-end { gap: 2px; }
  .account .btn { padding: 0 10px; }
  .index, .facts { grid-template-columns: minmax(0, 1fr); }
  .index li:nth-child(odd) a { padding-inline-end: 4px; }
  .modes th, .modes td { padding: 12px 10px; }
  .modes thead th:first-child { font-size: 0; }
  .modes td { width: auto; }
  ol.rights li, .principles li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The signed-in display (ui/ticket.js): your face, your name, "Not you? Hide" and "Open QtecX". */
.me { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.me-face { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 12px/1 var(--sans); background: var(--go); }
.me-face[data-hue='1'] { background: color-mix(in srgb, #4f7fe0 72%, #18181b); }
.me-face[data-hue='2'] { background: color-mix(in srgb, #8e6fe0 72%, #18181b); }
.me-face[data-hue='3'] { background: color-mix(in srgb, #2e9e93 62%, #18181b); }
.me-face[data-hue='4'] { background: color-mix(in srgb, #d0679a 66%, #18181b); }
.me-face[data-hue='5'] { background: color-mix(in srgb, #b98a3e 58%, #18181b); }
.me-face[data-hue='6'] { background: color-mix(in srgb, #3a9bd1 62%, #18181b); }
.me-name { font-weight: 600; color: var(--ink); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-hide { border: 0; background: none; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; text-decoration: underline; text-underline-offset: 2px; }
.me-hide:hover { color: var(--ink); }
@media (max-width: 640px) { .me-name, .me-hide { display: none; } }
