/* Shared styles for Vui Pet public pages (legal + download).
   Tokens aligned with app blush palette. */

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

:root {
  --brand: #b56b7a;
  --brand-dark: #8f5461;
  --brand-soft: #f3dce4;
  --brand-mist: #f9eef2;
  --brand-glow: #f0b8c4;
  --text-primary: #3d2a30;
  --text-secondary: #6e565e;
  --white: #ffffff;
  --bg: #fdf6f7;
  --border: #edd6db;
  --shadow: 0 12px 40px rgba(61, 42, 48, 0.08);

  /* Legacy aliases used by privacy / terms / support markup */
  --purple-500: var(--brand);
  --purple-600: var(--brand-dark);
  --purple-100: var(--brand-soft);
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 55%, #70424e 100%);
  color: var(--white);
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 8px;
}

.site-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.meta {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.92;
}

.lang-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.lang-nav a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang-nav a:hover {
  background: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.lang-block {
  margin-bottom: 40px;
}

.lang-block h2.lang-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-soft);
}

section {
  margin-bottom: 22px;
}

section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

section p,
section li {
  font-size: 15px;
  color: var(--text-primary);
}

section ul {
  margin: 8px 0 0 1.1rem;
}

section li {
  margin-bottom: 6px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}

/* ── Download landing (mobile-first) ──────────────────────────── */

body.page-download {
  --dl-purple: #6b3a8c;
  --dl-purple-deep: #542975;
  --dl-pink: #f7d6df;
  background:
    radial-gradient(ellipse 120% 70% at 50% -20%, #ffe8ef 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 10%, rgba(107, 58, 140, 0.08), transparent 45%),
    #fff8fa;
}

body.page-download main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 10px 28px rgba(107, 58, 140, 0.22); }
  50% { box-shadow: 0 10px 28px rgba(107, 58, 140, 0.22), 0 0 0 8px rgba(107, 58, 140, 0.08); }
}

@keyframes bounce-dl {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(3px); }
  70% { transform: translateY(-1px); }
}

.download-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 16px 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(165deg, #c98aa0 0%, #b56b7a 38%, var(--dl-purple) 100%);
  color: var(--white);
}

.download-hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.download-hero-inner {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.download-brand-block {
  animation: rise-in 0.55s ease both;
}

.app-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 36px;
  animation: float-icon 3.6s ease-in-out infinite;
}

.app-icon-glow {
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(2px);
}

.app-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow:
    0 16px 32px rgba(45, 20, 70, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.35);
  background: #fff;
}

.app-icon-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #8b4fb0, var(--dl-purple-deep));
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(45, 20, 70, 0.28);
}

.app-icon-badge svg {
  animation: bounce-dl 1.8s ease-in-out infinite;
}

.download-brand-name {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.download-hero h1 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.95;
}

.download-lead {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.download-lead-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.download-lead-icon svg {
  animation: bounce-dl 1.8s ease-in-out infinite;
}

.store-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  animation: rise-in 0.6s ease 0.08s both;
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 16px;
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.store-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.store-btn--primary {
  background: var(--white);
  color: var(--dl-purple-deep);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(107, 58, 140, 0.18);
}

.store-btn--primary:hover {
  background: #fff8fb;
  color: var(--dl-purple-deep);
  transform: translateY(-1px);
}

.store-btn.is-recommended {
  animation: pulse-ring 2.6s ease-in-out infinite;
}

.store-btn.is-recommended::after {
  content: attr(data-badge);
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--dl-purple-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.store-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  order: 2;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.store-icon--apple {
  background: #111;
  color: #fff;
}

.store-icon--android {
  background: #3ddc84;
  color: #0b3d1f;
}

.store-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  order: 1;
  text-align: left;
}

.store-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.store-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.download-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  animation: rise-in 0.6s ease 0.14s both;
}

.download-nav a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.download-nav a:hover {
  background: rgba(255, 255, 255, 0.26);
  text-decoration: none;
}

.promo-banner {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(107, 58, 140, 0.08);
  background: #ffe8ef;
  animation: rise-in 0.65s ease 0.12s both;
}

.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-list {
  margin-bottom: 18px;
}

.feature-list ul {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  border-bottom: 1px solid #f3e5ea;
}

.feature-list li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 70% 30%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 30% 70%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 70% 70%, #fff 0 18%, transparent 19%),
    var(--dl-purple);
}

.about-split {
  display: grid;
  gap: 12px;
}

.about-split .card {
  margin-bottom: 0;
}

.about-split h3 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.about-split p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

body.page-download .site-footer {
  max-width: 560px;
  text-align: center;
  padding: 4px 16px 36px;
}

body.page-download .site-footer nav {
  justify-content: center;
  gap: 14px 18px;
}

body.page-download .site-footer a {
  font-weight: 700;
}

@media (min-width: 720px) {
  body.page-download main {
    max-width: 720px;
    padding: 28px 24px 48px;
  }

  .download-hero {
    padding: 40px 24px 28px;
  }

  .download-hero-inner {
    max-width: 480px;
  }

  .app-icon-wrap,
  .app-icon {
    width: 120px;
    height: 120px;
  }

  .app-icon {
    border-radius: 28px;
  }

  .download-brand-name {
    font-size: 34px;
  }

  .download-hero h1 {
    font-size: 18px;
  }

  .store-btn {
    min-height: 68px;
    padding: 14px 16px;
  }

  .about-split {
    grid-template-columns: 1fr 1fr;
  }

  body.page-download .site-footer {
    max-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon-wrap,
  .download-brand-block,
  .store-panel,
  .download-nav,
  .promo-banner,
  .store-btn.is-recommended,
  .app-icon-badge svg,
  .download-lead-icon svg {
    animation: none;
  }
}
