/* landing.css — Pet section, CTA final, footer for Kivo landing page.
 * Uses --lp-* design tokens defined in landing_hero.css :root.
 * Compiled/served file. Edit in sync with landing.scss (documentation).
 * ─────────────────────────────────────────────────────────────────────── */

/* ── KEYFRAMES ───────────────────────────────────────────────────────── */

@keyframes cta-aurora {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── EYEBROW MODIFIERS ───────────────────────────────────────────────── */

.lp-section-eyebrow--white {
  color: rgba(255, 255, 255, 0.70);
}

/* ── BUTTONS — pet variant ───────────────────────────────────────────── */

/* Pet CTA — solid teal bg, dark text */
.lp-btn--pet {
  background: var(--lp-primary);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.22);
  color: #0a0f13;
}
.lp-btn--pet:hover {
  background: #00dbbe;
  box-shadow: 0 8px 32px rgba(0, 245, 212, 0.36);
  color: #0a0f13;
  transform: translateY(-2px) scale(1.02);
}
.lp-btn--pet:active {
  transform: translateY(0) scale(0.99);
}

/* ── PET OWNER SECTION ───────────────────────────────────────────────── */

.lp-pet {
  background: var(--lp-surface);
  border-bottom: 1px solid rgba(0, 245, 212, 0.08);
  border-top:    1px solid rgba(0, 245, 212, 0.08);
  overflow: hidden;
  padding: 108px 0;
  position: relative;
}

.lp-pet__inner {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.lp-pet__text {
  /* no extra styles needed — layout handled by grid */
}

.lp-pet__title {
  color: var(--lp-text);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.lp-pet__sub {
  color: var(--lp-text-muted);
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 32px;
  max-width: 440px;
}

.lp-pet__chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.lp-pet__chip {
  align-items: center;
  color: var(--lp-text-muted);
  display: inline-flex;
  font-size: 14.5px;
  font-weight: 500;
  gap: 12px;
}

.lp-pet__chip-icon {
  align-items: center;
  background: rgba(0, 245, 212, 0.12);
  border-radius: 8px;
  color: var(--lp-primary);
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  width: 32px;
}

/* Illustration */
.lp-pet__visual {
  align-items: center;
  display: flex;
  justify-content: center;
}

.lp-pet__illustration {
  filter: drop-shadow(0 18px 48px rgba(0, 245, 212, 0.08));
  height: auto;
  max-width: 440px;
  width: 100%;
}

/* ── LIGHT MODE — pet section ────────────────────────────────────────── */

[data-theme="light"] .lp-pet {
  background: #f0fdfa;
  border-bottom-color: rgba(0, 245, 212, 0.16);
  border-top-color:    rgba(0, 245, 212, 0.16);
}

[data-theme="light"] .lp-pet__title {
  color: #0f172a;
}

[data-theme="light"] .lp-pet__sub,
[data-theme="light"] .lp-pet__chip {
  color: #475569;
}

[data-theme="light"] .lp-pet__chip-icon {
  background: rgba(0, 245, 212, 0.15);
}

[data-theme="light"] .lp-pet__illustration {
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.10));
}

/* ── FINAL CTA ───────────────────────────────────────────────────────── */

.lp-cta-final {
  background: linear-gradient(
    -45deg,
    #0a0f13, #0d1f2d, #0f2a3a,
    #003d30, #0a0f13
  );
  background-size: 600% 600%;
  animation: cta-aurora 22s ease infinite;
  overflow: hidden;
  padding: 108px 0;
  position: relative;
  text-align: center;
}

.lp-cta-final::before {
  background:
    radial-gradient(ellipse 800px 500px at 25% 50%, rgba(0, 245, 212, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 60%, rgba(56, 189, 248, 0.06) 0%, transparent 55%);
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.lp-cta-final__inner {
  position: relative;
  z-index: 1;
}

.lp-cta-final__title {
  color: #ffffff;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 20px;
}

.lp-cta-final__accent {
  background: linear-gradient(95deg, #00F5D4 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.lp-cta-final__sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 44px;
  max-width: 500px;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */

.lp-footer {
  background: #000000;
  border-top: 1px solid rgba(0, 245, 212, 0.08);
  padding: 32px 0;
}

.lp-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.lp-footer__brand {
  align-items: center;
  color: var(--lp-primary);
  display: inline-flex;
  font-family: "Bungee", cursive;
  font-size: 17px;
  gap: 9px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity var(--lp-t-fast);
}
.lp-footer__brand:hover {
  opacity: 0.75;
}

.lp-footer__mark {
  align-items: center;
  background: linear-gradient(135deg, #00F5D4 0%, #38BDF8 100%);
  border-radius: 9px;
  color: #0a0f13;
  display: flex;
  font-family: "Bungee", cursive;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.lp-footer__copy {
  color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
  margin: 0;
}

/* ── KOOPY — compañero mascota de la landing ─────────────────────────── */

.koopy {
  left: 0;
  opacity: 0;           /* invisible hasta el primer mousemove */
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
  z-index: 9998;
}

/* ── Burbuja de diálogo ──────────────────────────────────────────────── */

.koopy-bubble {
  background: #ffffff;
  border: 2px solid #00F5D4;
  border-radius: 14px;
  bottom: calc(100% + 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  color: #0F172A;
  font-family: "Inter", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  left: 50%;
  line-height: 1.3;
  opacity: 0;
  padding: 9px 14px;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%) translateY(8px) scale(0.88);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 1;
}

.koopy-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Flecha apuntando hacia Koopy */
.koopy-bubble::after {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #00F5D4;
  bottom: -11px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

/* Capa blanca interior de la flecha */
.koopy-bubble::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #ffffff;
  bottom: -7px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 767px) {
  .koopy { display: none; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .koopy { display: none; }
  .lp-cta-final { animation: none; }
}

/* ── RESPONSIVE — 900px ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lp-pet__inner {
    gap: 48px;
    grid-template-columns: 1fr;
  }
  .lp-pet__visual {
    order: -1;
  }
  .lp-pet__illustration {
    max-width: 340px;
  }
  .lp-pet__sub {
    max-width: 100%;
  }
}

/* ── RESPONSIVE — 640px ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  .lp-pet {
    padding: 80px 0;
  }
  .lp-cta-final {
    padding: 80px 0;
  }
  .lp-pet__illustration {
    max-width: 280px;
  }
  .lp-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
