/* ==========================================================================
   AI.Parse — WhatsApp landing (messaging platform, ad traffic)
   Everything is scoped under .wal so it can't leak into the TYPO3 theme.
   Mobile-first. Layout follows the .wal container width (container queries),
   so it behaves the same inside a narrow TYPO3 content column.

   Page order: Hero → How it works → Product demos → Trust → Trial CTA → FAQ
   Spacing scale (8px): 8 · 16 · 24 · 32 · 48 · 64 · 96 · 128
   ========================================================================== */

/* ---------- Tokens ---------- */
.wal {
  /* Color */
  --wal-ink: #04121C;             /* page base */
  --wal-panel: #081520;           /* raised surfaces */
  --wal-panel-2: #0B1C2A;
  --wal-line: rgba(140, 200, 230, .12);
  --wal-line-strong: rgba(140, 200, 230, .22);
  --wal-text: #EAF2F6;
  --wal-text-soft: #B3C3CD;
  --wal-text-muted: #8496A3;
  --wal-cyan: #20A4CC;            /* logo cyan */
  --wal-glow: #00D4FF;
  --wal-wa: #25D366;
  --wal-wa-ink: #04130A;
  --wal-ig: #F06292;
  --wal-ms: #4F8EF7;

  /* Type */
  --wal-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wal-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wal-max: 1600px;
  --wal-logo-h: clamp(64px, 6.4cqi, 112px); /* both logos share one height */
  --wal-gutter: clamp(20px, 4.5cqi, 96px);
  --wal-section: clamp(72px, 9cqi, 128px);
  --wal-r-sm: 12px;
  --wal-r-md: 16px;
  --wal-r-lg: 24px;
  --wal-ease: cubic-bezier(.2, .8, .2, 1);

  container: wal / inline-size;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--wal-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--wal-text);
  background: var(--wal-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scroll-behavior: smooth;
}

.wal *,
.wal *::before,
.wal *::after { box-sizing: border-box; }

.wal h1, .wal h2, .wal h3, .wal p, .wal ul, .wal ol { margin: 0; }
.wal ul, .wal ol { padding: 0; list-style: none; }
.wal a { color: inherit; }
.wal i, .wal em, .wal b, .wal s { font-style: normal; text-decoration: none; }

.wal-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wal-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wal-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wal :focus-visible {
  outline: 2px solid var(--wal-glow);
  outline-offset: 3px;
}

.wal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--wal-max) + var(--wal-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--wal-gutter);
}

.wal-heading {
  font-family: var(--wal-display);
  font-weight: 700;
  font-size: clamp(26px, 3cqi, 44px);
  line-height: 1.35;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.wal-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-block-end: clamp(32px, 4cqi, 56px);
}
.wal-section-head__lead { color: var(--wal-text-soft); font-size: 17px; line-height: 1.8; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.wal-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-block-end: calc(var(--wal-section) * .75);
}
.wal-hero > .wal-container { flex: 1; display: flex; flex-direction: column; }

/* Background (matches the reference): deep teal-navy, cyan light ribbons, dot clusters, grain */
.wal-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #05182A 0%, #041522 55%, var(--wal-ink) 100%);
}
.wal-hero__aurora {
  position: absolute;
  inset: -10% -10% 0;
  background:
    radial-gradient(38% 30% at 62% 0%, rgba(0, 190, 240, .32), transparent 70%),
    radial-gradient(40% 45% at 28% 45%, rgba(0, 150, 200, .22), transparent 70%),
    radial-gradient(30% 30% at 100% 20%, rgba(20, 110, 170, .25), transparent 70%),
    radial-gradient(45% 30% at 10% 75%, rgba(0, 140, 190, .16), transparent 70%);
  filter: blur(24px);
}
.wal-hero__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}
.wal-hero__ribbon { fill: rgba(0, 170, 220, .10); stroke: none; }
.wal-hero__arc {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .9)) drop-shadow(0 0 18px rgba(0, 212, 255, .5));
}
.wal-hero__arc--soft { stroke-width: 1; opacity: .45; }
/* The reference is RTL; mirror the light for English */
.wal[dir="ltr"] .wal-hero__aurora,
.wal[dir="ltr"] .wal-hero__arcs { transform: scaleX(-1); }

.wal-hero__dots {
  position: absolute;
  width: clamp(140px, 14cqi, 260px);
  aspect-ratio: 1;
  background-image: radial-gradient(rgba(0, 212, 255, .55) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: .5;
}
.wal-hero__dots--a { inset-inline-end: -40px; top: 32%; }
.wal-hero__dots--b { inset-inline-start: -30px; bottom: 6%; }

.wal-hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .05;
  mix-blend-mode: overlay;
}

/* Top row: brand lockup centered, language switch at the end */
.wal-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 24px;
}
.wal-top .wal-brand { grid-column: 2; }
.wal-top .wal-lang { grid-column: 3; justify-self: end; }

.wal-brand { display: flex; align-items: center; gap: clamp(16px, 2cqi, 32px); }
.wal-brand__divider {
  width: 1px;
  height: var(--wal-logo-h);
  background: linear-gradient(to bottom, transparent, var(--wal-line-strong) 20%, var(--wal-line-strong) 80%, transparent);
}

.wal-logo {
  position: relative;
  display: block;
  height: var(--wal-logo-h);
  aspect-ratio: 909 / 575;
  z-index: 4;
}
.wal-logo__img { display: block; width: 100%; height: auto; }
.wal-logo.is-split .wal-logo__img { opacity: 0; }
.wal-logo__tiles { position: absolute; inset: 0; pointer-events: none; }
.wal-logo__tile { position: absolute; background-repeat: no-repeat; will-change: transform, opacity; }
.wal-logo__glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, .35), rgba(32, 164, 204, .12) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.wal-erp {
  display: block;
  height: calc(var(--wal-logo-h) * .8); /* solid mark reads heavier than the AI.Parse outline */
  aspect-ratio: 140 / 120;
  opacity: .92;
  transition: opacity .2s, transform .25s var(--wal-ease);
}
.wal-erp:hover { opacity: 1; transform: translateY(-2px); }
.wal-erp__img { display: block; width: 100%; height: 100%; }

.wal-lang {
  min-width: 48px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--wal-line-strong);
  border-radius: 999px;
  background: rgba(2, 6, 12, .55);
  backdrop-filter: blur(8px);
  color: var(--wal-text-soft);
  font: 600 14px/1 var(--wal-body);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.wal-lang:hover { border-color: var(--wal-cyan); color: var(--wal-text); }
.wal-lang[lang="ar"] { font-size: 16px; }

/* Hero grid: copy + product */
.wal-hero__layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 56px;
  padding-block-start: clamp(16px, 3cqi, 40px);
}

.wal-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.wal-hero__title {
  font-family: var(--wal-display);
  font-weight: 800;
  font-size: clamp(34px, 3.8cqi, 66px);
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.wal-hero__title > span { display: block; }
.wal-hero__title-accent { color: var(--wal-glow); }
.wal[lang="en"] .wal-hero__title { max-width: 16ch; line-height: 1.1; letter-spacing: -.025em; }

.wal-hero__lead {
  max-width: 46ch;
  color: var(--wal-text-soft);
  font-size: clamp(17px, 1.45cqi, 22px);
  line-height: 1.85;
  text-wrap: pretty;
}
.wal[lang="en"] .wal-hero__lead { line-height: 1.6; }

/* Supported channels */
.wal-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.wal-channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 18px;
  color: var(--wal-text);
  font-size: 16px;
  font-weight: 600;
}
.wal-channel:first-child { padding-inline-start: 0; }
.wal-channel + .wal-channel { border-inline-start: 1px solid var(--wal-line-strong); }
.wal-channel .wal-icon { width: 26px; height: 26px; }
.wal-channel--wa .wal-icon { color: var(--wal-wa); }
.wal-channel--ig .wal-icon { color: var(--wal-ig); }
.wal-channel--ms .wal-icon { color: var(--wal-ms); }

.wal-hero__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  margin-block-start: 8px;
}

/* Primary WhatsApp button */
.wal-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  padding: 10px;
  padding-inline-end: 36px;
  border-radius: 999px;
  background: var(--wal-wa);
  color: var(--wal-wa-ink);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18) inset,
    0 18px 48px -12px rgba(37, 211, 102, .55);
  transition: transform .25s var(--wal-ease), box-shadow .25s var(--wal-ease);
}
.wal-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: wal-pulse 2.6s var(--wal-ease) infinite;
  pointer-events: none;
}
.wal-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 24px 56px -12px rgba(37, 211, 102, .7); }

.wal-cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(54px, 4.2cqi, 64px);
  height: clamp(54px, 4.2cqi, 64px);
  border-radius: 50%;
  background: var(--wal-wa-ink);
  color: var(--wal-wa);
}
.wal-cta__icon .wal-icon { width: 55%; height: 55%; }

.wal-cta__text { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.wal-cta__label {
  font-family: var(--wal-display);
  font-size: clamp(19px, 1.6cqi, 24px);
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.wal-cta__sub { font-size: clamp(13px, 1cqi, 15px); font-weight: 500; line-height: 1.5; opacity: .75; }

@keyframes wal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


.wal-benefits { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.wal-benefits li { display: inline-flex; align-items: center; gap: 8px; color: var(--wal-text-soft); font-size: 15px; }
.wal-benefits .wal-icon { width: 20px; height: 20px; color: var(--wal-wa); }

/* ---------- Product visual: the unified inbox app ---------- */
/* The visual is the size container, so the app inside it can pick its panes by width */
.wal-hero__visual {
  container: app / inline-size;
  position: relative;
  width: 100%;
  max-width: 980px;
  justify-self: center;
}

.wal-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid var(--wal-line-strong);
  border-radius: var(--wal-r-lg);
  background: linear-gradient(180deg, rgba(11, 28, 42, .94), rgba(5, 13, 21, .96));
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .07) inset,
    0 0 0 1px rgba(0, 212, 255, .08),
    0 60px 140px -40px rgba(0, 170, 220, .45),
    0 30px 60px -30px rgba(0, 0, 0, .85);
  font-size: 13px;
  line-height: 1.5;
}

.wal-app__side,
.wal-app__chat,
.wal-app__info { display: none; }

/* Sidebar */
.wal-app__side {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 16px 10px;
  border-inline-end: 1px solid var(--wal-line);
  background: rgba(2, 6, 12, .35);
}
.wal-app__logo { width: 40px; height: auto; margin: 0 auto 12px; }
.wal-app__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  color: var(--wal-text-muted);
  font-size: 11px;
  text-align: center;
}
.wal-app__nav .wal-icon { width: 20px; height: 20px; }
.wal-app__nav.is-active { background: rgba(32, 164, 204, .16); color: #8FDDF5; box-shadow: 0 0 0 1px rgba(32, 164, 204, .35) inset; }
.wal-app__badge {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 6px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wal-cyan);
  color: #02121A;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}

/* Conversation list */
.wal-app__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
  min-width: 0;
}
.wal-app__tabs { display: flex; gap: 6px; }
.wal-app__tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--wal-text-soft);
  font-size: 12px;
  white-space: nowrap;
}
.wal-app__tab .wal-icon { width: 15px; height: 15px; }
.wal-app__tab em { min-width: 16px; padding: 0 4px; border-radius: 999px; background: rgba(32, 164, 204, .25); color: #CDEFFA; font-size: 10px; line-height: 16px; text-align: center; }
.wal-app__tab--wa .wal-icon { color: var(--wal-wa); }
.wal-app__tab--ig .wal-icon { color: var(--wal-ig); }
.wal-app__tab--ms .wal-icon { color: var(--wal-ms); }

.wal-app__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--wal-line);
  border-radius: 10px;
  color: var(--wal-text-muted);
  font-size: 12px;
}
.wal-app__search .wal-icon { width: 16px; height: 16px; }

.wal-app__convs { display: grid; gap: 6px; }
.wal-conv {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.wal-conv.is-active { border-color: rgba(32, 164, 204, .5); background: rgba(32, 164, 204, .12); }
.wal-conv__avatar, .wal-app__bigavatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E7A, #0B2A3A);
  border: 1px solid var(--wal-line-strong);
  font-family: var(--wal-display);
  font-weight: 700;
  color: var(--wal-text);
}
.wal-conv__avatar { width: 40px; height: 40px; font-size: 15px; }
.wal-conv__body { display: flex; flex-direction: column; min-width: 0; }
.wal-conv__name { font-weight: 600; font-size: 13px; color: var(--wal-text); }
.wal-conv__text { color: var(--wal-text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wal-conv__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wal-conv__meta .wal-icon { width: 18px; height: 18px; }
.wal-conv__time { color: var(--wal-text-muted); font-size: 11px; }
.wal-conv--wa .wal-icon { color: var(--wal-wa); }
.wal-conv--ig .wal-icon { color: var(--wal-ig); }
.wal-conv--ms .wal-icon { color: var(--wal-ms); }

/* Chat pane */
.wal-app__chat {
  flex-direction: column;
  min-width: 0;
  border-inline-start: 1px solid var(--wal-line);
  border-inline-end: 1px solid var(--wal-line);
  background: rgba(2, 6, 12, .25);
}
.wal-app__chathead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-block-end: 1px solid var(--wal-line);
}
.wal-app__chan { width: 22px; height: 22px; color: var(--wal-wa); }
.wal-app__who { display: flex; flex-direction: column; font-weight: 600; }
.wal-app__who em { color: var(--wal-wa); font-size: 11px; font-weight: 500; }

.wal-app__thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.wal-chatmsg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.wal-chatmsg time { color: var(--wal-text-muted); font-size: 10px; }
.wal-chatmsg--in { align-self: flex-start; background: rgba(255, 255, 255, .07); border-end-start-radius: 4px; }
.wal-chatmsg--out { align-self: flex-end; background: rgba(32, 164, 204, .22); border: 1px solid rgba(32, 164, 204, .4); border-end-end-radius: 4px; }

.wal-suggest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-block-start: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 212, 255, .4);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(14, 60, 82, .7), rgba(8, 30, 44, .7));
  box-shadow: 0 0 30px -10px rgba(0, 212, 255, .5);
}
.wal-suggest__tag { display: inline-flex; align-items: center; gap: 6px; color: #8FDDF5; font-size: 11px; font-weight: 600; }
.wal-suggest__tag .wal-icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.wal-suggest__text { font-size: 12px; color: var(--wal-text); }
.wal-suggest__btn {
  padding: 3px 12px;
  border: 1px solid rgba(0, 212, 255, .5);
  border-radius: 999px;
  color: #8FDDF5;
  font-size: 11px;
}

.wal-app__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 6px 6px 6px 12px;
  padding-inline-start: 14px;
  border: 1px solid var(--wal-line);
  border-radius: 12px;
  color: var(--wal-text-muted);
  font-size: 12px;
}
.wal-app__send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--wal-cyan); color: #02121A; }
.wal-app__send .wal-icon { width: 16px; height: 16px; }
.wal[dir="rtl"] .wal-app__send .wal-icon { transform: scaleX(-1); }

/* Customer info pane */
.wal-app__info {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  text-align: center;
}
.wal-app__infotitle { align-self: stretch; text-align: start; font-weight: 600; margin-block-end: 6px; }
.wal-app__bigavatar { width: 64px; height: 64px; font-size: 24px; }
.wal-app__infoname { font-weight: 600; font-size: 14px; }
.wal-app__status { display: inline-flex; align-items: center; gap: 6px; color: var(--wal-text-muted); font-size: 12px; }
.wal-app__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--wal-wa); }
.wal-app__field {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--wal-line);
  color: var(--wal-text-muted);
  font-size: 12px;
}
.wal-app__field--stack { flex-direction: column; align-items: stretch; text-align: start; }
.wal-app__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border: 1px solid var(--wal-line-strong);
  border-radius: 8px;
  color: var(--wal-text);
}
.wal-app__select .wal-icon { width: 14px; height: 14px; }

@container app (min-width: 520px) {
  .wal-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .wal-app__chat { display: flex; }
}
@container app (min-width: 680px) {
  .wal-app { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.05fr); }
  .wal-app__side { display: flex; }
}
@container app (min-width: 860px) {
  .wal-app { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.05fr) 170px; }
  .wal-app__info { display: flex; }
}

/* ==========================================================================
   Channels band
   ========================================================================== */
.wal-band { position: relative; z-index: 1; margin-block-start: calc(var(--wal-section) * -.35); }
.wal-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  padding: 20px 24px;
  border: 1px solid var(--wal-line-strong);
  border-radius: var(--wal-r-lg);
  background: linear-gradient(90deg, rgba(8, 21, 32, .6), rgba(11, 28, 42, .9), rgba(8, 21, 32, .6));
  backdrop-filter: blur(8px);
}
.wal-band__title { font-family: var(--wal-display); font-weight: 700; font-size: clamp(17px, 1.6cqi, 22px); text-align: center; }
.wal-band__icons { display: flex; align-items: center; gap: 0; }
.wal-band__icon { display: grid; place-items: center; padding-inline: 18px; }
.wal-band__icon + .wal-band__icon { border-inline-start: 1px solid var(--wal-line-strong); }
.wal-band__icon .wal-icon { width: 34px; height: 34px; }
.wal-band__icon--wa .wal-icon { color: var(--wal-wa); }
.wal-band__icon--ig .wal-icon { color: var(--wal-ig); }
.wal-band__icon--ms .wal-icon { color: var(--wal-ms); }

/* ==========================================================================
   2. HOW IT WORKS (compact row)
   ========================================================================== */
.wal-how { padding-block: var(--wal-section) clamp(64px, 8cqi, 140px); scroll-margin-top: 24px; }
/* .wal h2 resets margins, so this needs the same specificity */
.wal .wal-heading--center { text-align: center; margin-block-end: clamp(32px, 4cqi, 48px); }

/* .wal ol resets margins, so the centring needs the same specificity */
.wal .wal-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1200px; margin-inline: auto; }
.wal-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 2.6cqi, 40px) clamp(20px, 2.2cqi, 32px);
  text-align: center;
  border: 1px solid var(--wal-line);
  border-radius: var(--wal-r-md);
  background: rgba(8, 21, 32, .5);
}
.wal-step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, .7);
  color: var(--wal-glow);
  font-family: var(--wal-display);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 24px -6px rgba(0, 212, 255, .6);
}
.wal-step__icon { display: grid; place-items: center; flex: none; color: var(--wal-glow); }
.wal-step__icon .wal-icon { width: 30px; height: 30px; }
.wal-step__title { flex-basis: 100%; font-family: var(--wal-display); font-weight: 700; font-size: clamp(17px, 1.3cqi, 20px); line-height: 1.5; text-wrap: balance; }

/* ==========================================================================
   3. FEATURES as product demos
   ========================================================================== */
.wal-features { padding-block: var(--wal-section); }

/* Section dividers: tinted bands whose top/bottom edges are hand-drawn, uneven curves
   (each band uses different curves so the page never repeats the same wave). */
.wal-tint {
  --wal-tint: #071C2B;
  position: relative;
  background:
    radial-gradient(50% 60% at 80% 30%, rgba(0, 170, 220, .07), transparent 70%),
    var(--wal-tint);
}
.wal-tint::before,
.wal-tint::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: clamp(40px, 6cqi, 110px);
  background: var(--wal-tint);
  pointer-events: none;
}
.wal-tint::before { bottom: calc(100% - 1px); -webkit-mask: var(--wal-edge-top) center / 100% 100% no-repeat; mask: var(--wal-edge-top) center / 100% 100% no-repeat; }
.wal-tint::after  { top: calc(100% - 1px);    -webkit-mask: var(--wal-edge-bottom) center / 100% 100% no-repeat; mask: var(--wal-edge-bottom) center / 100% 100% no-repeat; }
.wal-features.wal-tint {
  --wal-edge-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 78C190 30 330 96 560 62S910 6 1080 48 1330 104 1440 36V120H0Z'/%3E%3C/svg%3E");
  --wal-edge-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V58C1290 104 1150 30 930 72S520 118 370 64 120 22 0 84Z'/%3E%3C/svg%3E");
}
.wal-faq.wal-tint {
  --wal-edge-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 44C150 92 380 104 620 58S960 18 1190 70 1380 88 1440 60V120H0Z'/%3E%3C/svg%3E");
}
.wal-faq.wal-tint::after { content: none; }

.wal-features__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.wal-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2cqi, 24px);
  padding-block-end: clamp(24px, 2.6cqi, 32px);
  border: 1px solid var(--wal-line);
  border-radius: var(--wal-r-lg);
  background: linear-gradient(180deg, rgba(11, 28, 42, .55), rgba(2, 6, 12, .2));
  overflow: hidden;
}
.wal .wal-feature__title { font-family: var(--wal-display); font-weight: 700; font-size: 19px; line-height: 1.5; margin-block-start: 16px; }
.wal-feature__text { max-width: 42ch; color: var(--wal-text-muted); font-size: 15px; line-height: 1.8; }

/* Mini product screens (decorative, CSS only) */
.wal-demo {
  height: 168px;
  padding: 16px;
  border: 1px solid var(--wal-line);
  border-radius: var(--wal-r-md);
  background:
    linear-gradient(var(--wal-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--wal-line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--wal-panel);
  overflow: hidden;
}

/* Inbox demo */
.wal-demo--inbox { display: grid; gap: 8px; align-content: start; }
.wal-demo__row {
  display: grid;
  grid-template-columns: 10px 1fr 40px;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.wal-demo__row.is-active { background: rgba(37, 211, 102, .1); box-shadow: 0 0 0 1px rgba(37, 211, 102, .35) inset; }
.wal-demo__row b { height: 6px; border-radius: 3px; background: rgba(234, 242, 246, .35); }
.wal-demo__row s { height: 6px; border-radius: 3px; background: rgba(234, 242, 246, .15); }
.wal-dot { width: 10px; height: 10px; border-radius: 50%; }
.wal-dot--wa { background: var(--wal-wa); }
.wal-dot--ig { background: var(--wal-ig); }
.wal-dot--ms { background: var(--wal-ms); }

/* Profile demo */
.wal-demo--profile { display: flex; align-items: center; gap: 16px; }
.wal-demo__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wal-cyan), #0B4A66);
  font-family: var(--wal-display);
  font-weight: 800;
  font-size: 24px;
}
.wal-demo__lines { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wal-demo__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wal-demo__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wal-tag {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--wal-line-strong);
  color: var(--wal-text-soft);
  font-size: 12px;
  line-height: 1.8;
}
.wal-tag--hot { border-color: rgba(240, 98, 146, .5); color: #F7A3C0; }
.wal-tag--wa { border-color: rgba(37, 211, 102, .5); color: #7EE7A6; }

/* Chat demo */
.wal-demo--chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.wal-bubble {
  max-width: 85%;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.wal-bubble--in { align-self: flex-start; background: rgba(255, 255, 255, .07); border-end-start-radius: 4px; }
.wal-bubble--ai {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, .14);
  border: 1px solid rgba(0, 212, 255, .35);
  border-end-end-radius: 4px;
}
.wal-bubble--ai .wal-icon { width: 14px; height: 14px; fill: var(--wal-glow); stroke: none; }

/* Pipeline demo */
.wal-demo--pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wal-col { display: flex; flex-direction: column; gap: 8px; }
.wal-col em { color: var(--wal-text-muted); font-size: 12px; font-weight: 600; line-height: 1.6; }
.wal-col b { height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--wal-line); }
.wal-col--won b { background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .4); }

/* ==========================================================================
   4. TRUST
   ========================================================================== */
.wal-trust { padding-block: var(--wal-section) 0; }
.wal-trust__panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: clamp(32px, 4cqi, 48px);
  border-block: 1px solid var(--wal-line);
}
.wal-trust__text { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.wal-trust__text p { color: var(--wal-text-soft); font-size: 17px; line-height: 1.8; }

.wal-proof { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.wal-proof__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--wal-text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.wal-proof__item + .wal-proof__item { padding-inline-start: 32px; border-inline-start: 1px solid var(--wal-line); }
.wal-proof__num {
  font-family: var(--wal-display);
  font-size: clamp(28px, 3cqi, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--wal-text);
}

/* ==========================================================================
   5. FREE TRIAL CTA
   ========================================================================== */
.wal-final { padding-block: var(--wal-section) clamp(64px, 8cqi, 140px); }

.wal-final__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: clamp(32px, 5cqi, 64px);
  border: 1px solid var(--wal-line-strong);
  border-radius: var(--wal-r-lg);
  background: var(--wal-panel);
}
.wal-final__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 120% at 0% 100%, rgba(37, 211, 102, .16), transparent 70%),
    radial-gradient(40% 90% at 100% 0%, rgba(0, 212, 255, .14), transparent 70%),
    linear-gradient(var(--wal-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--wal-line) 1px, transparent 1px) 0 0 / 48px 48px;
}
/* Real dashboard screenshot as a faded backdrop, fading out behind the copy */
.wal-final__shot {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .3;
  filter: saturate(.8);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
          mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.wal-final__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(2, 6, 12, .55), rgba(2, 6, 12, .15));
  pointer-events: none;
}
.wal-final__text { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.wal-final__text p { color: var(--wal-text-soft); font-size: 17px; line-height: 1.8; }
.wal-final__action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wal-final__number { color: var(--wal-text-muted); font-size: 15px; }

/* Secondary WhatsApp button */
.wal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--wal-wa);
  color: var(--wal-wa-ink);
  font-family: var(--wal-display);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 16px 40px -12px rgba(37, 211, 102, .55);
  transition: transform .25s var(--wal-ease), box-shadow .25s var(--wal-ease);
}
.wal-btn .wal-icon { width: 24px; height: 24px; }
.wal-btn:hover { transform: translateY(-2px); }
.wal-btn--block { width: 100%; }

/* ==========================================================================
   6. FAQ
   ========================================================================== */
.wal-faq { padding-block: var(--wal-section) calc(var(--wal-section) + 48px); }
.wal-faq__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wal-faq__list { display: flex; flex-direction: column; border-block-start: 1px solid var(--wal-line); }

.wal-qa { border-block-end: 1px solid var(--wal-line); }
.wal-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 16px;
  font-family: var(--wal-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.wal-qa summary::-webkit-details-marker { display: none; }
.wal-qa summary .wal-icon { width: 22px; height: 22px; color: var(--wal-glow); transition: transform .25s var(--wal-ease); }
.wal-qa[open] summary .wal-icon { transform: rotate(180deg); }
.wal-qa summary:hover { color: var(--wal-glow); }
.wal-qa p { max-width: 62ch; padding-block-end: 20px; color: var(--wal-text-soft); font-size: 16px; line-height: 1.85; }

/* ---------- Sticky bar (phones only) ---------- */
.wal-sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 50;
  padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(2, 6, 12, .96) 40%);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .35s var(--wal-ease), visibility 0s linear .35s;
}
.wal-sticky.is-visible { transform: none; visibility: visible; transition: transform .35s var(--wal-ease); }

/* ==========================================================================
   BREAKPOINTS (container width)
   ========================================================================== */
@container wal (max-width: 479px) {
  .wal-top { grid-template-columns: 1fr auto; }
  .wal-top .wal-brand { grid-column: 1; justify-self: start; }
  .wal-top .wal-lang { grid-column: 2; }
}

@container wal (max-width: 639px) {
  .wal-cta { gap: 14px; padding-inline-end: 20px; }
  .wal-cta__label { font-size: 18px; }
  .wal-channel { gap: 6px; padding-inline: 12px; font-size: 15px; }
  .wal-channel .wal-icon { width: 22px; height: 22px; }
}

@container wal (min-width: 640px) {
  .wal-cta { width: auto; }
  .wal-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wal .wal-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@container wal (min-width: 900px) {
  .wal-trust__panel { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .wal-faq__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}

@container wal (min-width: 1100px) {
  .wal-hero__layout {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    gap: 48px;
    align-items: center;
  }
  .wal-hero__visual { justify-self: end; }

  .wal-features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .wal-final__panel { flex-direction: row; align-items: center; justify-content: space-between; }
  /* Copy sits on the inline-start side, so the screenshot shows on the end side */
  .wal-final__shot {
    inset-inline-start: auto;
    width: 62%;
    -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 95%);
            mask-image: linear-gradient(to right, #000 25%, transparent 95%);
  }
  .wal[dir="ltr"] .wal-final__shot {
    -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 95%);
            mask-image: linear-gradient(to left, #000 25%, transparent 95%);
  }
  .wal-final__panel::after { background: none; }
}

@media (min-width: 768px) {
  .wal-sticky { display: none; }
  .wal-faq { padding-block-end: var(--wal-section); }
}

/* ==========================================================================
   MOTION (GSAP, js/wa-landing.motion.js)
   ========================================================================== */
/* Until GSAP sets the start state, keep intro pieces hidden (no flash). */
.wal-js:not(.wal-ready) [data-wal-intro] { visibility: hidden; }

/* GSAP owns transforms on these, so CSS must not transition them. */
.wal--motion .wal-cta,
.wal--motion .wal-btn { transition-property: box-shadow, background-color; }
.wal--motion .wal-cta:hover,
.wal--motion .wal-btn:hover { transform: none; }

/* Language swap sweep */
.wal-swap {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(32, 164, 204, 0) 30%, rgba(0, 212, 255, .22) 48%, rgba(255, 255, 255, .35) 50%, rgba(0, 212, 255, .22) 52%, rgba(32, 164, 204, 0) 70%, transparent 100%);
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wal { scroll-behavior: auto; }
  .wal *,
  .wal *::before,
  .wal *::after {
    animation: none !important;
    transition: none !important;
  }
}
