@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Patrick Hand', cursive;
  background-color: #F5EDD9;
  background-image: url('images/paper-texture.png');
  background-size: 1200px auto;
  background-repeat: repeat;
  background-attachment: fixed;
  color: #2E2926;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle CTA pulse */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 167, 119, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(232, 167, 119, 0); }
}

.cta-pulse {
  animation: pulse-soft 3s ease-in-out infinite;
}

/* Button hover scale */
.btn-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-hover:hover {
  transform: scale(1.03);
}
.btn-hover:active {
  transform: scale(0.98);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cta-pulse { animation: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .btn-hover { transition: none; }
  .btn-hover:hover { transform: none; }
  .btn-hover:active { transform: none; }
}

/* devices.css iPhone 14 — scaled wrapper so the frame fits the layout */
.device-wrap {
  transform: scale(0.75);
  transform-origin: top center;
  margin-bottom: -200px; /* offset the scale-induced whitespace */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
}
.device-wrap .device-screen {
  object-fit: cover;
}
@media (max-width: 640px) {
  .device-wrap {
    transform: scale(0.6);
    margin-bottom: -280px;
  }
}

/* Leaderboard inside mockup */
.mockup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(196, 181, 164, 0.15);
}

.mockup-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(196, 181, 164, 0.25);
}

/* Coming Soon ribbon */
.coming-soon-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  overflow: hidden;
  width: 150px;
  height: 150px;
  pointer-events: none;
}

.coming-soon-ribbon span {
  display: block;
  position: absolute;
  top: 36px;
  right: -32px;
  width: 210px;
  padding: 8px 0;
  background: #E8A777;
  color: #fff;
  font-family: 'Patrick Hand', cursive;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Form success state (used by contact.html) */
.form-success {
  display: none;
}
.form-success.show {
  display: flex;
}
