/* JMB Bot: the base every page shares. Concept «زِن بالأخضر»: zenpayoff.com's page in WhatsApp green (project/work/design.md).
   Colours come from theme.json only: aliased here, translucent tints made with color-mix(). */

:root {
  --c-paper: var(--wp--preset--color--paper);
  --c-paper-lit: var(--wp--preset--color--paper-lit);
  --c-white: var(--wp--preset--color--white);
  --c-mist: var(--wp--preset--color--mist);
  --c-ink: var(--wp--preset--color--ink);
  --c-slate: var(--wp--preset--color--slate);
  --c-mute: var(--wp--preset--color--mute);
  --c-haze: var(--wp--preset--color--haze);
  --c-line: var(--wp--preset--color--line);
  --c-line-strong: var(--wp--preset--color--line-strong);
  --c-green: var(--wp--preset--color--green);
  --c-green-mid: var(--wp--preset--color--green-mid);
  --c-green-deep: var(--wp--preset--color--green-deep);
  --c-green-text: var(--wp--preset--color--green-text);
  --c-green-dark: var(--wp--preset--color--green-dark);
  --c-green-tint: var(--wp--preset--color--green-tint);
  --c-green-wash: var(--wp--preset--color--green-wash);
  --c-cyan: var(--wp--preset--color--cyan);
  --c-cyan-deep: var(--wp--preset--color--cyan-deep);
  --c-cyan-tint: var(--wp--preset--color--cyan-tint);
  --c-wall: var(--wp--preset--color--wall);
  --c-bar: var(--wp--preset--color--bar);
  --c-bubble: var(--wp--preset--color--bubble);
  --c-tick: var(--wp--preset--color--tick);
  --c-wa-teal: var(--wp--preset--color--wa-teal);
  --c-chat-meta: var(--wp--preset--color--chat-meta);
  --c-red: var(--wp--preset--color--red);
  --c-amber: var(--wp--preset--color--amber);
  --c-amber-tint: var(--wp--preset--color--amber-tint);

  --f: var(--wp--preset--font-family--naskh);
  --fs-meta: var(--wp--preset--font-size--meta);
  --fs-chat: var(--wp--preset--font-size--chat);
  --fs-small: var(--wp--preset--font-size--small);
  --fs-body: var(--wp--preset--font-size--body);
  --fs-lead: var(--wp--preset--font-size--lead);
  --fs-title: var(--wp--preset--font-size--title);
  --fs-heading: var(--wp--preset--font-size--heading);
  --fs-display: var(--wp--preset--font-size--display);

  --ease: var(--wp--custom--motion--ease);
  --t-fast: var(--wp--custom--motion--fast);
  --t-mid: var(--wp--custom--motion--mid);
  --t-slow: var(--wp--custom--motion--slow);

  --wrap: var(--wp--custom--layout--wrap);
  --wide: var(--wp--custom--layout--wide);
  --gut: var(--wp--custom--layout--gutter);
  --r-card: var(--wp--custom--radius--card);
  --r-inner: var(--wp--custom--radius--inner);
  --r-control: var(--wp--custom--radius--control);
  --r-pill: var(--wp--custom--radius--pill);
  --sh-card: var(--wp--custom--shadow--card);
  --sh-float: var(--wp--custom--shadow--float);
  --sh-button: var(--wp--custom--shadow--button);
  --sec: var(--wp--preset--spacing--section);

  --grad-btn: linear-gradient(180deg, var(--c-green-mid), var(--c-green-deep));
  --grad-panel: linear-gradient(145deg, var(--c-green) 0%, color-mix(in srgb, var(--c-green) 55%, var(--c-cyan)) 55%, var(--c-cyan) 100%);
  --grad-word: linear-gradient(90deg, var(--c-green-mid) 0%, var(--c-green-text) 45%, var(--c-cyan-deep) 100%);
  --ink-08: color-mix(in srgb, var(--c-ink) 8%, transparent);
  --ink-14: color-mix(in srgb, var(--c-ink) 14%, transparent);
  --green-12: color-mix(in srgb, var(--c-green) 12%, transparent);
  --green-25: color-mix(in srgb, var(--c-green) 25%, transparent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font: 400 var(--fs-body)/1.85 var(--f);
  color: var(--c-ink);
  background: var(--c-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f); font-weight: 400; }
h2, h3 { text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--c-green-text); color: var(--c-white); }
.s { position: relative; scroll-margin-top: 90px; }
.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 2.5px solid var(--c-green-text);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip:focus {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 8px 16px;
  border-radius: var(--r-control);
  background: var(--c-ink);
  color: var(--c-white);
}

/* Drawn icons: one stroke, round ends; the duotone layer is in each file */
.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.14em;
  overflow: visible;
}
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}
.sec { padding-block: var(--sec); }

/* a section's heading: regular weight, its chosen words in green (the field "accent") */
.h2 {
  font-size: var(--fs-heading);
  line-height: var(--wp--custom--line--heading);
  color: var(--c-ink);
}
.hl { color: var(--c-green-text); }
.head { display: grid; gap: 14px; max-width: 760px; margin-block-end: clamp(32px, 4vw, 52px); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: var(--fs-lead); line-height: 1.9; color: var(--c-slate); max-width: 40em; }

/* a small pill line above a heading (zenpayoff's "TESTIMONIALS", "Answers to...") */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-green-text);
  font-size: var(--fs-small);
}
.tag .icon { font-size: 1.15em; }

/* cards: white, hairline, large radius */
.card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
}
/* the green-to-cyan panel that holds white interface cards (zenpayoff's blue panel) */
.panel {
  position: relative;
  border-radius: calc(var(--r-card) - 4px);
  background: var(--grad-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 20% 0%, rgba(255, 255, 255, .35), transparent 70%);
  pointer-events: none;
}
.ui {
  position: relative;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--c-ink) 55%, transparent);
  font-size: var(--fs-small);
}
/* a floating card: a label over a value, beside its icon tile (zenpayoff's "DEBT SMASHED") */
.float {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--sh-float);
  white-space: nowrap;
  text-align: start;
}
.float__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--c-green-tint);
  color: var(--c-green-text);
  font-size: 1.35rem;
}
.float__ic--cyan { background: var(--c-cyan-tint); color: var(--c-cyan-deep); }
.float__tx { display: flex; flex-direction: column; line-height: 1.35; }
.float__tx small { font-size: .8rem; color: var(--c-mute); }
.float__tx b { font-size: 1rem; font-weight: 600; }

/* the "Example" mark of a drawn figure */
.eg {
  display: inline-block;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  color: var(--c-mute);
  font-size: var(--fs-meta);
  line-height: 1.9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 1px solid var(--c-green-dark);
  border-radius: var(--r-control);
  background: var(--grad-btn);
  color: var(--c-white);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--sh-button);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 12px 26px -8px color-mix(in srgb, var(--c-green-deep) 75%, transparent); }
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 1.2em; }
.btn--ghost {
  background: var(--c-white);
  border-color: var(--c-line-strong);
  color: var(--c-ink);
  box-shadow: 0 4px 14px -10px var(--ink-14);
}
.btn--ghost .icon { color: var(--c-green-text); }
.btn--ghost:hover { border-color: var(--c-green-text); box-shadow: 0 8px 18px -12px var(--ink-14); }
.btn--sm { min-height: 44px; padding: 0 1.25em; font-size: 1rem; border-radius: 11px; }
.btn--light { background: var(--c-white); color: var(--c-green-dark); border-color: var(--c-white); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .35); }
.btn--line { background: transparent; color: var(--c-white); border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--line:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

/* the pause control of the motion that runs by itself */
.pausebtn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green-text);
  font-size: .9rem;
  cursor: pointer;
}
.pausebtn .pausebtn__play { display: none; }
.pausebtn[aria-pressed="true"] { background: var(--c-green-text); border-color: var(--c-green-text); color: var(--c-white); }
.pausebtn[aria-pressed="true"] .pausebtn__pause { display: none; }
.pausebtn[aria-pressed="true"] .pausebtn__play { display: block; }
html.is-paused .glide, html.is-paused .glide *, html.is-paused .turns * { animation-play-state: paused !important; }

/* ---------- Header: the scrolling top bar and the white bar ---------- */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  background: var(--c-white);
  border-block-end: 1px solid var(--c-line);
}
.bar__track { display: flex; flex: none; width: max-content; }
.bar__run {
  display: flex;
  flex: none;
  align-items: center;
  gap: 22px;
  padding-inline-end: 22px;
  list-style: none;
  color: var(--c-green-text);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
}
.bar__run li { display: flex; align-items: center; gap: 22px; }
.bar__run li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); opacity: .55; }
.bar .pausebtn { position: absolute; inset-inline-end: 10px; inset-block-start: 6px; box-shadow: 0 0 0 8px var(--c-white); }

.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--c-white) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--c-line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  max-width: 1360px;
  height: 76px;
  margin-inline: auto;
  padding-inline: var(--gut);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { display: block; width: auto; height: 54px; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; }
.nav a { position: relative; display: block; padding-block: 6px; font-size: 1.04rem; transition: color var(--t-fast); }
.nav a:hover, .nav .current-menu-item > a { color: var(--c-green-text); }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-green);
  transform: scaleX(0);
  transition: transform var(--t-mid) var(--ease);
}
.nav a:hover::after { transform: none; }
.top__act { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.top__login { font-weight: 600; transition: color var(--t-fast); }
.top__login:hover { color: var(--c-green-text); }

.menu { display: none; position: relative; }
.menu__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  background: var(--c-white);
  font-size: 1.35rem;
  list-style: none;
  cursor: pointer;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__shut { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__shut { display: block; }
.menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-start: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: var(--c-white);
  box-shadow: var(--sh-float);
}
.menu__panel ul { list-style: none; }
.menu__panel a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 1.05rem; }
.menu__panel a:hover { background: var(--c-green-wash); color: var(--c-green-text); }
.menu__panel .top__login { border-block-start: 1px solid var(--c-line); border-radius: 0; margin-block-start: 6px; padding-block-start: 14px; }

/* ---------- Footer: white, in columns ---------- */
.foot { background: var(--c-white); border-block-start: 1px solid var(--c-line); }
.foot__in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
}
.foot__brand .brand__logo { height: 50px; }
.foot__txt { margin-block-start: 18px; max-width: 26em; color: var(--c-slate); font-size: var(--fs-small); line-height: 1.9; }
.foot__h { margin-block-end: 18px; font-weight: 600; font-size: 1rem; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot__in a { color: var(--c-slate); transition: color var(--t-fast); }
.foot__in a:hover { color: var(--c-green-text); }
.foot__wa { display: inline-flex; align-items: center; gap: 8px; }
.foot__wa .icon { color: var(--c-green-text); font-size: 1.2rem; }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-block-start: 1px solid var(--c-line);
  color: var(--c-mute);
  font-size: var(--fs-small);
}

/* ---------- The phone ---------- */
.phone {
  position: relative;
  z-index: 3;
  width: 300px;
  height: 610px;
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c-ink) 78%, var(--c-white)) 0%, var(--c-ink) 45%, color-mix(in srgb, var(--c-ink) 88%, var(--c-white)) 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .16) inset,
    0 50px 80px -40px color-mix(in srgb, var(--c-ink) 70%, transparent),
    0 20px 30px -24px rgba(0, 0, 0, .35);
}
.phone__key {
  position: absolute;
  inset-inline-end: -3px;
  width: 4px;
  border-radius: 3px;
  background: var(--c-ink);
}
.phone__key--a { inset-block-start: 118px; height: 28px; }
.phone__key--b { inset-block-start: 160px; height: 52px; }
.phone__key--c { inset-block-start: 222px; height: 52px; }
.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background: var(--c-wall);
}
.sbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 42px;
  padding-inline: 26px 20px;
  background: var(--c-bar);
  color: var(--c-ink);
}
.sbar__t { font: 600 .82rem/1 var(--f); }
.sbar__isle {
  position: absolute;
  inset-block-start: 9px;
  inset-inline: 0;
  width: 84px;
  height: 24px;
  margin-inline: auto;
  border-radius: 14px;
  background: var(--c-ink);
}
.sbar__ico { display: inline-flex; align-items: center; gap: 5px; }
.sbar__ico svg { height: 10px; width: auto; fill: currentColor; }

/* ---------- The chat: WhatsApp's light look ---------- */
.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  font-size: var(--fs-chat);
  line-height: var(--wp--custom--line--chat);
  color: var(--c-ink);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 10px 10px;
  background: var(--c-bar);
  border-block-end: 1px solid var(--ink-08);
}
.chat__back { font-size: 1.1rem; stroke-width: 2.2; color: var(--c-slate); }
.chat__ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: var(--c-white);
  font: 600 1rem/1 var(--f);
}
.chat__who { flex: 1; min-width: 0; line-height: 1.35; }
.chat__who strong { display: block; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__who span { display: block; font-size: .7rem; color: var(--c-chat-meta); }
.chat__tools { display: inline-flex; gap: 12px; font-size: 1.1rem; color: var(--c-slate); }

.chat__view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background:
    radial-gradient(color-mix(in srgb, var(--c-chat-meta) 12%, transparent) 1.1px, transparent 1.4px) 0 0 / 16px 16px,
    var(--c-wall);
}
.chat__list { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 12px; }
.chat__day { align-self: center; margin: 0 0 2px; font-size: .68rem; line-height: 1; }
.chat__day span {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--c-chat-meta);
  box-shadow: 0 1px 1px var(--ink-08);
}

.msg {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 84%;
  margin: 0;
  padding: 6px 9px 4px;
  border-radius: 12px;
  box-shadow: 0 1px 1px var(--ink-14);
}
.msg--in { align-self: flex-start; background: var(--c-white); border-start-start-radius: 3px; }
.msg--out { align-self: flex-end; background: var(--c-bubble); border-start-end-radius: 3px; }
.msg b { font-weight: 600; }
.msg s { text-decoration-thickness: 1.5px; color: var(--c-chat-meta); }
.msg__tag {
  align-self: flex-start;
  margin-block-end: 2px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: .64rem;
  line-height: 1.7;
}
.msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-block-start: 1px;
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--c-chat-meta);
}
.msg__tick { font-size: 1.05rem; color: var(--c-tick); stroke-width: 2; }

.msg--photo { padding: 3px 3px 4px; width: 84%; }
.msg--photo .msg__txt { padding: 5px 6px 0; }
.msg--photo .msg__meta { padding-inline: 6px; }
.photo { position: relative; display: block; overflow: hidden; border-radius: 10px; border-start-end-radius: 3px; }
.msg--in .photo { border-start-end-radius: 10px; border-start-start-radius: 3px; }
.photo img { display: block; width: 100%; height: auto; }
.photo img.is-svg { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.photo__fx { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.photo__beam {
  position: absolute;
  inset-inline: 0;
  inset-block-start: -40%;
  height: 40%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c-green) 50%, transparent));
  border-block-end: 2px solid var(--c-white);
}
.photo__ring {
  position: absolute;
  inset-block-start: 20%;
  inset-inline: 24%;
  height: 46%;
  border: 2px dashed var(--c-white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-green) 18%, transparent);
}

.msg--voice { min-width: 76%; }
.voice { display: flex; align-items: center; gap: 7px; padding-block: 2px; }
.voice__ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-chat-meta) 70%, var(--c-white));
  color: var(--c-white);
  font-size: 1rem;
}
.voice__ava--bot { background: var(--grad-btn); font: 600 .9rem/1 var(--f); }
.voice__play { color: var(--c-chat-meta); font-size: 1.15rem; display: inline-flex; }
.msg--in .voice__play { color: var(--c-green-text); }
.voice__len { font-size: .66rem; color: var(--c-chat-meta); }
.wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 24px; color: color-mix(in srgb, var(--c-chat-meta) 60%, transparent); }
.wave i { display: block; flex: 1; min-width: 2px; max-width: 3px; height: calc(var(--h, .5) * 100%); border-radius: 2px; background: currentColor; }
.msg--in .wave { color: color-mix(in srgb, var(--c-green-text) 70%, transparent); }
.voice__said {
  margin-block-start: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--ink-08);
  font-size: .72rem;
  line-height: 1.55;
}

.msg--file { width: 84%; padding: 3px 3px 4px; }
.msg--file .msg__txt { padding: 5px 6px 0; }
.msg--file .msg__meta { padding-inline: 6px; }
.file { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; border-start-end-radius: 3px; background: var(--ink-08); }
.file__ico { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 42px; color: var(--c-red); font-size: 2.3rem; }
.file__ico b {
  position: absolute;
  inset-block-end: 3px;
  padding: 0 3px;
  border-radius: 3px;
  background: var(--c-red);
  color: var(--c-white);
  font: 600 .5rem/1.5 var(--f);
}
.file__b { display: grid; min-width: 0; line-height: 1.4; }
.file__n { font-weight: 600; font-size: .76rem; overflow-wrap: anywhere; }
.file__m { font-size: .66rem; color: var(--c-chat-meta); }

.mform { display: grid; gap: 5px; margin-block: 6px 2px; }
.mform__f { padding: 5px 9px; border-radius: 8px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line) inset; color: var(--c-mute); font-size: .72rem; }

.typing { display: none; }
.typing__mic { display: none; }

.chat__bar { display: flex; align-items: center; gap: 6px; flex: none; padding: 7px 8px 14px; background: var(--c-wall); }
.chat__field {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 7px 11px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-size: .76rem;
  color: var(--c-chat-meta);
}
.chat__field span { flex: 1; }
.chat__field .icon { font-size: 1.05rem; }
.chat__mic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-wa-teal);
  color: var(--c-white);
  font-size: 1.1rem;
}

/* the controls of a playing chat */
.ctl__b {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green-text);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ctl__b:hover { background: var(--c-green-text); border-color: var(--c-green-text); color: var(--c-white); }
.ctl__b:active { transform: scale(.92); }
.ctl__play { display: none; }
.ctl__b[aria-pressed="true"] .ctl__pause { display: none; }
.ctl__b[aria-pressed="true"] .ctl__play { display: block; }
.ctl__b[hidden] { display: none; }

/* ---------- Motion: one language ---------- */
@keyframes hop { 0%, 100% { transform: translateY(0); } 32% { transform: translateY(-55%); } 62% { transform: translateY(0); } 78% { transform: translateY(-12%); } }
@keyframes level { 0%, 100% { transform: scale(1); } 50% { transform: scale(.72); } }
@keyframes beam { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(380%); } }
@keyframes ring { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes play { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.94); } 60% { transform: translateY(2px) scale(1.01); } to { opacity: 1; transform: none; } }
@keyframes glide { to { transform: translateX(-100%); } }
@keyframes glide-rtl { to { transform: translateX(100%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* the gliding rows (the top bar, the strip): each run moves one width; the second follows the first */
@media (prefers-reduced-motion: no-preference) {
  .glide > * { animation: glide var(--glide, 40s) linear infinite; }
  [dir="rtl"] .glide > * { animation-name: glide-rtl; }

  /* scroll moments: blocks that are never hidden themselves; their children rise */
  html.js [data-reveal] > * { opacity: 0; translate: 0 24px; transition: opacity var(--t-mid) linear, translate 700ms var(--ease); }
  html.js [data-reveal].is-seen > * { opacity: 1; translate: none; }
  html.js [data-reveal].is-seen > *:nth-child(2) { transition-delay: 90ms; }
  html.js [data-reveal].is-seen > *:nth-child(3) { transition-delay: 180ms; }

  /* the chat plays only when a script runs it (site.js, JMB.chat) */
  html.js [data-chat].is-live .chat__view { overflow: hidden; }
  html.js [data-chat].is-live .chat__list {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    transition: transform 560ms var(--ease), opacity 300ms linear;
  }
  html.js [data-chat].is-fading .chat__list { opacity: 0; }
  html.js [data-chat].is-live .msg:not(.is-first) { visibility: hidden; opacity: 0; transform: translateY(12px) scale(.94); }
  html.js [data-chat].is-live .msg--in { transform-origin: 100% 0; }
  html.js [data-chat].is-live .msg--out { transform-origin: 0 0; }
  html.js [data-chat].is-live .msg.is-in { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms linear, transform var(--t-mid) var(--ease); }
  html.js [data-chat].is-live .msg--voice .voice__said { opacity: 0; transition: opacity 300ms linear; }
  html.js [data-chat].is-live .msg--voice.is-heard .voice__said { opacity: 1; }
  html.js .msg--voice.is-playing .wave i { animation: play 520ms ease-in-out infinite; }
  html.js .msg--voice.is-playing .wave i:nth-child(3n+2) { animation-delay: 120ms; }
  html.js .msg--voice.is-playing .wave i:nth-child(3n) { animation-delay: 240ms; }

  html.js [data-chat].is-live .typing {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 13px;
    border-radius: 12px;
    border-start-start-radius: 3px;
    background: var(--c-white);
    box-shadow: 0 1px 1px var(--ink-14);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms linear;
  }
  html.js .typing.is-on { visibility: visible !important; opacity: 1 !important; }
  html.js .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-chat-meta); opacity: .6; }
  html.js .typing.is-on i { animation: hop 620ms ease-in-out infinite; }
  html.js .typing.is-on i:nth-child(2) { animation-delay: 120ms; }
  html.js .typing.is-on i:nth-child(3) { animation-delay: 240ms; }
  html.js .typing.is-rec i { display: none; }
  html.js .typing.is-rec .typing__mic { display: block; font-size: 1rem; color: var(--c-green-text); animation: level 520ms ease-in-out infinite; }

  .msg--photo.is-scanning .photo__fx { opacity: 1; transition: opacity 200ms linear; }
  .msg--photo.is-scanning .photo__beam { animation: beam 1300ms var(--ease) 2; }
  .msg--photo.is-scanning .photo__ring { animation: ring 500ms var(--ease) 700ms both; }

  .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
}

@media (max-width: 1099px) {
  .nav, .top__act > .top__login { display: none; }
  .menu { display: block; }
  .top__act { gap: 10px; margin-inline-start: 0; }
  .brand { margin-inline-start: auto; }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .bar { height: 38px; }
  .top__in { height: 66px; gap: 12px; }
  .brand__logo { height: 44px; }
  .btn--sm { min-height: 42px; padding-inline: 1em; font-size: .95rem; }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 36px 28px; }

  /* A shorter page on a phone (the client's word, 2026-11-19): the top bar, the business types, the conversations and
     the dashboard and the campaigns (2026-11-20) stay on larger screens; their menu entries go with them. The footer keeps the account links, the
     contact column and the base line. */
  .bar,
  .home .s-types,
  .home .s-demo,
  .home .s-dashboard,
  .home .s-campaigns,
  .foot__brand,
  .foot__nav { display: none; }
  .menu__panel li:has(> a[href$="#demo"]),
  .menu__panel li:has(> a[href$="#dashboard"]) { display: none; }
  .foot__h { margin-block-end: 12px; }
  .foot__base { justify-content: center; padding-block: 16px; text-align: center; }
}
@media (max-width: 399px) {
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-motion-pause], [data-chat-replay] { display: none !important; }
}
