/* Qalamora product website (central domain). Hand-written, no build step, cached by filemtime.
   Design system: see docs/WEBSITE.md. Cool grey page, white cards, Inter Tight display type, ink text,
   lapis (logo blue) for data and highlights, and a bright lapis tint ("--bright") for the circle inside primary buttons.
   Radii: controls and buttons pill, small cards 16px, cards 24px, big panels 32px. Hairline borders, almost no shadow.
   This file: tokens, base, components, inner pages. site-sections.css: hero, home sections and mini UI widgets. */

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/site/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/site/fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-weight: 400; font-display: swap; src: url('/site/fonts/noto-nastaliq-urdu-arabic-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Nastaliq Urdu'; font-weight: 700; font-display: swap; src: url('/site/fonts/noto-nastaliq-urdu-arabic-700-normal.woff2') format('woff2'); }
/* English pages show only the word "اردو" in Nastaliq: a 1 KB subset (fontTools) instead of the 160 KB font. */
@font-face { font-family: 'Noto Nastaliq Urdu Mini'; font-weight: 400; font-display: swap; src: url('/site/fonts/noto-nastaliq-urdu-mini.woff2') format('woff2'); unicode-range: U+0627, U+062F, U+0631, U+0648; }

:root {
    --bg: #f2f4f8;
    --bg-deep: #e8ecf3;
    --card: #ffffff;
    --ink: #0e1424;
    --ink-2: #3a4258;
    --mute: #5f687d;
    --line: #e2e6ee;
    --line-2: #d2d8e3;
    --lapis: #2447a8;
    --lapis-700: #1b367f;
    --lapis-500: #4567c9;
    --lapis-300: #8ea6e6;
    --lapis-200: #bccaf1;
    --lapis-100: #dde5f8;
    --lapis-50: #eef2fc;
    --accent-text: #2447a8;
    --bright: #a8c0ff;
    --bright-deep: #91aefb;
    --bright-ink: #0e1424;
    /* Circle behind every button arrow and chip arrow: one solid brand blue with a white arrow (contrast >= 4.5:1, tested). */
    --dot: #2447a8;
    --dot-ink: #ffffff;
    --ok: #2447a8;
    --due: #c2362f;
    --glass: rgb(255 255 255 / 0.55);
    --glass-line: rgb(255 255 255 / 0.75);
    --shadow-sm: 0 1px 2px rgb(14 20 36 / 0.05), 0 4px 14px -6px rgb(36 71 168 / 0.14);
    --shadow-lg: 0 2px 4px rgb(14 20 36 / 0.04), 0 40px 80px -32px rgb(36 71 168 / 0.35);
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Inter Tight', serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-top: 12px;
    color-scheme: light;
}
html:not([lang='ur']) { --font-urdu: 'Noto Nastaliq Urdu Mini', 'Noto Nastaliq Urdu', serif; }

/* Dark theme (follows the device). Same hierarchy: deep ink page, slightly lifted cards, lighter lapis for text. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --bg: #0a0f1c;
        --bg-deep: #070b15;
        --card: #111829;
        --ink: #eef1f8;
        --ink-2: #c3cadb;
        --mute: #97a1b7;
        --line: #1f2840;
        --line-2: #2c3756;
        --lapis-50: #141d38;
        --lapis-100: #1b2749;
        --lapis-200: #2b3c70;
        --lapis-300: #4a62a8;
        --accent-text: #93abf0;
        --ok: #93abf0;
        --bright: #3d64d6;
        --bright-deep: #4f74e0;
        --bright-ink: #ffffff;
        --dot: #3d64d6;
        --dot-ink: #ffffff;
        --due: #ff8a82;
        --glass: rgb(17 24 41 / 0.6);
        --glass-line: rgb(255 255 255 / 0.12);
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
        --shadow-lg: 0 40px 80px -32px rgb(0 0 0 / 0.7);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
html[lang='ur'] body { font-family: var(--font-urdu); line-height: 2.05; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lapis-200); color: var(--ink); }
.q-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.q-skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); }
.q-skip:focus { top: 12px; }
.q-i { width: 1.25em; height: 1.25em; flex: none; }
html[dir='rtl'] .q-flip { transform: scaleX(-1); }
.q-num { font-variant-numeric: tabular-nums; }
.q-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .q-wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .q-wrap { padding-inline: 32px; } }

/* Type: large and light, tight tracking. Urdu keeps Nastaliq proportions (no negative tracking, taller lines). */
.q-h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 400; text-wrap: balance; }
.q-h2 { font-size: clamp(2rem, 3.9vw, 3.25rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 400; text-wrap: balance; }
.q-h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 450; }
.q-h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.q-lead { font-size: 1.125rem; line-height: 1.6; color: var(--mute); max-width: 58ch; text-wrap: pretty; }
.q-mute { color: var(--mute); }
.q-small { font-size: 13.5px; color: var(--mute); }
html[lang='ur'] .q-h1, html[lang='ur'] .q-h2, html[lang='ur'] .q-h3, html[lang='ur'] .q-h4 { letter-spacing: 0; line-height: 1.75; font-weight: 400; }
html[lang='ur'] .q-h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
html[lang='ur'] .q-h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }

/* Chip: the small pill above a heading. Dark dot with a bright lapis arrow, then a plain label. */
.q-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.4; }
html[dir='rtl'] .q-chip { padding: 4px 4px 4px 14px; }
.q-chip-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--dot); color: var(--dot-ink); display: grid; place-items: center; flex: none; }
.q-chip-dot .q-i { width: 13px; height: 13px; }
html[dir='rtl'] .q-chip-dot .q-i { transform: scaleX(-1); }
.q-chip-glass { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Buttons: pills with a blue circle and a white arrow at the start (every variant). Primary = ink pill; light = white pill; bright = light lapis pill. */
.q-btn { --dot-bg: var(--dot); --dot-fg: var(--dot-ink); display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 22px 7px 7px; border-radius: 999px; border: 1px solid transparent; font-size: 15.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
html[dir='rtl'] .q-btn { padding: 7px 7px 7px 22px; }
.q-btn-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--dot-bg, var(--dot)); color: var(--dot-fg, var(--dot-ink)); display: grid; place-items: center; flex: none; overflow: hidden; }
.q-btn-dot .q-i { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
html[dir='rtl'] .q-btn-dot .q-i { transform: scaleX(-1); }
.q-btn:hover .q-btn-dot .q-i { transform: translateX(3px); }
html[dir='rtl'] .q-btn:hover .q-btn-dot .q-i { transform: scaleX(-1) translateX(3px); }
.q-btn:active { transform: translateY(1px) scale(0.985); }
.q-btn-primary { background: var(--ink); color: var(--bg); }
.q-btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--lapis)); }
.q-btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.q-btn-light:hover { border-color: var(--line-2); }
.q-btn-bright { background: #a8c0ff; color: #0e1424; }
.q-btn-bright:hover { background: #91aefb; }
.q-btn-plain { padding: 0 24px; }
html[dir='rtl'] .q-btn-plain { padding: 0 24px; }
.q-btn-sm { min-height: 44px; padding: 5px 18px 5px 5px; font-size: 14.5px; gap: 10px; }
html[dir='rtl'] .q-btn-sm { padding: 5px 5px 5px 18px; }
.q-btn-sm .q-btn-dot { width: 34px; height: 34px; }
.q-btn-block { width: 100%; justify-content: center; position: relative; }
.q-btn-block .q-btn-dot { position: absolute; inset-inline-start: 7px; }
.q-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.q-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent-text); }
.q-link .q-i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
html[dir='rtl'] .q-link .q-i { transform: scaleX(-1); }
.q-link:hover .q-i { transform: translateX(3px); }
html[dir='rtl'] .q-link:hover .q-i { transform: scaleX(-1) translateX(3px); }

/* Floating navigation card */
.q-nav { position: fixed; top: var(--nav-top); inset-inline: 0; z-index: 40; padding-inline: 12px; pointer-events: none; }
.q-nav-card { pointer-events: auto; max-width: 1220px; margin-inline: auto; display: flex; align-items: center; gap: 16px; height: 64px; padding: 8px; padding-inline-start: 18px; border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--glass-line); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.q-logo { display: block; height: 30px; width: 112px; flex: none; }
.q-logo svg { height: 100%; width: auto; }
.q-logo .q-word { fill: var(--ink); }
.q-logo .q-primary { fill: var(--accent-text); }
.q-links { display: none; margin-inline: auto; align-items: center; gap: 2px; font-size: 15px; color: var(--ink-2); }
.q-links a { padding: 8px 14px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.q-links a:hover, .q-links a[aria-current='page'] { color: var(--ink); background: var(--bg); }
.q-nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.q-nav-text { display: none; padding: 8px 12px; font-size: 15px; color: var(--ink-2); border-radius: 999px; }
.q-nav-text:hover { color: var(--ink); background: var(--bg); }
.q-menu-btn { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 0; background: var(--bg); border-radius: 16px; cursor: pointer; }
.q-mobile { pointer-events: auto; display: none; max-width: 1220px; margin: 8px auto 0; padding: 10px 18px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.q-mobile.is-open { display: block; }
.q-mobile a:not(.q-btn) { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
.q-mobile .q-btns { margin-top: 16px; }
.q-mobile .q-btn { flex: 1; justify-content: center; }
.q-hide-sm { display: none !important; }
@media (min-width: 640px) { .q-hide-sm { display: inline-flex !important; } }
@media (min-width: 1000px) {
    .q-links { display: flex; }
    .q-nav-text { display: inline-flex; }
    .q-menu-btn, .q-mobile { display: none !important; }
}

/* Sections */
.q-section { padding-block: 72px; position: relative; }
@media (min-width: 900px) { .q-section { padding-block: 112px; } }
.q-section-tight { padding-top: 0; }
.q-head { max-width: 780px; }
.q-head .q-h2 { margin-top: 18px; }
.q-head .q-lead { margin-top: 16px; }
.q-head .q-btns { margin-top: 28px; }
.q-head-center { margin-inline: auto; text-align: center; }
.q-head-center .q-lead { margin-inline: auto; }
.q-head-center .q-btns { justify-content: center; }
.q-head-split { display: grid; gap: 24px; align-items: end; }
.q-head-split .q-lead { margin-top: 0; }
@media (min-width: 900px) { .q-head-split { grid-template-columns: 1.3fr 1fr; gap: 64px; } .q-head-split > div:last-child { padding-bottom: 6px; } }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.q-pad { padding: 28px; }
@media (min-width: 900px) { .q-pad { padding: 36px; } }
.q-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; flex: none; }
.q-ico .q-i { width: 22px; height: 22px; }
.q-ico-lapis { background: var(--lapis-50); border-color: var(--lapis-100); color: var(--accent-text); }
.q-checks { margin-top: 24px; display: grid; gap: 12px; }
.q-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.q-checks .q-i { color: var(--accent-text); width: 22px; height: 22px; margin-top: 1px; }
html[lang='ur'] .q-checks .q-i { margin-top: 8px; }

/* Page heads for inner pages: a short version of the hero sky */
.q-page-head { position: relative; padding: 148px 0 56px; overflow: hidden; }
@media (min-width: 900px) { .q-page-head { padding: 176px 0 72px; } }
.q-page-head > .q-wrap { position: relative; }
.q-page-head .q-h1 { margin-top: 20px; max-width: 18ch; }
.q-page-head .q-lead { margin-top: 18px; }
.q-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--mute); }
.q-crumbs a:hover { color: var(--ink); }

/* Screens in frames */
.q-frame { padding: 8px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.q-frame-in { border-radius: 17px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.q-frame-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.q-frame-dots { display: flex; gap: 6px; }
.q-frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.q-frame-url { flex: 1; max-width: 320px; margin-inline: auto; height: 22px; border-radius: 999px; background: var(--bg); font-size: 11.5px; line-height: 22px; color: var(--mute); text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.q-frame img, .q-shot-empty { width: 100%; height: auto; display: block; background: var(--lapis-50); }
.q-frame-crop img { aspect-ratio: var(--crop, 1440 / 760); object-fit: cover; object-position: var(--focus, top left); }
html[dir='rtl'] .q-frame-crop img { object-position: var(--focus, top left); }
.q-shot-empty { aspect-ratio: 1440 / 900; display: grid; place-items: center; color: var(--mute); font-size: 14px; }
.q-phone { position: relative; width: 220px; padding: 7px; border-radius: 36px; background: #0e1424; box-shadow: var(--shadow-lg); }
.q-phone::before { content: ''; position: absolute; top: 14px; left: 50%; width: 30%; height: 15px; transform: translateX(-50%); border-radius: 999px; background: #0e1424; z-index: 1; }
.q-phone img, .q-phone .q-shot-empty { width: 100%; height: auto; border-radius: 29px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; background: var(--lapis-50); }

/* Callout tags and cursors floating over screens */
.q-tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm); line-height: 1.2; }
html[dir='rtl'] .q-tag { padding: 9px 10px 9px 16px; }
.q-tag .q-i { width: 18px; height: 18px; }
.q-tag-bright { background: var(--lapis); color: #fff; }
.q-tag-bright .q-i { color: #c9d8ff; }
.q-tag-ink { background: var(--ink); color: var(--bg); }
.q-tag-ink .q-i { color: var(--lapis-300); }
.q-tag-white { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.q-tag-white .q-i { color: var(--accent-text); }
.q-tag-lapis { background: var(--lapis); color: #fff; }
.q-cursor { position: absolute; z-index: 4; width: 22px; height: 22px; color: var(--ink); filter: drop-shadow(0 0 1px #fff) drop-shadow(0 2px 3px rgb(14 20 36 / 0.25)); }
.q-cursor .q-i { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
    .q-float { animation: q-float 6s ease-in-out infinite alternate; }
    .q-float-2 { animation: q-float 7s ease-in-out -2s infinite alternate; }
}
@keyframes q-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* Pricing */
.q-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); gap: 4px; }
.q-toggle button { border: 0; background: none; border-radius: 999px; padding: 9px 20px; font-size: 14.5px; font-weight: 500; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.2s, color 0.2s; }
.q-toggle button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.q-save { padding: 2px 9px; border-radius: 999px; background: var(--lapis-100); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.q-plans { margin-top: 40px; display: grid; gap: 16px; text-align: start; }
.q-plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.q-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.q-plan-name { display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.q-plan-badge { padding: 4px 12px; border-radius: 999px; background: #a8c0ff; color: #0e1424; font-size: 12.5px; font-weight: 600; }
.q-plan-tag { margin-top: 18px; font-size: 15px; color: var(--mute); min-height: 3.2em; }
.q-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.q-price b { font-size: 3rem; line-height: 1; letter-spacing: -0.05em; font-weight: 400; font-variant-numeric: tabular-nums; }
.q-price .q-cur { font-size: 1.25rem; font-weight: 400; }
.q-plan .q-btn { margin-top: 24px; }
.q-plan ul { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-2); display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.q-plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.q-plan li .q-i { color: var(--accent-text); margin-top: 2px; width: 20px; height: 20px; }
html[lang='ur'] .q-plan li .q-i { margin-top: 9px; }
.q-plan.is-featured { background: #0e1424; color: #f2f4f8; border-color: #0e1424; }
.q-plan.is-featured .q-plan-name { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16); }
.q-plan.is-featured .q-plan-tag, .q-plan.is-featured .q-mute, .q-plan.is-featured ul, .q-plan.is-featured .q-small { color: rgb(242 244 248 / 0.74); }
.q-plan.is-featured ul { border-color: rgb(255 255 255 / 0.18); }
.q-plan.is-featured li .q-i { color: #a8c0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .q-plan.is-featured { background: var(--lapis-700); border-color: var(--lapis-500); color: #fff; } }
@media (min-width: 860px) { .q-plans.n3 { grid-template-columns: repeat(3, 1fr); } .q-plans.n2 { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin-inline: auto; } .q-plans.n1 { max-width: 420px; margin-inline: auto; } }
.q-matrix-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.q-matrix { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
.q-matrix th, .q-matrix td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.q-matrix thead th { font-weight: 500; color: var(--mute); font-size: 14px; }
.q-matrix tbody th { font-weight: 450; }
.q-matrix tbody tr:last-child > * { border-bottom: 0; }
.q-matrix .c { text-align: center; }
.q-matrix .q-i { margin-inline: auto; color: var(--accent-text); }
.q-matrix .no { color: var(--line-2); }

/* FAQ accordion */
.q-faq { display: grid; gap: 10px; }
.q-faq details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: border-color 0.2s; }
.q-faq details[open] { border-color: var(--line-2); }
.q-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-size: 1.0625rem; font-weight: 500; }
.q-faq summary::-webkit-details-marker { display: none; }
.q-faq-x { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; transition: transform 0.3s var(--ease), background-color 0.2s; }
.q-faq-x .q-i { width: 16px; height: 16px; }
.q-faq details[open] .q-faq-x { transform: rotate(45deg); background: var(--lapis); color: #fff; }
.q-faq details > div { padding: 0 20px 20px; color: var(--mute); max-width: 68ch; }
.q-faq-split { display: grid; gap: 40px; }
@media (min-width: 960px) { .q-faq-split { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } .q-faq-split .q-head { position: sticky; top: 120px; align-self: start; } }

/* Forms */
.q-form { display: grid; gap: 20px; }
.q-field label, .q-label { display: block; margin-bottom: 7px; font-size: 14.5px; font-weight: 500; }
.q-opt { color: var(--mute); font-weight: 400; }
.q-input, .q-select, .q-textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 15.5px; transition: border-color 0.2s, box-shadow 0.2s; }
.q-input::placeholder, .q-textarea::placeholder { color: color-mix(in srgb, var(--mute) 85%, transparent); }
.q-textarea { min-height: 128px; resize: vertical; }
.q-input:hover, .q-textarea:hover { border-color: var(--mute); }
.q-input:focus, .q-select:focus, .q-textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 4px var(--lapis-100); }
.q-input[aria-invalid='true'], .q-textarea[aria-invalid='true'] { border-color: var(--due); }
.q-error { margin-top: 6px; font-size: 14px; color: var(--due); }
.q-help { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.q-row2 { display: grid; gap: 20px; }
@media (min-width: 640px) { .q-row2 { grid-template-columns: 1fr 1fr; } }
.q-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-alert { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; font-size: 15px; }
.q-alert-ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); border-color: color-mix(in srgb, var(--ok) 45%, var(--card)); }
.q-alert-bad { background: color-mix(in srgb, var(--due) 8%, var(--card)); border-color: color-mix(in srgb, var(--due) 40%, var(--card)); }
.q-affix { display: flex; align-items: stretch; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.q-affix:focus-within { border-color: var(--lapis); box-shadow: 0 0 0 4px var(--lapis-100); }
.q-affix input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 15.5px; color: var(--ink); }
.q-affix input:focus { outline: none; }
.q-affix span { display: flex; align-items: center; padding: 0 14px; background: var(--bg); border-inline-start: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.q-status-ok { color: var(--ok) !important; }
.q-status-bad { color: var(--due) !important; }
.q-choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .q-choices.n3 { grid-template-columns: repeat(3, 1fr); } .q-choices.n2 { grid-template-columns: repeat(2, 1fr); } }
.q-choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.q-choice:hover { border-color: var(--mute); }
.q-choice:has(input:checked) { border-color: var(--lapis); box-shadow: 0 0 0 4px var(--lapis-100); }
.q-choice:has(input:focus-visible) { outline: 2px solid var(--lapis); outline-offset: 2px; }
.q-choice input { position: absolute; opacity: 0; pointer-events: none; }
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pill-radio { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 15px; }
.q-pill-radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.q-pill-radio:has(input:focus-visible) { outline: 2px solid var(--lapis); outline-offset: 2px; }
.q-pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.q-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); }
.q-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--lapis); flex: none; }
.q-legend { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; padding: 0; }
.q-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }

/* Inner page building blocks */
.q-split { display: grid; gap: 40px; }
@media (min-width: 960px) { .q-split { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.q-grid2, .q-grid3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .q-grid2, .q-grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .q-grid3 { grid-template-columns: repeat(3, 1fr); } }
.q-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.35s var(--ease); }
a.q-tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.q-tile p { font-size: 15px; color: var(--mute); }
.q-tile .q-h3 { margin-top: 12px; }
.q-tile .q-link { margin-top: auto; padding-top: 8px; font-size: 15px; }
.q-tile-shot { padding-bottom: 0; overflow: hidden; }
.q-tile-shot .q-tile-img { margin: 18px -26px 0; margin-inline-start: 0; border-top-left-radius: 14px; border: 1px solid var(--line); border-bottom: 0; border-inline-end: 0; overflow: hidden; }
html[dir='rtl'] .q-tile-shot .q-tile-img { border-top-left-radius: 0; border-top-right-radius: 14px; }
.q-tile-shot .q-tile-img img { width: 100%; height: 170px; object-fit: cover; object-position: top left; }
.q-prose { max-width: 760px; }
.q-prose h2 { font-size: 1.5rem; font-weight: 450; letter-spacing: -0.02em; margin-top: 40px; }
.q-prose h2:first-child { margin-top: 0; }
.q-prose p, .q-prose li { margin-top: 12px; color: var(--ink-2); }
.q-draft { margin-top: 20px; display: inline-flex; padding: 8px 16px; border-radius: 999px; background: #fdf3dc; color: #6b4a07; font-size: 14px; font-weight: 500; border: 1px solid #ecd9a5; }
.q-steps { display: grid; gap: 12px; counter-reset: q-step; }
.q-steps li { counter-increment: q-step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.q-steps li::before { content: counter(q-step, decimal-leading-zero); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lapis-50); color: var(--accent-text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-steps p { color: var(--mute); font-size: 15px; margin-top: 2px; }
.q-schools { margin-top: 20px; display: grid; gap: 8px; }
.q-schools a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.q-schools a:hover { border-color: var(--lapis); }
.q-schools .q-i { color: var(--accent-text); }
html[dir='rtl'] .q-schools .q-i { transform: scaleX(-1); }
.q-narrow { max-width: 640px; }
.q-dl { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.q-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); }
.q-dl > div:first-child { border-top: 0; }
.q-dl dt { color: var(--mute); }
.q-dl dd { text-align: end; font-weight: 500; }
.q-dl-grid { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-md); background: var(--bg); font-size: 15px; }
@media (min-width: 640px) { .q-dl-grid { grid-template-columns: 1fr 1fr; } }
.q-badge { display: inline-flex; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--lapis-50); color: var(--accent-text); }
.q-badge-ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); color: var(--ok); }
.q-badge-bad { background: color-mix(in srgb, var(--due) 10%, var(--card)); color: var(--due); }
.q-badge-warn { background: #fdf3dc; color: #6b4a07; }
.q-404 .q-code { font-size: clamp(5rem, 14vw, 9rem); line-height: 1; font-weight: 300; letter-spacing: -0.06em; color: var(--accent-text); }

/* Cookie / analytics notice */
.q-notice { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; max-width: 520px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); font-size: 14.5px; box-shadow: var(--shadow-lg); display: none; }
.q-notice.is-open { display: block; }
.q-notice .q-btns { margin-top: 12px; gap: 8px; }
.q-notice button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.3); background: none; color: inherit; cursor: pointer; font-size: 14px; }
.q-notice button.q-yes { background: var(--bright); color: var(--bright-ink); border-color: var(--bright); }

/* Footer */
.q-footer { margin-top: 24px; padding-inline: 12px; padding-bottom: 12px; }
.q-footer-card { max-width: 1240px; margin-inline: auto; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); overflow: hidden; position: relative; }
.q-footer-grid { padding: 48px 24px 28px; display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.q-footer-grid > :first-child { grid-column: 1 / -1; }
.q-footer h3 { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 14px; }
.q-footer li + li { margin-top: 9px; }
.q-footer li a { font-size: 15px; color: var(--ink-2); }
.q-footer li a:hover { color: var(--ink); }
.q-footer-about { margin-top: 16px; max-width: 36ch; font-size: 15px; color: var(--mute); }
.q-footer .q-btns { margin-top: 22px; }
.q-footer-word { padding-inline: 24px; font-size: clamp(4rem, 15vw, 13rem); line-height: 0.8; letter-spacing: -0.06em; font-weight: 500; color: var(--bg); user-select: none; white-space: nowrap; overflow: hidden; margin-bottom: -0.08em; }
.q-footer-word::before { content: attr(data-word); }
.q-footer-base { margin: 0 24px; border-top: 1px solid var(--line); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: var(--mute); }
@media (min-width: 900px) {
    .q-footer-grid { padding: 64px 48px 36px; grid-template-columns: 1.7fr repeat(4, 1fr); }
    .q-footer-grid > :first-child { grid-column: auto; }
    .q-footer-base { margin: 0 48px; }
    .q-footer-word { padding-inline: 40px; }
}

/* Scroll reveal: content is visible without JS; with JS, blocks fade up once as they enter. */
@media (prefers-reduced-motion: no-preference) {
    html.q-js .q-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
    html.q-js .q-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .q-nav, .q-footer, .q-cta, .q-notice { display: none; } body { background: #fff; } }
.q-head-center .q-h1 { margin-inline: auto; }

/* Resources mega menu: a <details> disclosure, so it opens without JavaScript; site.js closes it on outside click and Escape. */
.q-mega { position: relative; }
.q-mega summary { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px 8px 14px; border-radius: 999px; cursor: pointer; list-style: none; transition: background-color 0.2s, color 0.2s; }
html[dir='rtl'] .q-mega summary { padding: 8px 14px 8px 12px; }
.q-mega summary::-webkit-details-marker { display: none; }
.q-mega summary:hover, .q-mega[open] summary, .q-mega summary.is-current { color: var(--ink); background: var(--bg); }
.q-mega-caret { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.q-mega[open] .q-mega-caret { transform: rotate(180deg); }
.q-mega-panel { position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; transform: translateX(-50%); width: 580px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
html[dir='rtl'] .q-mega-panel { transform: translateX(50%); }
.q-mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; color: var(--ink); }
.q-links .q-mega-item { padding: 12px; border-radius: 16px; }
.q-mega-item:hover { background: var(--bg); }
.q-mega-item .q-ico { width: 38px; height: 38px; border-radius: 12px; }
.q-mega-item .q-ico .q-i { width: 19px; height: 19px; }
.q-mega-item b { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; }
.q-mega-item small { display: block; font-size: 13px; color: var(--mute); line-height: 1.4; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) { .q-mega[open] .q-mega-panel { animation: q-mega-in 0.22s var(--ease); } }
@keyframes q-mega-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.q-mobile-group { padding: 16px 2px 6px; font-size: 13px; font-weight: 500; color: var(--mute); }
.q-mobile-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.q-mobile .q-mobile-grid a { font-size: 15.5px; padding: 11px 2px; }
.q-credit { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.q-credit:hover { color: var(--accent-text); text-decoration-color: currentColor; }

/* About: who builds Qalamora */
.q-company { display: grid; gap: 32px; }
@media (min-width: 960px) { .q-company { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; } }
.q-company-copy .q-h2 { margin-top: 18px; }
.q-company-copy .q-lead { margin-top: 16px; }
.q-company-tag { margin-top: 28px; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.15; color: var(--accent-text); font-family: var(--font); }
.q-company-sub { margin-top: 32px; }
.q-company-services { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.q-company-services li { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.q-company-cards { display: grid; gap: 16px; }
.q-company-cards .q-h3 { margin-top: 4px; }
.q-person { display: flex; align-items: center; gap: 18px; background: linear-gradient(150deg, var(--lapis-50), var(--card) 75%); border-color: var(--lapis-100); }
.q-person-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--lapis); color: #fff; font-size: 20px; font-weight: 500; letter-spacing: 0.02em; font-family: var(--font); }
.q-company-facts { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.q-company-facts li { display: flex; align-items: center; gap: 10px; }
.q-company-facts .q-i { color: var(--accent-text); width: 19px; height: 19px; }
html[dir='rtl'] .q-company-tag { text-align: right; }
