/* Cirtaflow's site. Colours, type and shapes follow the product's "Quiet Sentinel" design: dark by default,
   light when the visitor picks it with the switch (data-theme="light" on <html>, set by theme.js and main.js).
   The overlays drawn on camera pictures keep the same colours in both, since the pictures do not change. */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: 'Noto Sans Arabic';
  src: url('/fonts/noto-sans-arabic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --ground: #0b0e12;
  --surface: #12161c;
  --raised: #1a2028;
  --card: rgba(26, 32, 40, 0.95);
  --line: #2a333f;
  --line-soft: #1e252e;
  --text: #e8edf2;
  --text-2: #c9d2dc;
  --muted: #a3aebb;
  --faint: #8a95a3;
  --accent: #2dd4bf;
  --accent-ink: #071012;
  --accent-text: #2dd4bf;
  --accent-soft: #12302c;
  --accent-soft-ink: #9febdd;
  --warning: #f2b33d;
  --warning-text: #f7cd7a;
  --warning-soft: #3a2a0e;
  --warning-line: #5a4313;
  --sun: block;
  --moon: none;

  /* On camera pictures, in both appearances */
  --o-person: #2dd4bf;
  --o-object: #a9c8ff;
  --o-alert: #f2b33d;
  --o-target: #f2766b;
  --mono: 'Geist Mono', 'Noto Sans Arabic', ui-monospace, 'SF Mono', Menlo, monospace;
}

:root[data-theme='light'] {
  color-scheme: light;
  --ground: #f4f6f8;
  --surface: #ffffff;
  --raised: #f4f6f8;
  --card: rgba(255, 255, 255, 0.96);
  --line: #d5dce3;
  --line-soft: #e6eaef;
  --text: #121820;
  --text-2: #2b3440;
  --muted: #4a5563;
  --faint: #5f6a77;
  --accent: #0e7065;
  --accent-ink: #ffffff;
  --accent-text: #0e7065;
  --accent-soft: #dff5f1;
  --accent-soft-ink: #0b5249;
  --warning: #9a6200;
  --warning-text: #6e4600;
  --warning-soft: #fdf1d8;
  --warning-line: #f0d79a;
  --sun: none;
  --moon: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font:
    16px/1.55 'Geist',
    'Noto Sans Arabic',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

time {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprites {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.center {
  text-align: center;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 960px;
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow.warning {
  color: var(--warning);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  transition:
    filter 150ms ease,
    border-color 150ms ease;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  font-weight: 500;
}

.button.secondary:hover {
  border-color: var(--muted);
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-inline-start: auto;
  font-size: 14px;
}

.section-link {
  color: var(--text-2);
}

.section-link:hover,
.links a:hover {
  color: var(--text);
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary svg {
  width: 20px;
  height: 20px;
}

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--text);
}

/* The language list opens from the globe towards the page's end side, where there is room. */
.lang-menu .menu-panel {
  inset-inline-end: auto;
  inset-inline-start: 0;
}

.menu-panel a[aria-current='page'] {
  color: var(--accent-text);
  font-weight: 600;
}

.theme-switch:hover {
  border-color: var(--muted);
  color: var(--text);
}

.theme-switch {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.theme-switch svg {
  width: 18px;
  height: 18px;
}

.theme-switch .sun {
  display: var(--sun);
}

.theme-switch .moon {
  display: var(--moon);
}

/* Section menu: phones only, where the section links are hidden */

.menu {
  position: relative;
  display: none;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary svg {
  width: 18px;
  height: 18px;
}

.menu[open] summary {
  border-color: var(--muted);
  color: var(--text);
}

.menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: 48px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.menu-panel a {
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
}

.menu-panel a:hover {
  background: var(--raised);
}

.button .short {
  display: none;
}

/* Under the picture, out of the figure's height, so the card over the picture keeps its place. */
.caption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
}

.cta .write {
  font-size: 15px;
}

.cta .write a {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Camera pictures and what Cirtaflow draws on them */

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.shot img {
  width: 100%;
}

.box {
  position: absolute;
  border: 1.5px solid var(--o-person);
  border-radius: 2px;
  pointer-events: none;
}

.box.object {
  border-color: var(--o-object);
}

.box.target {
  border: 2px solid var(--o-target);
}

.box.alert {
  border: 2.5px solid var(--o-alert);
  border-radius: 3px;
  box-shadow: 0 0 0 4px rgba(242, 179, 61, 0.22);
}

.box.alert.large {
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(242, 179, 61, 0.2);
}

.tag {
  position: absolute;
  left: -1.5px;
  bottom: 100%;
  margin-bottom: 2px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--o-person);
  color: #071012;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.object .tag {
  background: var(--o-object);
}

.alert .tag {
  left: -2.5px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--o-alert);
  color: #1a1205;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alert.large .tag {
  margin-bottom: 8px;
  padding: 5px 10px;
  font-size: 14px;
}

.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.overlay line {
  stroke: var(--o-person);
  stroke-width: 3;
}

.line-label {
  position: absolute;
  left: 33.5%;
  top: 48.4%;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--o-person);
  color: #071012;
  font-size: 12px;
  font-weight: 600;
}

.chip {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 14, 18, 0.82);
  color: #e8edf2;
  font-size: 13px;
}

.chip.live {
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip.live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2766b;
}

.chip.clock {
  right: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #c9d2dc;
}

/* Cards laid over the pictures; under them on a phone */

.float-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
}

.float-card.warning {
  border-color: var(--warning-line);
}

.float-card.warning strong {
  display: block;
  color: var(--warning-text);
  font-weight: 600;
}

.badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge .icon {
  width: 18px;
  height: 18px;
}

.badge.large {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.badge.large .icon {
  width: 24px;
  height: 24px;
}

.stats {
  gap: 8px;
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
}

.stats > span {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.stats small {
  font-size: 12px;
  color: var(--muted);
}

.stats b {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats b.accent {
  color: var(--accent-text);
}

.alert-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(320px, calc(100% - 32px));
  border-color: var(--warning-line);
  font-size: 14px;
}

.alert-card .head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.alert-card .head strong {
  color: var(--warning-text);
  font-weight: 600;
}

.alert-card time {
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 8px;
}

.fake-button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.fake-button.warning {
  border-color: transparent;
  background: var(--o-alert);
  color: #1a1205;
  font-weight: 600;
}

/* Hero */

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: clamp(48px, 7vw, 88px);
  text-align: center;
}

.lead {
  max-width: 700px;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-shot {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.hero-shot .shot {
  border-radius: 14px;
}

/* Sections */

.section {
  padding-top: clamp(88px, 10vw, 128px);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px 20px;
  margin-top: 40px;
}

.steps > li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps > li > p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 15px;
}

.steps strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.num {
  font-family: var(--mono);
  color: var(--accent-text);
}

.answers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.answers li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--raised);
  color: var(--muted);
  font-size: 14px;
}

.answers strong {
  color: var(--text);
  font-weight: 600;
}

.answers .badge {
  width: 30px;
  height: 30px;
}

.answers .badge .icon {
  width: 16px;
  height: 16px;
}

/* Features */

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}

.row.reverse {
  flex-direction: row-reverse;
}

.text {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.text p:not(.eyebrow),
.split-head > p {
  color: var(--muted);
  font-size: 17px;
}

.media {
  position: relative;
  flex: 2 1 560px;
  min-width: 0;
}

.split-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
  margin-bottom: 32px;
}

.split-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.split-head > p {
  max-width: 440px;
}

/* Heatmap legend */

.legend {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 14, 18, 0.82);
  color: #e8edf2;
  font-size: 12px;
}

.ramp {
  width: 96px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2f6bff, #2dd4bf, #f2d23d, #f2554b);
}

/* Age and gender card */

.demo {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 236px;
}

.demo strong {
  font-weight: 600;
}

.demo .label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-row b {
  font-weight: 600;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--raised);
}

.fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
}

.fill.under {
  width: 6%;
}

.fill.adult {
  width: 100%;
}

.fill.senior {
  width: 18%;
}

.split {
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.split > span {
  padding: 5px 8px;
  white-space: nowrap;
}

.split .women {
  flex: 202;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.split .men {
  flex: 210;
  background: var(--raised);
  color: var(--text-2);
  text-align: end;
}

.demo small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

/* Search */

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
}

.filter.on {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.swatch.red {
  background: #c0392b;
}

.swatch.blue {
  background: #2f5fa8;
}

.results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.results li {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--raised);
}

.results img {
  width: 100%;
}

.results span {
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.results time,
.stop time {
  color: var(--faint);
  font-size: 11px;
}

/* Journey */

.scroller {
  overflow-x: auto;
  padding-bottom: 8px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  min-width: 1000px;
}

.journey > li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey .shot {
  border-radius: 10px;
}

.stop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.stop time {
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 400;
}

.step {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--o-target);
  color: #071012;
  font-size: 12px;
  font-weight: 700;
}

.verdict {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.verdict > span {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 0;
  border-radius: 6px;
}

.verdict .yes {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.verdict .no {
  border: 1px solid var(--line);
  color: var(--muted);
}

.tick {
  width: 12px;
  height: 12px;
}

/* Live wall */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.wall > li {
  position: relative;
}

.wall .shot {
  border: 0;
  border-radius: 6px;
  background: #0b0e12;
}

.wall .name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(11, 14, 18, 0.8);
  color: #e8edf2;
  font-size: 12px;
}

.offline .shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #0e1217;
}

.reconnecting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7cd7a;
  font-size: 13px;
}

.reconnecting .icon {
  width: 14px;
  height: 14px;
}

/* Evidence */

.watermark {
  position: absolute;
  inset: -20%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: rotate(-16deg);
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: clamp(11px, 1.3vw, 16px);
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.evidence-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 14px;
  background: rgba(11, 14, 18, 0.88);
  color: #c9d2dc;
  font-family: var(--mono);
  font-size: 12px;
}

.evidence-bar .ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9febdd;
}

/* Use cases */

.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}

.uses li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}

.uses .badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.uses .badge .icon {
  width: 22px;
  height: 22px;
}

.uses h3 {
  font-size: 16px;
  font-weight: 600;
}

.uses.compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.uses p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Security and privacy */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin-top: 40px;
}

.trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}

.trust h3 {
  font-size: 16px;
  font-weight: 600;
}

.trust p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Contact */

#contact {
  padding-bottom: 96px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cta > div {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cta p {
  color: var(--muted);
  font-size: 17px;
}

/* Footer */

footer {
  border-top: 1px solid var(--line-soft);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.links a {
  color: var(--muted);
}

.legal {
  flex-basis: 100%;
  color: var(--faint);
  font-size: 13px;
}

/* Not-found page */

.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  padding: 32px 16px;
  text-align: center;
}

.lost h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.lost p {
  color: var(--muted);
}

.mark.large {
  width: 64px;
  height: 64px;
}

.lost > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.lost h2 {
  font-size: 22px;
}

/* Smaller screens */

@media (max-width: 760px) {
  .section-link {
    display: none;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .button .long {
    display: none;
  }

  .button .short {
    display: inline;
  }
}

@media (max-width: 360px) {
  .nav .wrap,
  .nav-links {
    gap: 6px;
  }

  .nav .button.small {
    padding: 0 12px;
  }
}

@media (max-width: 640px) {
  /* Phones: both menus open full width under the header. */
  .menu-panel,
  .lang-menu .menu-panel {
    position: fixed;
    top: 66px;
    inset-inline: 12px;
  }

  .nav .wrap {
    gap: 12px;
  }

  .nav-links {
    gap: 8px 12px;
  }

  .float-card {
    position: static;
    max-width: none;
    width: auto;
    margin-top: 12px;
  }

  .stats > span {
    flex: 1;
  }

  .chip {
    top: 8px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .chip.live {
    left: 8px;
  }

  .chip.clock {
    right: 8px;
  }

  .results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
  }

  .wall .name {
    left: 4px;
    bottom: 4px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .reconnecting {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0;
  }

  .brand .mark {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Arabic: letters join, so no tracking; the pictures and their boxes keep their own left and right. */
html[lang='ar'] :is(h1, h2, h3, .eyebrow, .brand, .demo .label, .lead) {
  letter-spacing: 0;
}

html[lang='ar'] .eyebrow {
  text-transform: none;
  font-family: 'Noto Sans Arabic', 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Not-found page: the way home in the other languages */
.homes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.homes a {
  color: var(--muted);
}

.homes a:hover {
  color: var(--text);
}
