/* Navy Canvas — site footer (every page). Markup: the <footer class="ft"> block in each page (tools/build-pages.py keeps the
   inner pages in step). Motion: footer.js adds .in when the footer comes into view; without it (no script, reduced motion)
   everything is simply shown. */

.ft { position: relative; isolation: isolate; overflow: hidden; background: #050D24; color: rgba(255, 255, 255, .62); font-size: 15px; }
.ft-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(58, 104, 214, .22), transparent 70%), radial-gradient(40% 40% at 10% 100%, rgba(18, 201, 155, .10), transparent 70%); }
.ft-bg::before { content: ""; position: absolute; inset: 0; background: url("ClickChat-Brand-Identity/ClickChat-Brand-Identity/04-Patterns/chat-bubbles-pattern-dark.svg") 0 0 / 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); opacity: .55; }
.ft::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(18, 201, 155, .55), transparent); }

/* ---------- top: brand + link columns ---------- */
.ft-top { display: grid; gap: 44px; padding-top: 64px; }
.ft-logo { display: inline-block; }
.ft-logo img { display: block; width: 168px; height: auto; }
.ft-brand p { max-width: 25rem; margin-top: 18px; line-height: 1.85; }
.ft-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; padding: 6px 12px; border-radius: 99px; font-size: 13px; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.ft-meta svg { color: var(--mint); }
.ft-cta { display: flex; width: max-content; margin-top: 24px; }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.ft-col h2 { margin-bottom: 16px; font: 600 13px/1.4 "Readex Pro", "IBM Plex Sans Arabic", sans-serif; letter-spacing: .02em; color: #fff; }
.ft-col ul { display: grid; gap: 12px; }
.ft-col a { position: relative; display: inline-block; color: rgba(255, 255, 255, .62); transition: color .3s; }
.ft-col a::after { content: ""; position: absolute; inset: auto 0 -3px; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.ft-col a:hover, .ft-col a:focus-visible { color: #fff; }
.ft-col a:hover::after, .ft-col a:focus-visible::after { transform: scaleX(1); }
.ft-col .soon { margin-inline-start: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }

/* ---------- the wordmark: outline that draws itself, a soft fill and a mint light that follows the pointer ---------- */
.ft-word { display: block; width: 100%; height: auto; margin-top: 56px; direction: ltr; overflow: visible; }
.ft-word text { font: 700 200px/1 Inter, "Readex Pro", sans-serif; letter-spacing: -.02em; }
.ft-word .w-line { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; opacity: 0; }   /* drawn once, then gone: the font's overlapping contours show in a resting outline */
.ft-word .w-fill { fill: url(#ftFill); opacity: .5; }
.ft-word .w-spot { fill: url(#ftSpot); }

/* ---------- bottom bar: copyright, Powered by, back to top ---------- */
.ft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding-block: 22px 26px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13.5px; }
.ft-copy { color: rgba(255, 255, 255, .5); }

.ft-by { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 14px; border-radius: 99px; direction: ltr;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .4s, background-color .4s; }
.ft-by-l { font: 500 10.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ft-by-m { padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .14); font: 700 14.5px/1 Inter, "Readex Pro", sans-serif; letter-spacing: -.01em; color: #fff; }
.ft-by-m i { font-style: normal; margin-inline: 2px; color: var(--mint); }
.ft-by-go { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--navy); background: var(--mint); transition: transform .45s var(--ease); }
.ft-by-go svg { transform: rotate(135deg); }   /* the arrow icon points left (RTL "forward"); turned to point up-right: "opens elsewhere" */
.ft-by::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); pointer-events: none; opacity: 0; }
.ft-by:hover, .ft-by:focus-visible { background: rgba(18, 201, 155, .08); box-shadow: inset 0 0 0 1px rgba(18, 201, 155, .55); }
.ft-by:hover .ft-by-go, .ft-by:focus-visible .ft-by-go { transform: translate(2px, -2px); }
.ft-by:focus-visible, .ft-up:focus-visible, .ft-col a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.ft-up { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; transition: background-color .3s, color .3s, transform .45s var(--ease); }
.ft-up svg { transform: rotate(90deg); }
.ft-up:hover { color: var(--navy); background: var(--mint); transform: translateY(-3px); }

@media (min-width: 768px) {
  .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; padding-top: 88px; }
  .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 80px; }
  .ft-word { margin-top: 72px; }
}
@media (max-width: 767px) {
  .ft-bar { flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding-bottom: 30px; }
  .ft-bar .ft-up { position: absolute; inset-inline-end: 24px; margin-top: -2px; }
  .ft-bar { position: relative; }
  .ft-copy { order: 2; }
  .ft-by { order: 1; }
  .ft-bar .ft-up { top: 18px; }
  .ft-bar { padding-top: 70px; }
}

/* ---------- entrance (footer.js adds .ft-anim first, then .in) ---------- */
.ft-anim .ft-brand, .ft-anim .ft-col, .ft-anim .ft-bar > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.ft-anim.in .ft-brand, .ft-anim.in .ft-col, .ft-anim.in .ft-bar > * { opacity: 1; transform: none; }
.ft-anim .ft-col li { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 160ms + var(--j, 0) * 55ms); }
.ft-anim.in .ft-col li { opacity: 1; transform: none; }
.ft-anim .ft-word .w-line { opacity: 1; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.6s cubic-bezier(.65, 0, .35, 1) .3s, opacity 1.2s var(--ease) 2.7s; }
.ft-anim.in .ft-word .w-line { stroke-dashoffset: 0; opacity: 0; }
.ft-anim .ft-word .w-fill { opacity: 0; transition: opacity 1.6s var(--ease) 1.9s; }
.ft-anim.in .ft-word .w-fill { opacity: .5; }
.ft-anim .ft-word .w-spot { opacity: 0; transition: opacity 1.4s var(--ease) 2.2s; }   /* the light arrives once the outline is drawn */
.ft-anim.in .ft-word .w-spot { opacity: 1; }
.ft-anim.in .ft-by::after, .ft-by:hover::after { animation: ftShine 1.1s var(--ease) both; }
.ft-anim.in .ft-by::after { animation-delay: 1.4s; }
.ft-by:hover::after { animation-delay: 0s; }
@keyframes ftShine { 0% { left: -60%; opacity: 1; } 100% { left: 120%; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ft *, .ft *::after { transition: none !important; animation: none !important; }
}

/* the prototype's page switcher steps aside while the footer is on screen (it covered the back-to-top button) */
.proto-switch { transition: opacity .3s, visibility .3s; }
.ft-seen .proto-switch { opacity: 0; visibility: hidden; }
