/* Bunli Landing Page Styles
 * Palette mirrored from src/lib/theme.ts
 */

:root {
  --warm-bg: #E8E4DE;
  --cream-bg: #F7F3ED;
  --card-grey: #F3EFEA;
  --card-white: #FFFFFF;

  --ink: #1C1A18;
  --ink-dim: #4A453F;
  --muted: #7A756F;
  --muted-light: #A8A29B;

  --primary: #2A2724;
  --xp-green: #6FB84A;
  --xp-green-light: #8ED36A;
  --xp-pill-bg: #EAF5DE;
  --xp-pill-text: #4A8233;

  --hairline: rgba(0, 0, 0, 0.06);
  --divider: rgba(0, 0, 0, 0.05);

  --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-bg) 0%, var(--warm-bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Soft floating blobs that hint at the warm/playful bunny vibe */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blobs::before,
.blobs::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.blobs::before {
  background: var(--xp-pill-bg);
  top: -120px;
  right: -120px;
  animation: drift 16s ease-in-out infinite;
}

.blobs::after {
  background: #F0E6D2;
  bottom: -160px;
  left: -160px;
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

/* Landing layout */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.landing-content {
  max-width: 520px;
  width: 100%;
}

/* App icon */
.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  margin-bottom: 28px;
  box-shadow:
    0 12px 36px rgba(111, 184, 74, 0.22),
    0 4px 14px rgba(28, 26, 24, 0.08);
}

/* XP-style pill above the title */
.xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--xp-pill-bg);
  color: var(--xp-pill-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.xp-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xp-green);
}

/* Typography */
.app-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.05;
}

.tagline {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.description {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

/* App Store badge */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* Footer */
.landing-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--xp-green);
}

.copyright {
  color: var(--muted-light);
  font-size: 13px;
}

/* Legal pages */
.legal-page {
  position: relative;
  z-index: 1;
}

.legal-container {
  max-width: 760px;
  margin: 32px auto;
  padding: 40px 32px;
  background: var(--card-white);
  border-radius: 24px;
  box-shadow:
    0 12px 40px rgba(28, 26, 24, 0.08),
    0 2px 8px rgba(28, 26, 24, 0.04);
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.legal-header .back-link {
  color: var(--xp-pill-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-header .back-link:hover {
  color: var(--xp-green);
  text-decoration: underline;
}

.legal-container h1 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}

.legal-container .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-container h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.legal-container h3 {
  color: var(--ink-dim);
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.legal-container p {
  color: var(--ink-dim);
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-container ul {
  margin: 0 0 16px 24px;
  color: var(--ink-dim);
}

.legal-container li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-container a {
  color: var(--xp-pill-text);
  font-weight: 600;
}

.legal-container a:hover {
  color: var(--xp-green);
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.legal-footer p {
  color: var(--muted);
  margin-bottom: 6px;
}

.legal-footer a {
  color: var(--xp-pill-text);
}

/* Responsive */
@media (max-width: 600px) {
  .app-icon {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }

  .app-title {
    font-size: 42px;
  }

  .tagline {
    font-size: 19px;
  }

  .description {
    font-size: 15px;
  }

  .legal-container {
    margin: 16px;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .legal-container h1 {
    font-size: 26px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
