/* ============================================================
   PuraUse — Footer + physics pack tray
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: auto;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

.footer__brand .logo { color: var(--paper); font-size: 2rem; margin-bottom: 0.75rem; }
.footer__tag { font-family: var(--font-display); font-size: 1.25rem; color: rgba(251,250,247,.9); }
.footer__blurb {
  font-size: var(--fs-sm);
  color: rgba(251,250,247,.55);
  line-height: 1.7;
  margin-top: 0.875rem;
  max-width: 30ch;
}

.footer__colh {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,250,247,.45);
  font-weight: 700;
  margin-bottom: 1.0625rem;
}
.footer__list { display: flex; flex-direction: column; }
.footer__list a,
.footer__list span {
  font-size: var(--fs-sm);
  color: rgba(251,250,247,.75);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  transition: color var(--t-base) var(--e-out);
  width: fit-content;
}
.footer__list a:hover { color: var(--paper); }
.footer__list .is-soon { color: rgba(251,250,247,.38); cursor: default; }
.footer__list .is-soon::after {
  content: "Soon";
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  padding: 0.1875rem 0.4375rem;
  border-radius: var(--r-pill);
  background: rgba(251,250,247,.1);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem var(--s-3);
  border-top: 1px solid rgba(251,250,247,.14);
  padding-block: 1.25rem;
  font-size: var(--fs-xs);
  color: rgba(251,250,247,.5);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer__legal a { transition: color var(--t-base) var(--e-out); }
.footer__legal a:hover { color: var(--paper); }
.footer__gst { letter-spacing: 0.03em; }

/* ------------------------------------------------------------
   Physics tray — five packs with real mass, dragged and thrown
   ------------------------------------------------------------ */

.tray {
  position: relative;
  width: 100%;
  height: clamp(190px, 26vw, 300px);
  margin-top: clamp(1rem, 2vw, 1.75rem);
  touch-action: pan-y;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.tray.is-dragging { cursor: grabbing; }

.tray__hint {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,250,247,.42);
  pointer-events: none;
  transition: opacity var(--t-slow) var(--e-out);
  white-space: nowrap;
}
.tray__hint svg { width: 15px; height: 15px; }
.tray.is-touched .tray__hint { opacity: 0; }

.tray__item {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  will-change: transform;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.32));
  border-radius: 10px;
}
.tray__item .pack { width: 100%; height: 100%; pointer-events: none; }
.tray__item:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

/* Static fallback: no JS, or reduced motion, or physics unavailable */
.tray--static {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  height: auto;
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
  cursor: default;
  overflow: visible;
}
.tray--static .tray__hint { display: none; }
.tray--static .tray__item {
  position: static;
  width: min(18%, 168px);
  transform: none !important;
}
.tray--static .tray__item:nth-child(2) { transform: rotate(-4deg) !important; }
.tray--static .tray__item:nth-child(4) { transform: rotate(3deg) !important; }
.tray--static .tray__item:nth-child(6) { transform: rotate(-2deg) !important; }

@media (prefers-reduced-motion: reduce) {
  .tray { height: auto; overflow: visible; }
}

/* ------------------------------------------------------------
   Floating WhatsApp
   ------------------------------------------------------------ */

.wa {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 55;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(32,48,43,.24);
  transition: transform var(--t-base) var(--e-out), background var(--t-base) var(--e-out);
}
.wa:hover { transform: translateY(-3px); background: var(--ink); }
.wa svg { width: 26px; height: 26px; }
