/* =========================
   Reset
========================= */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
}

* {
  box-sizing: border-box;
}


/* =========================
   Layout
========================= */

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
}

.img-wrapper {
  position: relative;
}


/* =========================
   CTA Button
========================= */

.img-wrapper .btn-image {
  position: absolute;
  left: 50%;
  bottom: 15px;

  width: 95%;
  max-width: 560px;

  transform: translateX(-50%);

  cursor: pointer;

  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
  }
}


/* =========================
   Fixed Footer CTA
========================= */

.fixed-footer-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  padding:
    8px
    clamp(12px, 4vw, 24px)
    calc(8px + env(safe-area-inset-bottom));

  z-index: 9999;

  background: transparent;

  transform: translateY(120%);
  opacity: 0;

  transition:
    transform .35s ease,
    opacity .35s ease;
}

.fixed-footer-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.footer-btn-image {
  display: block;

  width: min(92vw, 520px);
  height: auto;

  cursor: pointer;

  animation:
    floatY 5.5s ease-in-out infinite,
    breathe 3.6s ease-in-out infinite;
}


/* =========================
   Animation
========================= */

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}


/* =========================
   Footer
========================= */

.footer {
  width: 100%;
  background: #fff;
  padding:
    20px
    10px
    calc(40px + env(safe-area-inset-bottom));

  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  text-align: center;

  font-size: 12px;
  line-height: 1.6;
  color: #666;
}


/* =========================
   Responsive
========================= */

@media (max-width: 767px) {

  .container {
    max-width: 100%;
  }

  .header-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {

  .footer-inner {
    gap: 6px;
    font-size: 11px;
  }
}


/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {

  .img-wrapper .btn-image,
  .footer-btn-image,
  .fixed-footer-cta {
    animation: none !important;
    transition: none !important;
  }
}