/* Voiceley landing page: the Broadcast Desk world (docs/plan/broadcast-desk.md) at poster scale.
   Plain CSS, no build step. Logical properties throughout, so the Arabic page mirrors itself. */

:root {
  --desk: #e8ebf5;
  --module: #fafbff;
  --ink: #0a1440; /* the navy of the Voiceley wordmark */
  --ink-2: #111b4a;
  --ink-3: #1d2858;
  --ink-muted: #8f99c6;
  --muted: #4f5a82;
  --rule: #b8bfd8;
  --border: #d7dbea;
  --tape: #f5f6fc;
  --blue: #1450ff; /* the logo: electric blue */
  --blue-deep: #0b3bd6;
  --blue-light: #8fb0ff;
  --red: #e11d48; /* ON AIR: a rose red that sits with the violet */
  --red-text: #be123c;
  --cyan: #13b5ff; /* the logo: cyan */
  --violet: #8e1cf0; /* the logo: violet */
  --ultra: #2a12f5; /* the logo: the ultramarine between */
  --lit: var(--cyan); /* a lit lamp: on, ready */
  --meter-off: #d7dbea;
  --meter-off-dark: #26316a;

  --r: 6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --shadow-module: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 0 rgb(0 0 0 / 0.03);
  --shadow-float: 0 30px 70px -28px rgb(0 0 0 / 0.5), 0 6px 16px -6px rgb(0 0 0 / 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --clock: 1.6s;

  --font: 'Archivo', 'Noto Kufi Arabic', ui-sans-serif, system-ui, 'Segoe UI', Tahoma, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  color-scheme: light;
}

html[lang='ar'] {
  --font: 'Noto Kufi Arabic', 'Archivo', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
  scrollbar-color: var(--rule) transparent;
}

html[lang='ar'] body {
  line-height: 1.85;
}

::selection {
  background: rgb(20 80 255 / 0.2);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.legend {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
/* Arabic letters join: never track them. */
html[lang='ar'] .legend {
  letter-spacing: 0;
  font-size: 0.8rem;
  font-stretch: 100%;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
[dir='rtl'] .icon--flip {
  transform: scaleX(-1);
}

/* --- Lamps and the ON AIR tally ------------------------------------------------------------ */

.lamp {
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--meter-off);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.2);
}
.lamp--lit {
  background: var(--lit);
}
.lamp--blue {
  background: var(--blue);
}
.lamp--red {
  background: var(--red);
}
.is-beat {
  animation: beat var(--clock) steps(1, end) infinite;
}

@keyframes beat {
  0% {
    opacity: 1;
  }
  72% {
    opacity: 0.35;
  }
}

.tally {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r);
  background: var(--ink-3);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}
html[lang='ar'] .tally {
  letter-spacing: 0;
  font-stretch: 100%;
}
.tally__lamp {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.tally.is-live {
  background: var(--red);
  color: #fff;
}
.tally.is-live .tally__lamp {
  animation: beat var(--clock) steps(1, end) infinite;
}

/* --- Buttons -------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 2.75rem;
  padding-inline: 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    box-shadow 150ms var(--ease),
    transform 150ms var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  height: 2.25rem;
  padding-inline: 0.9rem;
  font-size: 0.9rem;
}
.btn--lg {
  height: 3.25rem;
  padding-inline: 1.5rem;
  font-size: 1.05rem;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 1px 2px rgb(0 0 0 / 0.25);
}
.btn--primary:hover {
  background: var(--blue-deep);
}
.btn--primary:active {
  background: var(--ultra);
}
.btn--outline {
  border-color: var(--rule);
  background: var(--module);
  color: var(--ink);
  box-shadow: var(--shadow-module);
}
.btn--outline:hover {
  border-color: var(--ink-muted);
  background: #fff;
}
/* The live demo: an outline cap with the ON AIR lamp in it. */
.btn--live {
  border-color: var(--rule);
  background: var(--module);
  color: var(--ink);
  box-shadow: var(--shadow-module);
}
.btn--live:hover {
  border-color: var(--red);
  background: #fff;
}
.btn--live .lamp {
  width: 0.45rem;
  height: 0.45rem;
}
@media (max-width: 40rem) {
  .nav__live {
    display: none;
  }
}
.lamp--white {
  background: #fff;
}
.btn--light {
  background: var(--tape);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.1);
}
.btn--light:hover {
  background: #fff;
}

/* --- Navigation ----------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--desk);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
/* Scrolled: the logo's gradient runs under the bar as a hairline. */
.nav.is-scrolled {
  border-image: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet)) 1;
}
.nav__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.75rem;
}
/* The Voiceley logo, as the owner drew it; its light version on dark surfaces. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  display: block;
  width: auto;
  height: 3.4rem;
}
/* Phones: the bar keeps logo, language and the demo button on one row; the logo gives way first (the Arabic
   button label is longer). */
@media (max-width: 30rem) {
  .nav__row {
    gap: 0.75rem;
  }
  .brand {
    flex: 0 1 8.4rem;
    min-width: 0;
  }
  .brand__logo {
    width: 100%;
    height: auto;
  }
  .nav__actions {
    flex: none;
    gap: 0.25rem;
  }
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-inline-start: auto;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms var(--ease);
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r);
  font-family: 'Noto Kufi Arabic', var(--font);
}
.lang:hover {
  background: var(--module);
}
.lang[lang='en'] {
  font-family: 'Archivo', var(--font);
}

@media (max-width: 64rem) {
  .nav__links {
    display: none;
  }
  .nav__actions {
    margin-inline-start: auto;
  }
}

/* --- Sections ------------------------------------------------------------------------------- */

.section {
  padding-block: var(--section);
}
.section__head {
  max-width: 44rem;
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
}
.section__head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.02;
  font-weight: 760;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__head p {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}
.section__head--light p {
  color: #b9c1e4;
}
html[lang='ar'] .section__head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

/* --- 1. Hero -------------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.1rem);
  line-height: 0.98;
  font-weight: 780;
  font-stretch: 82%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[lang='ar'] .hero__title {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}
.hero__lead {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 1.15rem;
  color: #343e6b;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__live {
  margin: 1.1rem 0 0;
}
.hero__live a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.hero__live a span:nth-child(2) {
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 150ms var(--ease);
}
.hero__live a:hover span:nth-child(2) {
  text-decoration-color: var(--red);
}
.hero__live .icon {
  width: 1rem;
  height: 1rem;
}
.facts {
  display: grid;
  gap: 0.55rem;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.95rem;
  color: #343e6b;
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.facts__check {
  width: 1rem;
  height: 1rem;
  color: var(--ink);
  transform: translateY(0.15em);
}

/* The desk: a dark master section with the transcript monitor and six channel strips. */
.desk {
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--r-xl);
  background: var(--ink);
  box-shadow: var(--shadow-float);
  color: #e9ecec;
}
.monitor {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--r-lg);
  background: #050a24;
  box-shadow: inset 0 0 0 1px #1a2350;
}
.monitor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
}
.monitor__ext {
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.monitor__ext b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.monitor__who {
  font-weight: 600;
  font-stretch: 90%;
}
.monitor__time {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #fff;
}
.monitor__label {
  margin: 0.9rem 0 0.6rem;
  color: var(--ink-muted);
}
.monitor__lines {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 12.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.line {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  unicode-bidi: plaintext;
  animation: line-in 320ms var(--ease) both;
}
.line__who {
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
html[lang='ar'] .line__who {
  letter-spacing: 0;
  font-size: 0.8rem;
}
.line__text {
  unicode-bidi: plaintext;
  font-size: 1rem;
  line-height: 1.55;
}
.line--agent .line__who {
  color: var(--blue-light);
}
.line--agent .line__text {
  color: #fff;
}
.line--caller .line__text {
  color: #c3c9ea;
}
.line.is-typing .line__text::after {
  content: '';
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: beat 0.8s steps(1, end) infinite;
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tray {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (max-width: 36rem) {
  .tray {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.strip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.5rem 0.6rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px #26316a;
  transition: box-shadow 250ms var(--ease);
}
.strip__tally {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ink-3);
}
.strip.is-live {
  box-shadow: inset 0 0 0 1px rgb(225 29 72 / 0.7);
}
.strip.is-live .strip__tally {
  background: var(--red);
  animation: wake 480ms var(--ease) both;
}
.strip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
}
.strip .lamp {
  background: var(--ink-3);
}
.strip.is-live .lamp {
  background: var(--red);
  animation: beat var(--clock) steps(1, end) infinite;
}
.tape {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.3rem 0.4rem 0.35rem;
  border-radius: 3px;
  background: var(--tape);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.tape__code {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  font-stretch: 82%;
  font-variant-numeric: tabular-nums;
}
.tape__name {
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 550;
  font-stretch: 88%;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.meter {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  height: 4.75rem;
  margin-inline: auto;
  width: 0.55rem;
}
.meter i {
  flex: 1;
  border-radius: 1px;
  background: var(--meter-off-dark);
  transition: background-color 90ms linear;
}
.meter i.on {
  background: var(--cyan);
}
.meter i:nth-child(n + 5).on {
  background: var(--blue);
}
.meter i:nth-child(n + 8).on {
  background: var(--violet);
}
.strip__state {
  align-self: center;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--ink-muted);
}
.strip.is-live .strip__state {
  background: var(--red);
  color: #fff;
}
.desk__note {
  margin: 0.75rem 0.25rem 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

@keyframes wake {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
[dir='rtl'] .strip.is-live .strip__tally {
  animation-name: wake-rtl;
}
@keyframes wake-rtl {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* --- 2. Solo -------------------------------------------------------------------------------- */

.solo {
  background: var(--module);
  border-block: 1px solid var(--border);
}
.solo__desk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--r-xl);
  background: var(--desk);
  box-shadow: inset 0 1px 4px rgb(0 0 0 / 0.12);
}
.chan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 0.9rem 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--module);
  box-shadow: var(--shadow-module);
  transition:
    opacity 300ms var(--ease),
    filter 300ms var(--ease),
    border-color 300ms var(--ease),
    transform 300ms var(--ease);
}
.chan__tally {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--meter-off);
}
.chan__ext {
  color: var(--muted);
}
.chan__name {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  font-stretch: 88%;
}
.chan__dialect {
  color: var(--muted);
  font-size: 0.85rem;
}
.solo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.25rem;
  margin-top: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    transform 150ms var(--ease);
}
html[lang='ar'] .solo-btn {
  letter-spacing: 0;
  font-stretch: 100%;
  font-size: 0.9rem;
}
.solo-btn:hover {
  border-color: var(--ink-muted);
}
.solo-btn:active {
  transform: translateY(1px);
}
.solo-btn__lamp {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--meter-off);
}
.solo-btn[aria-pressed='true'] {
  border-color: var(--blue-deep);
  background: var(--blue);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
}
.solo-btn[aria-pressed='true'] .solo-btn__lamp {
  background: #fff;
}
.chan.is-solo {
  border-color: var(--red);
  transform: translateY(-2px);
}
.chan.is-solo .chan__tally {
  background: var(--red);
  animation: wake 480ms var(--ease) both;
}
[dir='rtl'] .chan.is-solo .chan__tally {
  animation-name: wake-rtl;
}
/* Phones: two compact columns, so the soloed call is close below the desk. */
@media (max-width: 40rem) {
  .solo__desk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .chan {
    padding: 0.9rem 0.7rem 0.7rem;
  }
  .chan__name {
    font-size: 0.95rem;
  }
  .chan__dialect {
    display: none;
  }
  .solo-btn {
    margin-top: 0.5rem;
  }
}
.solo__desk.has-solo .chan:not(.is-solo) {
  opacity: 0.55;
  filter: saturate(0);
}
.solo__desk.has-solo .chan:not(.is-solo):hover {
  opacity: 0.85;
}

.solo__detail {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 64rem) {
  .solo__detail {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3.4fr);
  }
}
.module {
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-module);
}
.solo__request {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.solo__request .module__title {
  margin-top: 1.35rem;
}
.module__title {
  margin: 0 0 1rem;
  color: var(--muted);
}
.transcript {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.transcript .line__who {
  color: var(--muted);
}
.transcript .line--agent .line__who {
  color: var(--blue);
}
.transcript .line--caller .line__text {
  color: #343e6b;
}
.transcript .line--agent .line__text {
  color: var(--ink);
  font-weight: 500;
}
.ticket {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 4px;
  background: var(--tape);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 0.07),
    0 10px 24px -14px rgb(0 0 0 / 0.35);
  animation: ticket-in 520ms var(--ease) both;
}
.ticket__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--rule);
}
.ticket__form {
  font-weight: 700;
  font-stretch: 88%;
}
.ticket__no {
  font-size: 1.25rem;
  font-weight: 750;
  font-stretch: 82%;
  font-variant-numeric: tabular-nums;
}
.ticket__fields {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}
.ticket__fields div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
}
.ticket__fields dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.ticket__fields dd {
  margin: 0;
  font-weight: 550;
  unicode-bidi: plaintext;
}
.ticket__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: #e6edff;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 650;
}
@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(-10px) rotate(-0.6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.45;
  animation: line-in 360ms var(--ease) both;
}
.steps li:nth-child(2) {
  animation-delay: 140ms;
}
.steps li:nth-child(3) {
  animation-delay: 280ms;
}
.steps .icon {
  margin-top: 0.1em;
  padding: 0.15rem;
  border-radius: 50%;
  background: #e6edff;
  color: var(--blue);
  width: 1.35rem;
  height: 1.35rem;
}

/* --- 3. Flow: the console's cue band, one named phase after another ------------------------ */

.cue {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--module);
  box-shadow: var(--shadow-module);
}
.cue__list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cue__step {
  display: grid;
  grid-template-columns: 0.4rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.25rem;
  align-content: start;
}
.cue__seg {
  grid-row: 1 / span 2;
  border-radius: 1px;
  background: var(--meter-off);
  transition: background-color 280ms var(--ease);
}
.cue__step b {
  font-size: 1.05rem;
  font-weight: 720;
  font-stretch: 86%;
  transition: color 280ms var(--ease);
}
.cue__step span:last-child {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.cue__step.is-passed .cue__seg {
  background: var(--rule);
}
.cue__step.is-current .cue__seg {
  background: var(--c);
}
.cue__step.is-current b {
  color: var(--c);
}
@media (min-width: 72rem) {
  .cue__list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 3px;
  }
  .cue__step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 0.6rem;
    padding-inline-end: 1rem;
  }
  .cue__seg {
    grid-row: auto;
    height: 0.6rem;
    margin-bottom: 0.4rem;
  }
}

/* --- 4. Dialects ---------------------------------------------------------------------------- */

.dialects {
  background: var(--ink);
  color: #fff;
}
.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.voice {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px #26316a;
}
.voice__code {
  justify-self: start;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--tape);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 750;
  font-stretch: 82%;
  font-family: 'Archivo', var(--font);
}
.voice figcaption {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
html[lang='ar'] .voice figcaption {
  letter-spacing: 0;
  font-size: 0.9rem;
}
.voice blockquote {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 600;
}
.voice blockquote[lang='ar'] {
  font-family: 'Noto Kufi Arabic', var(--font);
  font-size: 1.3rem;
  line-height: 1.8;
}
.voice__meter {
  display: flex;
  gap: 2px;
  height: 0.5rem;
}
.voice__meter i {
  flex: 1;
  border-radius: 1px;
  background: var(--meter-off-dark);
}
.dialects.is-playing .voice__meter i {
  animation: level 1.1s var(--ease) infinite alternate;
}
.voice__meter i:nth-child(n + 6) {
  --lit: var(--blue);
}
.voice__meter i:nth-child(n + 10) {
  --lit: var(--violet);
}
.voice:nth-child(2) .voice__meter i {
  animation-duration: 0.9s;
}
.voice:nth-child(3) .voice__meter i {
  animation-duration: 1.3s;
}
.voice:nth-child(4) .voice__meter i {
  animation-duration: 1s;
}
.voice__meter i:nth-child(1) { animation-delay: -0.1s; }
.voice__meter i:nth-child(2) { animation-delay: -0.25s; }
.voice__meter i:nth-child(3) { animation-delay: -0.4s; }
.voice__meter i:nth-child(4) { animation-delay: -0.55s; }
.voice__meter i:nth-child(5) { animation-delay: -0.7s; }
.voice__meter i:nth-child(6) { animation-delay: -0.85s; }
.voice__meter i:nth-child(7) { animation-delay: -1s; }
.voice__meter i:nth-child(8) { animation-delay: -1.15s; }
.voice__meter i:nth-child(9) { animation-delay: -1.3s; }
.voice__meter i:nth-child(10) { animation-delay: -1.45s; }
.voice__meter i:nth-child(11) { animation-delay: -1.6s; }
.voice__meter i:nth-child(12) { animation-delay: -1.75s; }

/* A speaking level: segments light and fall back; later segments light less often. */
@keyframes level {
  0%,
  45% {
    background: var(--meter-off-dark);
  }
  55%,
  100% {
    background: var(--lit, var(--lit));
  }
}

/* --- The PBX band under the call flow --------------------------------------------------------- */

.pbx {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-float);
}
@media (min-width: 64rem) {
  .pbx {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
}
.pbx h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 760;
  font-stretch: 84%;
  letter-spacing: -0.02em;
}
html[lang='ar'] .pbx h3 {
  letter-spacing: 0;
  line-height: 1.5;
}
.pbx p {
  margin: 0.75rem 0 0;
  color: #b9c1e4;
}
.jacks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jacks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px #26316a;
  font-weight: 600;
}
.jack__name {
  flex: 1;
}
.jack__state {
  color: var(--lit);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
html[lang='ar'] .jack__state {
  letter-spacing: 0;
  font-size: 0.8rem;
}

/* --- 5. Privacy: the customer's data stays with the customer --------------------------------- */

.privacy__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 64rem) {
  .privacy__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}
/* A drawing of the boundary: everything that matters sits inside the customer's own business. */
.vault {
  display: grid;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-float);
}
.vault__site {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1rem 1rem;
  border: 1.5px dashed rgb(245 246 252 / 0.45);
  border-radius: var(--r-lg);
}
.vault__label {
  position: absolute;
  top: -0.6rem;
  inset-inline-start: 0.9rem;
  padding-inline: 0.45rem;
  background: var(--ink);
  color: var(--tape);
}
.vault__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vault__box {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border-radius: var(--r);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px #26316a;
  font-size: 0.95rem;
}
.vault__box b {
  font-weight: 650;
}
.vault__box--brand b {
  font-family: 'Archivo', var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.02em;
}
.vault__box img {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
}
.vault__wire {
  flex: 0 0 1.25rem;
  height: 2px;
  background: var(--lit);
}
.vault__store {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  border-radius: var(--r);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px #26316a;
}
.vault__store-label {
  color: var(--ink-muted);
}
.vault__tapes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vault__tapes li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 3px;
  background: var(--tape);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}
/* The wire to the outside, broken: an unlit lamp in the gap. */
.vault__gap {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding-block: 0.6rem;
}
.vault__gap span:first-child,
.vault__gap span:last-child {
  width: 2px;
  height: 0.9rem;
  background: #343e6b;
}
.vault__gap .lamp {
  background: var(--meter-off-dark);
}
.vault__outside {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: 1rem;
  border: 1.5px dashed #343e6b;
  border-radius: var(--r-lg);
  color: var(--ink-muted);
}
.vault__outside p {
  margin: 0;
  color: #b9c1e4;
  font-size: 0.95rem;
}
/* A desk toggle in its off position. */
.toggle-off {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tape);
  font-size: 0.85rem;
  font-weight: 700;
}
.toggle-off i {
  position: relative;
  width: 2.4rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #26316a;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5);
}
.toggle-off i::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #8f99c6;
}
/* What protects the data, as rows of lit lamps on one plate. */
.guards {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--module);
  box-shadow: var(--shadow-module);
}
.guards li {
  display: grid;
  grid-template-columns: 0.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 1.35rem;
}
.guards li + li {
  border-top: 1px solid var(--border);
}
.guards .lamp {
  margin-top: 0.5rem;
}
.guards b {
  font-size: 1.05rem;
  font-weight: 720;
  font-stretch: 88%;
}
.guards p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- 6. Automation -------------------------------------------------------------------------- */

.auto {
  background: var(--module);
  border-block: 1px solid var(--border);
}
.auto__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 64rem) {
  .auto__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
}
.auto__patch-label {
  margin-top: 2rem !important;
  color: var(--muted);
}
.patch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
/* Scribble-strip tape labels, one per destination. */
.patch li {
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  background: var(--tape);
  box-shadow:
    inset 0 0 0 1px rgb(0 0 0 / 0.08),
    0 1px 0 rgb(0 0 0 / 0.05);
  font-size: 0.9rem;
  font-weight: 650;
  font-stretch: 90%;
}
.board {
  padding: 1rem;
  border-radius: var(--r-xl);
  background: var(--desk);
  box-shadow: inset 0 1px 4px rgb(0 0 0 / 0.12);
}
.board__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.25rem 0.25rem 0.9rem;
  font-weight: 750;
  font-stretch: 86%;
  font-size: 1.1rem;
}
.board__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.board__col {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.board__col .legend {
  margin: 0 0 0.15rem;
  color: var(--muted);
}
.card {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-module);
}
.card b {
  font-variant-numeric: tabular-nums;
  font-stretch: 86%;
}
.card span {
  overflow: hidden;
  font-size: 0.85rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}
.card small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.icon--tiny {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--blue);
}
.card--fresh {
  border-color: var(--violet);
}
.card--fresh b::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-start: 0.45rem;
  border-radius: 50%;
  background: var(--violet);
  vertical-align: 0.1em;
}
.auto.is-seen .card--fresh {
  animation: ticket-in 600ms var(--ease) both;
}
.card--done {
  opacity: 0.7;
}
@media (max-width: 36rem) {
  .board__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- 7. Console, drawn ---------------------------------------------------------------------- */

.screen {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--desk);
  box-shadow: var(--shadow-float);
}
.screen__side {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1.1rem 0.8rem;
  background: var(--ink);
  color: #c9cfd1;
}
.screen__brand {
  display: flex;
  margin: 0 0.3rem 1rem;
}
.screen__brand img {
  width: auto;
  height: 1.7rem;
}
.screen__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r);
  font-size: 0.88rem;
  font-weight: 550;
}
.screen__nav.is-active {
  background: #1f2a5e;
  color: #fff;
}
.screen__nav em {
  padding: 0 0.35rem;
  border-radius: 3px;
  background: var(--tape);
  color: var(--ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}
.screen__nav em.red {
  background: var(--red);
  color: #fff;
}
.screen__main {
  padding: 1rem 1.25rem 1.4rem;
}
.screen__bar {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.screen__h {
  margin: 1rem 0 0.6rem;
  font-weight: 750;
  font-stretch: 86%;
}
.screen__tray {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: var(--r-lg);
  background: #dfe3f1;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.1);
}
.mini {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.35rem 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--module);
}
.mini__tally {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--meter-off);
}
.mini.is-live {
  border-color: rgb(225 29 72 / 0.6);
}
.mini.is-live .mini__tally {
  background: var(--red);
}
.mini__top {
  justify-self: end;
}
.mini__tape {
  display: grid;
  width: 100%;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  background: var(--tape);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.mini__tape b {
  font-variant-numeric: tabular-nums;
  font-stretch: 82%;
  line-height: 1.2;
}
.mini__tape small {
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini__state {
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang='ar'] .mini__state {
  letter-spacing: 0;
}
.mini.is-live .mini__state {
  background: var(--red);
  color: #fff;
}
.mini__loop {
  display: flex;
  gap: 0.3rem;
}
.mini__loop i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--meter-off);
}
.mini__loop i.on {
  background: var(--lit);
}
.console__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.console__cta p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}
.screen__note {
  margin: 0.9rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.screen__readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--border);
}
.screen__readouts > span {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  background: var(--module);
}
.screen__readouts small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
html[lang='ar'] .screen__readouts small {
  letter-spacing: 0;
  font-size: 0.8rem;
}
.screen__readouts b {
  direction: ltr;
  unicode-bidi: isolate;
  justify-self: start;
  font-size: 1.5rem;
  font-weight: 750;
  font-stretch: 86%;
  font-variant-numeric: tabular-nums;
}
.bar {
  display: flex;
  gap: 2px;
  height: 0.35rem;
}
.bar i {
  flex: 1;
  border-radius: 1px;
  background: var(--meter-off);
}
.bar i.g {
  background: var(--blue);
}
.bar i.a {
  background: var(--violet);
}
@media (max-width: 48rem) {
  .screen {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen__side {
    display: none;
  }
  .screen__tray {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .screen__readouts b {
    font-size: 1.15rem;
  }
}

/* --- 8. Demo -------------------------------------------------------------------------------- */

/* The close: the studio at night again, the form a module on it; cap blue stays on the actions. */
.demo {
  background: var(--ink);
  color: #fff;
}
.demo .section__head p {
  color: #b9c1e4;
}
.demo__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 64rem) {
  .demo__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}
.demo__wa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem !important;
  color: #fff !important;
  font-weight: 600;
}
.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--module);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.form__row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #858dae;
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 0.05);
  transition:
    border-color 150ms var(--ease),
    box-shadow 150ms var(--ease);
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(20 80 255 / 0.25);
}
[dir='rtl'] .field input[dir='ltr'] {
  text-align: right;
}
.form__error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r);
  background: #ffe4e9;
  color: var(--red-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}
.form__foot small {
  color: var(--muted);
}

/* --- Footer: the brand, three columns of links, and the fine print ------------------------------ */

.footer {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  background: var(--ink);
  color: var(--ink-muted);
}
/* The logo's gradient as a hairline between the last band and the footer. */
.footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--violet));
  opacity: 0.8;
}
/* Phones: the brand, then Product beside Try it over Contact. Tablets: the brand over three columns. Desktop: one
   row, the column headings level with the logo and the first links level with the line under it. */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
}
.footer__brand {
  grid-column: 1 / -1;
}
.footer__col:first-of-type {
  grid-row: span 2;
}
@media (min-width: 40rem) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__col:first-of-type {
    grid-row: auto;
  }
}
@media (min-width: 64rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: auto;
  }
  .footer__col .footer__heading {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin: 0 0 1.1rem;
  }
}
.footer__home {
  display: inline-flex;
  border-radius: var(--r);
}
.footer__logo {
  display: block;
  width: auto;
  height: 2.75rem;
}
.footer__line {
  max-width: 24rem;
  margin: 1.1rem 0 0;
  color: #c9ceea;
  font-size: 0.975rem;
  line-height: 1.6;
}
.footer__promise {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer__heading {
  margin: 0.5rem 0 1rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 650;
  font-stretch: 78%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
html[lang='ar'] .footer__heading {
  letter-spacing: 0;
  font-size: 0.85rem;
  font-stretch: 100%;
}
.footer__col ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e9ecfb;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 0.3em;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid #1d2858;
  font-size: 0.85rem;
}
.footer__bottom .lang {
  margin-inline-start: auto;
  color: #e9ecfb;
}
.footer .lang:hover {
  background: var(--ink-2);
}
.footer :focus-visible,
.dialects :focus-visible,
.demo :focus-visible,
.pbx :focus-visible {
  outline-color: #fff;
}

/* --- Reduced motion: everything visible and still -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
