@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fredoka:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'LittleFriends';
  src: url('../assets/LittleFriends.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  color: #2E2E3A;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

input:focus, button:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #E3E3E8;
  border-radius: 999px;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes kvwpulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes kvwroam1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(60px, -30px); }
  50% { transform: translate(20px, 20px); }
  75% { transform: translate(-40px, 10px); }
}

@keyframes kvwroam2 {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-70px, 25px); }
  60% { transform: translate(-25px, -40px); }
}

@keyframes kvwroam3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, 40px); }
  66% { transform: translate(60px, -20px); }
}

@keyframes kvwwiggle {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

@keyframes kvwfadein {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes kvwbar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes kvwconfetti {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(700px) rotate(720deg); opacity: 0; }
}

@keyframes kvwpop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes kvwblob {
  0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg); }
  50% { border-radius: 63% 37% 45% 55% / 55% 42% 58% 45%; transform: rotate(180deg); }
  100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(360deg); }
}

@keyframes sheetup {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes kvwreveal {
  0% { clip-path: circle(0% at 50% 55%); opacity: 0.5; transform: scale(1.12) rotate(-1.5deg); }
  55% { opacity: 1; }
  100% { clip-path: circle(150% at 50% 55%); transform: scale(1) rotate(0deg); }
}

@keyframes kvwkenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* Floating Blobs Background */
.blobs-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  opacity: 0.45;
  filter: blur(2px);
}

.blob-yellow {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 60px;
  background: #FFD538;
  border-radius: 48% 52% 63% 37% / 41% 58% 42% 59%;
  animation: kvwroam1 16s ease-in-out infinite;
}

.blob-purple {
  width: 280px;
  height: 280px;
  right: -70px;
  top: 40px;
  background: #A78FFD;
  border-radius: 63% 37% 38% 62% / 49% 51% 49% 51%;
  animation: kvwroam2 19s ease-in-out infinite 0.6s;
}

.blob-blue {
  width: 260px;
  height: 260px;
  right: 2%;
  bottom: -60px;
  background: #86D3FD;
  border-radius: 58% 42% 47% 53% / 53% 41% 59% 47%;
  animation: kvwroam3 17s ease-in-out infinite 1s;
}

.blob-pink {
  width: 240px;
  height: 240px;
  left: 3%;
  bottom: -50px;
  background: #FF8A98;
  border-radius: 48% 52% 38% 62% / 59% 42% 58% 41%;
  animation: kvwroam1 18s ease-in-out infinite 0.3s;
}

/* Production App Container */
.app-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  min-height: 100vh;
}

.app-card {
  width: 100%;
  max-width: 440px;
  background: #F6F6F8;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(20, 20, 30, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scrollable-container {
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 500px) {
  .app-wrapper {
    padding: 0;
  }
  .app-card {
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
    background: #F6F6F8;
    min-height: 100vh;
  }
}

/* Base Typography & Helpers */
.font-brand {
  font-family: 'LittleFriends', 'Fredoka', sans-serif;
  font-weight: 400;
}

.font-mono {
  font-family: 'DM Mono', monospace;
}

.screen-pane {
  padding: 24px 22px 36px;
  animation: kvwfadein 0.22s ease;
  width: 100%;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  background: #01B766;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(1, 183, 102, 0.28);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 183, 102, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-disabled {
  background: #E3E3E8 !important;
  color: #ABABBA !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Header logo */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
  background: #fff;
  border-bottom: 1px solid #EDEDF1;
}

.brand-logo-img {
  height: 68px;
  display: block;
  transform-origin: top center;
  animation: kvwwiggle 2.4s ease-in-out infinite;
}
