/* ===========================================
   KABIS — Links
   links.colartdigitalmarketingagency.com/kabis/
   Liquid & bouncy: the letters land like jelly
=========================================== */

:root {
  --indigo:    #4a4ca0;
  --indigo-dk: #34357a;
  --indigo-dd: #24255a;
  --lilac:     #b9b7f0;
  --lilac-lt:  #e4e3fb;
  --pink:      #ff8fcb;
  --sun:       #ffd86b;
  --white:     #ffffff;
  --glass:     rgba(255, 255, 255, .12);
  --glass-hi:  rgba(255, 255, 255, .2);
  --line:      rgba(255, 255, 255, .22);
  --whatsapp:  #25d366;

  --font-round: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body:  'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--indigo);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 14px; }

/* ============ LAVA BLOBS ============ */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  filter: blur(2px);
  opacity: .55;
  animation: morph 14s ease-in-out infinite, drift 22s ease-in-out infinite;
}
.blob--1 { width: 340px; height: 340px; top: -90px; left: -110px; background: var(--indigo-dk); }
.blob--2 { width: 280px; height: 280px; top: 34%; right: -120px; background: #5d5fc4; animation-delay: -5s, -8s; }
.blob--3 { width: 220px; height: 220px; bottom: -70px; left: 8%; background: var(--indigo-dk); animation-delay: -9s, -3s; }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
  33%      { border-radius: 40% 60% 38% 62% / 60% 38% 62% 40%; }
  66%      { border-radius: 62% 38% 60% 40% / 38% 62% 40% 60%; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(24px, 30px) rotate(25deg); }
}

/* ============ TOP BAR ============ */
.topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: flex;
  justify-content: flex-end;
}
.share {
  width: 44px; height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1.5px solid var(--line);
  transition: transform .4s var(--spring), background .3s;
}
.share:hover { background: var(--white); color: var(--indigo); transform: rotate(-8deg) scale(1.06); }
.share:active { transform: scale(.88); }
.share svg { width: 18px; height: 18px; }

/* ============ PAGE ============ */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

/* ============ HERO ============ */
.hero { text-align: center; padding-top: 30px; }
.logo {
  width: clamp(230px, 72vw, 320px);
  margin: 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 14px 0 rgba(36, 37, 90, .35));
}
.logo svg { width: 100%; height: auto; overflow: visible; }
.logo path { fill: var(--white); transform-box: fill-box; transform-origin: 50% 100%; }

.hello {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1.5px solid var(--line);
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 15px;
}
.hello .wave { display: inline-block; transform-origin: 70% 80%; }
.hint { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ============ YOUTUBE (primary) ============ */
.yt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 16px 18px 16px 16px;
  border-radius: 26px;
  background: var(--white);
  color: var(--indigo-dd);
  box-shadow: 0 10px 0 var(--indigo-dd);
  transition: transform .45s var(--spring), box-shadow .45s var(--spring);
}
.yt:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 0 var(--indigo-dd); }
.yt:active { transform: translateY(6px) scale(.98); box-shadow: 0 4px 0 var(--indigo-dd); transition-duration: .12s; }
.yt__icon {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #ff0000;
  color: #fff;
}
.yt__icon svg { width: 30px; height: 30px; }
.yt__text { flex: 1; min-width: 0; text-align: left; }
.yt__title { display: block; font-family: var(--font-round); font-weight: 600; font-size: 21px; line-height: 1.15; }
.yt__sub { display: block; font-size: 14px; color: var(--indigo); font-weight: 600; }
.yt__go {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lilac-lt);
  transition: transform .45s var(--spring);
}
.yt__go svg { width: 18px; height: 18px; }
.yt:hover .yt__go { transform: translateX(3px) rotate(-12deg); }

/* ============ SOCIAL BUBBLES ============ */
.label {
  margin: 34px 0 14px;
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--lilac);
  text-align: center;
}
.bubbles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bubble {
  --tone: var(--pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px 18px;
  border-radius: 30px;
  background: var(--glass);
  border: 1.5px solid var(--line);
  text-align: center;
  transition: transform .45s var(--spring), background .3s, border-color .3s;
}
.bubble:hover { background: var(--glass-hi); border-color: var(--tone); transform: translateY(-4px) rotate(1.5deg); }
.bubbles li:nth-child(even) .bubble:hover { transform: translateY(-4px) rotate(-1.5deg); }
.bubble:active { transform: scale(.94); transition-duration: .12s; }
.bubble__icon {
  width: 58px; height: 58px;
  border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
  display: grid;
  place-items: center;
  background: var(--tone);
  color: #fff;
  transition: border-radius .6s var(--spring), transform .45s var(--spring);
}
.bubble:hover .bubble__icon { border-radius: 40% 60% 58% 42% / 44% 58% 42% 56%; transform: scale(1.08); }
.bubble__icon svg { width: 28px; height: 28px; }
.bubble__name { font-family: var(--font-round); font-weight: 600; font-size: 18px; line-height: 1.1; }
.bubble__handle { font-size: 13.5px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.bubble--ig { --tone: #e1306c; }
.bubble--ig .bubble__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.bubble--tt { --tone: #25f4ee; }
.bubble--tt .bubble__icon { background: #111; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55; }

/* ============ GET LISTED (Colart) ============ */
.listed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 16px 16px 20px;
  border-radius: 24px;
  border: 1.5px dashed var(--line);
  transition: border-color .3s, background .3s, transform .45s var(--spring);
}
.listed:hover { border-color: var(--whatsapp); background: var(--glass); transform: translateY(-2px); }
.listed__q { display: block; font-size: 14px; color: rgba(255, 255, 255, .65); }
.listed__a { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.listed__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .45s var(--spring);
}
.listed__icon svg { width: 22px; height: 22px; fill: currentColor; }
.listed:hover .listed__icon { transform: scale(1.1) rotate(-8deg); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--indigo-dd);
  color: rgba(255, 255, 255, .6);
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom, 0px));
}
.footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  text-align: center;
}
.footer__credit { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; }
.footer__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.footer a { color: var(--white); font-weight: 700; border-bottom: 1.5px solid transparent; transition: border-color .3s; }
.footer a:hover { border-color: var(--sun); }
.footer__sep { color: rgba(255, 255, 255, .25); }
@media (max-width: 440px) { .footer__sep { display: none; } .footer__credits { flex-direction: column; } }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 20px) scale(.9);
  opacity: 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--indigo-dd);
  font-family: var(--font-round);
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
  transition: opacity .3s, transform .45s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ============ ENTRANCE ============ */
@media (prefers-reduced-motion: no-preference) {
  /* each letter drops in and lands like jelly (squash, stretch, settle) */
  .js .logo path { opacity: 0; }
  .logo path.land { animation: jelly 1.1s var(--d, 0s) both; }
  .logo path.wobble { animation: wobble .9s var(--d, 0s) both; }
  .hello  { animation: pop .7s 1.2s var(--spring) both; }
  .hello .wave { animation: wave 1.6s 1.7s ease-in-out 2; }
  .hint   { animation: fade .8s 1.9s ease both; }
  .yt     { animation: rise .8s 1.35s var(--spring) both; }
  .label  { animation: fade .8s 1.5s ease both; }
  .bubbles li:nth-child(1) { animation: rise .8s 1.55s var(--spring) both; }
  .bubbles li:nth-child(2) { animation: rise .8s 1.65s var(--spring) both; }
  .listed { animation: rise .8s 1.8s var(--spring) both; }
}
@keyframes jelly {
  0%   { opacity: 0; transform: translateY(-140%) scale(.9, 1.15); }
  45%  { opacity: 1; transform: translateY(0) scale(1.25, .7); }
  62%  { transform: translateY(-14%) scale(.9, 1.12); }
  78%  { transform: translateY(0) scale(1.07, .94); }
  90%  { transform: scale(.98, 1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes wobble {
  0%   { transform: none; }
  25%  { transform: scale(1.18, .8); }
  45%  { transform: scale(.9, 1.12) translateY(-8%); }
  65%  { transform: scale(1.05, .95); }
  82%  { transform: scale(.98, 1.02); }
  100% { transform: none; }
}
@keyframes pop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(14deg); } 80% { transform: rotate(-4deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .logo path { opacity: 1 !important; }
}
