/* Layout of the shomahmudoff.org pages on top of Qizil (vendor/qizil). Only layout and the few
   page-specific parts live here; every colour, size and font comes from the --q-* tokens. Hue families
   (data-hue, Qizil C12) say what a product is; status badges say whether it is live. */

/* ---------- helpers ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--q-space-8);
  left: var(--q-space-8);
  z-index: var(--q-z-tooltip);
  padding: var(--q-space-8) var(--q-space-16);
  border-radius: var(--q-radius-control);
  background: var(--q-fg);
  color: var(--q-bg);
  transform: translateY(-200%);
}
.skip-link:focus-visible {
  transform: none;
  color: var(--q-bg);
}

html {
  scroll-padding-top: var(--q-space-24);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  /* A page change is a short cross-fade (Qizil motion, MOTION.md): the kit cannot gate an at-rule with a class,
     so it sits inside the media query; data-motion="off" on <html> (the footer switch) stops the animation. */
  @view-transition {
    navigation: auto;
  }
}
:root[data-motion="off"]::view-transition-group(*),
:root[data-motion="off"]::view-transition-old(*),
:root[data-motion="off"]::view-transition-new(*) {
  animation: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main {
  flex: 1;
}
main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--q-wide) + 2 * var(--q-page-pad));
  margin-inline: auto;
  padding-inline: var(--q-page-pad);
}
@media (min-width: 1200px) {
  .wrap {
    max-width: calc(1120px + 2 * var(--q-page-pad));
  }
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: var(--q-z-sticky);
  border-bottom: var(--q-line-hairline) solid var(--q-border);
  background: var(--q-bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--q-space-16);
  min-height: 64px;
}
.site-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-nav {
  display: none;
  gap: var(--q-space-24);
  margin-inline-start: var(--q-space-16);
}
.site-nav .q-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-tools {
  display: flex;
  align-items: center;
  gap: var(--q-space-4);
  margin-inline-start: auto;
}
.site-cta {
  display: none;
  margin-inline-end: var(--q-space-8);
}
.site-tools .q-btn,
.hero__actions .q-btn,
.section__more .q-btn,
.feature-row__cta,
.notfound .q-btn {
  min-height: 44px;
}
.site-tools .q-btn--icon {
  width: 44px;
  padding: 0;
}
@media (min-width: 640px) {
  .site-cta {
    display: inline-flex;
  }
}
@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
  .nav-menu {
    display: none;
  }
}

/* ---------- menus (native <details>; site.js only closes them) ---------- */

.menu {
  position: relative;
}
.menu__toggle {
  list-style: none;
  gap: var(--q-space-8);
  padding-inline: var(--q-space-12);
  user-select: none;
}
.menu__toggle::-webkit-details-marker {
  display: none;
}
.menu[open] > .menu__toggle {
  background: var(--q-hover);
}
.menu__pop {
  position: absolute;
  top: calc(100% + var(--q-space-4));
  right: 0;
  z-index: var(--q-z-dropdown);
  min-width: 180px;
}
.menu__pop li {
  list-style: none;
}
.menu__pop .q-menu__item {
  min-height: 44px;
  text-decoration: none;
}
.menu__pop .q-menu__item[aria-current="page"],
.menu__pop .q-menu__item[aria-pressed="true"] {
  font-weight: var(--q-weight-medium);
  box-shadow: inset var(--q-line-accent) 0 0 var(--q-accent);
}
.nav-menu .menu__pop {
  min-width: 220px;
}
.lang-menu__code {
  display: none;
  font-family: var(--q-font-mono);
  font-size: var(--q-text-13);
}
/* Phones: the language toggle shows the code (EN, UZ, RU); the full name stays for screen readers. */
@media (max-width: 479.98px) {
  .lang-menu__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .lang-menu__code {
    display: inline;
  }
}
.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: var(--q-line-hairline) solid var(--q-border);
}
/* The home hero has no aurora (the scene is its one moving thing): the still wash it had before. */
.hero:not(.q-aurora) {
  background: var(--q-grad-wash);
}
.hero__inner {
  display: grid;
  gap: var(--q-space-32);
  padding-block: var(--q-space-48) var(--q-space-40);
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--q-space-16);
  min-width: 0;
}
.hero__title {
  max-width: 16ch;
  overflow-wrap: break-word;
}
.hero__lead {
  max-width: 36rem;
  color: var(--q-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--q-space-12);
  margin-top: var(--q-space-8);
}
.hero__visual {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
    align-items: center;
    gap: var(--q-space-48);
    padding-block: var(--q-space-96) var(--q-space-64);
  }
}

/* Page heads (products, about): the same grid, less height. */
.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--q-space-16);
  padding-block: var(--q-space-48) var(--q-space-40);
}
.page-head__title {
  max-width: 20ch;
  overflow-wrap: break-word;
}
.page-head__lead {
  max-width: 40rem;
  color: var(--q-muted);
}
@media (min-width: 640px) {
  .page-head {
    padding-block: var(--q-space-64) var(--q-space-48);
  }
}
/* /products/: the page's one illustration (Qizil: one per view), beside the title and lead on wide screens,
   between the lead and the status tiles on narrow ones. Decorative, eager (it is the head image). */
.page-head__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--q-space-16);
}
.page-head__art {
  --q-illus-size: 11rem;
  align-self: center;
}
@media (min-width: 960px) {
  .page-head--art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: center;
    gap: var(--q-space-16) var(--q-space-48);
  }
  .page-head--art > .page-head__art {
    --q-illus-size: 18rem;
    justify-self: end;
  }
  .page-head--art > .status-stats {
    grid-column: 1 / -1;
  }
}
/* The three status tiles of /products/: numbers counted from src/products.json at build time. */
.status-stats {
  width: 100%;
  max-width: 60rem;
  margin-top: var(--q-space-16);
}
.status-stats .q-stat__label {
  display: flex;
}
.status-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--q-space-12) var(--q-space-24);
  margin: var(--q-space-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--q-muted);
  font-size: var(--q-text-14);
}
.status-key li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--q-space-8);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--q-space-48);
}
.section + .section {
  border-top: var(--q-line-hairline) solid var(--q-border);
}
@media (min-width: 640px) {
  .section {
    padding-block: var(--q-space-64);
  }
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  max-width: var(--q-prose);
  margin-bottom: var(--q-space-32);
}
.section__more {
  margin-top: var(--q-space-32);
}
.q-btn .q-icon--sm {
  width: var(--q-icon-sm);
  height: var(--q-icon-sm);
}

/* What we do / principles: a hairline above each, a mark in the hue family's tint. */
.pillars {
  display: grid;
  gap: var(--q-space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 640px) {
  .pillars--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .pillars--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  min-width: 0;
  padding-top: var(--q-space-16);
  border-top: var(--q-line-hairline) solid var(--q-border);
}
.pillar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--q-space-4);
  border: var(--q-line-hairline) solid var(--q-h-line);
  border-radius: var(--q-radius-control);
  background: linear-gradient(100deg, var(--q-h-tint), var(--q-h-tint-end));
  color: var(--q-h-ink);
}
.pillar__mark .q-icon {
  width: var(--q-icon-lg);
  height: var(--q-icon-lg);
}
.pillar__title {
  font-family: var(--q-font-sans);
  font-size: var(--q-text-17);
  font-weight: var(--q-weight-medium);
  line-height: var(--q-leading-17);
  letter-spacing: 0;
}

/* ---------- live products (home) ---------- */

.showcase {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-64);
}
.feature-row {
  display: grid;
  gap: var(--q-space-32);
  align-items: center;
}
@media (min-width: 960px) {
  .feature-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--q-space-48);
  }
  .feature-row--flip .feature-row__text {
    order: 2;
  }
}
.feature-row__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--q-space-12);
  min-width: 0;
}
.feature-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--q-space-8);
}
.feature-row__title {
  font-size: var(--q-text-38);
  line-height: var(--q-leading-38);
  letter-spacing: var(--q-tracking-38);
  overflow-wrap: anywhere;
}
.feature-row__cta {
  margin-top: var(--q-space-8);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  margin: var(--q-space-4) 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-inline-start: var(--q-space-24);
}
.checks li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 1.5px solid var(--q-h-ink);
  border-left: 1.5px solid var(--q-h-ink);
  transform: rotate(-45deg);
}

/* A product picture in an app frame; the light or dark screenshot follows the theme. */
.shot {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  min-width: 0;
  margin: 0;
}
.shot__frame {
  overflow: hidden;
  border: var(--q-line-hairline) solid var(--q-border);
  border-radius: var(--q-radius-card);
  background: var(--q-surface);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--q-space-8) var(--q-space-12);
  border-bottom: var(--q-line-hairline) solid var(--q-border);
}
.shot__bar span:not(.shot__url) {
  width: 8px;
  height: 8px;
  border-radius: var(--q-radius-full);
  background: var(--q-border-strong);
}
.shot__url {
  margin-inline-start: var(--q-space-8);
  color: var(--q-muted);
  font-family: var(--q-font-mono);
  font-size: var(--q-text-12);
}
.shot__img {
  display: block;
  width: 100%;
  height: auto;
}
.shot__img--dark {
  display: none;
}
:root[data-theme="dark"] .shot__img--light {
  display: none;
}
:root[data-theme="dark"] .shot__img--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot__img--light {
    display: none;
  }
  :root:not([data-theme="light"]) .shot__img--dark {
    display: block;
  }
}

/* The account illustration: drawn with tokens, so it follows the theme. */
.account-art {
  background: linear-gradient(100deg, var(--q-hue-violet-tint), var(--q-hue-violet-tint-end)), var(--q-surface);
}
.account-art__svg {
  display: block;
  width: 100%;
  height: auto;
}
.aa-card {
  fill: var(--q-bg);
  stroke: var(--q-border-strong);
  stroke-width: 1;
}
.aa-line {
  fill: var(--q-border);
}
.aa-line--strong {
  fill: var(--q-border-strong);
}
.aa-row__box {
  fill: var(--q-surface);
  stroke: var(--q-border);
  stroke-width: 1;
}
.aa-icon {
  fill: none;
  stroke: var(--q-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aa-on,
.aa-dot {
  fill: var(--q-success);
}
.aa-knob {
  fill: var(--q-bg);
}
.aa-chip > rect:first-child {
  fill: var(--q-bg);
  stroke: var(--q-border);
  stroke-width: 1;
}
.aa-mini {
  fill: var(--q-hue-blue);
}
.aa-mini--b {
  fill: var(--q-hue-amber);
}
.aa-link {
  fill: none;
  stroke: var(--q-border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

/* ---------- product cards ---------- */

.products {
  display: grid;
  gap: var(--q-space-16);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.product {
  gap: var(--q-space-12);
}
.product--live {
  border-color: var(--q-h-line);
}
.product__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--q-space-12);
}
.product__status {
  margin-top: var(--q-space-4);
}
.product__name {
  font-size: var(--q-text-24);
  line-height: var(--q-leading-24);
  letter-spacing: var(--q-tracking-24);
  overflow-wrap: anywhere;
}
.product__kind {
  margin: 0;
}
.product__desc {
  flex: 1;
}
.product__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--q-space-4);
  min-height: 44px;
  font-family: var(--q-font-mono);
  font-size: var(--q-text-14);
  overflow-wrap: anywhere;
}
.product__link .q-icon {
  width: var(--q-icon-sm);
  height: var(--q-icon-sm);
}
.products--compact .product {
  padding: var(--q-space-20);
}
.products--compact .product__name {
  font-size: var(--q-text-20);
  line-height: var(--q-leading-20);
  letter-spacing: 0;
}
.products--compact .product__desc {
  font-size: var(--q-text-15);
  line-height: var(--q-leading-15);
}

/* ---------- callout, statement, facts ---------- */

.callout {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-16);
  padding: var(--q-space-24);
  border: var(--q-line-hairline) solid var(--q-border);
  border-radius: var(--q-radius-card);
}
@media (min-width: 800px) {
  .callout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--q-space-32);
  }
}
.callout__text {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  min-width: 0;
}
.callout__title {
  font-size: var(--q-text-30);
  line-height: var(--q-leading-30);
  letter-spacing: var(--q-tracking-30);
}

.statement {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-16);
}
.statement__text {
  max-width: 22ch;
  overflow-wrap: break-word;
}
.statement__body {
  max-width: var(--q-prose);
}
@media (min-width: 640px) {
  .statement__text {
    font-size: var(--q-text-48);
    line-height: var(--q-leading-48);
    letter-spacing: var(--q-tracking-48);
  }
}

.facts {
  display: grid;
  gap: var(--q-space-24);
}
@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--q-space-32);
  }
}
.fact {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  min-width: 0;
  padding-top: var(--q-space-16);
  border-top: var(--q-line-hairline) solid var(--q-border);
}
.fact__title {
  font-size: var(--q-text-24);
  line-height: var(--q-leading-24);
  letter-spacing: var(--q-tracking-24);
}

/* ---------- founder and contact ---------- */

.duo {
  display: grid;
  gap: var(--q-space-40);
}
@media (min-width: 800px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--q-space-48);
  }
}
.duo__item {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-12);
  min-width: 0;
}
.duo__title {
  font-size: var(--q-text-30);
  line-height: var(--q-leading-30);
  letter-spacing: var(--q-tracking-30);
}
.founder__role {
  font-family: var(--q-font-mono);
  font-size: var(--q-text-13);
  color: var(--q-muted);
}
.duo__link {
  display: inline-flex;
  align-items: center;
  gap: var(--q-space-4);
  min-height: 44px;
}
.duo__link .q-icon {
  width: var(--q-icon-sm);
  height: var(--q-icon-sm);
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--q-font-mono);
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: var(--q-space-40) var(--q-space-32);
  border-top: var(--q-line-hairline) solid var(--q-border);
}
.site-footer__inner {
  display: grid;
  gap: var(--q-space-32);
  padding-bottom: var(--q-space-32);
}
@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: auto;
  }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  max-width: 24rem;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
  min-width: 0;
}
.site-footer__title {
  font-family: var(--q-font-mono);
  font-size: var(--q-text-12);
  font-weight: var(--q-weight-regular);
  line-height: var(--q-leading-12);
  letter-spacing: var(--q-tracking-label);
  text-transform: uppercase;
  color: var(--q-muted);
}
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--q-fg);
  font-size: var(--q-text-15);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__link:hover {
  color: var(--q-accent);
}
.site-footer__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--q-accent);
  text-underline-offset: 4px;
}
.site-footer__mail {
  font-family: var(--q-font-mono);
  font-size: var(--q-text-14);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--q-space-12);
  padding-top: var(--q-space-16);
  border-top: var(--q-line-hairline) solid var(--q-border);
}
.site-footer__legal {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.site-footer__product {
  gap: var(--q-space-8);
}
.site-footer__product img {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.motion-toggle {
  min-height: 44px;
  color: var(--q-muted);
  font-size: var(--q-text-13);
}
.motion-toggle[aria-pressed="true"] {
  color: var(--q-fg);
  background: var(--q-hover);
}
.motion-toggle[aria-pressed="true"]::after {
  content: "✓" / "";
  color: var(--q-accent);
}

/* ---------- 404 ---------- */

.notfound__inner {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-16);
  max-width: calc(var(--q-prose) + 2 * var(--q-page-pad));
  padding-block: var(--q-space-64);
}
.notfound__langs {
  display: grid;
  gap: var(--q-space-24);
  margin-top: var(--q-space-24);
  padding-top: var(--q-space-24);
  border-top: var(--q-line-hairline) solid var(--q-border);
}
@media (min-width: 640px) {
  .notfound__langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.notfound__langs > div {
  display: flex;
  flex-direction: column;
  gap: var(--q-space-8);
}
.notfound__subtitle {
  font-size: var(--q-text-24);
  line-height: var(--q-leading-24);
}
.notfound__langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-404 .site-footer {
  padding-block: var(--q-space-24) var(--q-space-32);
}
.page-404 .q-footer {
  padding-top: var(--q-space-16);
}
.page-404 .site-footer {
  border-top: 0;
}

/* The narrowest phones: four header controls next to the wordmark; the language toggle keeps its globe and
   its accessible name, and the gaps tighten. */
@media (max-width: 379.98px) {
  .site-header__inner {
    gap: var(--q-space-8);
  }
  .site-tools {
    gap: 0;
  }
  .lang-menu__code {
    display: none;
  }
  .lang-menu .menu__toggle {
    width: 44px;
    padding: 0;
  }
}
