/* ============================================
   List Buddy Landing Page — Custom Styles
   Tailwind handles 95% of styling via CDN.
   This file covers: gradient blobs, phone frames,
   carousel snap, nav transitions, and custom animations.
   ============================================ */

/* ---------- Root tokens ---------- */
:root {
  --purple-700: #6B46C1;
  --purple-800: #553C9A;
  --purple-100: #E9D8FD;
  --purple-50: #FAF5FF;
  --green-500: #3EB489;
  --green-600: #359E78;
  --cream: #FDFBF7;
  --warm-gray: #F7F5F2;
  --slate-800: #1E293B;
  --slate-600: #475569;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero gradient blob ---------- */
.hero-blob {
  position: absolute;
  top: -120px;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 40%,
      rgba(107, 70, 193, 0.12) 0%,
      rgba(107, 70, 193, 0.04) 50%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-blob {
    width: 350px;
    height: 350px;
    top: -60px;
    right: 0;
  }
}

/* ---------- Phone mockup frame ---------- */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Subtle float animation on hero phone */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.phone-float {
  animation: float 4s ease-in-out infinite;
}

/* ---------- Hero organic blob mesh ---------- */
.hero-blob-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-blob-mesh__a {
  position: absolute;
  width: 70%;
  aspect-ratio: 1.05;
  top: 48%;
  left: 48%;
  transform: translate(-50%, -50%);
  border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%;
  background: #EDE9FE;
  animation: hero-morph-a 10s ease-in-out infinite;
}

.hero-blob-mesh__b {
  position: absolute;
  width: 48%;
  aspect-ratio: 1.15;
  top: 60%;
  left: 60%;
  transform: translate(-50%, -50%);
  border-radius: 45% 55% 60% 40% / 55% 40% 50% 50%;
  background: rgba(62, 180, 137, 0.2);
  filter: blur(18px);
  animation: hero-morph-b 12s ease-in-out infinite;
}

.hero-blob-mesh__c {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  top: 34%;
  left: 36%;
  transform: translate(-50%, -50%);
  border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
  background: rgba(107, 70, 193, 0.14);
  filter: blur(22px);
  animation: hero-morph-c 14s ease-in-out infinite;
}

.hero-blob-mesh__d {
  position: absolute;
  width: 32%;
  aspect-ratio: 1.2;
  top: 68%;
  left: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 40% 60% / 60% 40% 55% 45%;
  background: rgba(248, 232, 236, 0.5);
  filter: blur(14px);
  animation: hero-morph-b 11s ease-in-out infinite reverse;
}

@keyframes hero-morph-a {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
  33%      { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
  66%      { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}

@keyframes hero-morph-b {
  0%, 100% { border-radius: 45% 55% 60% 40% / 55% 40% 50% 50%; }
  33%      { border-radius: 55% 45% 50% 50% / 40% 60% 45% 55%; }
  66%      { border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; }
}

@keyframes hero-morph-c {
  0%, 100% { border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%; }
  33%      { border-radius: 40% 60% 55% 45% / 45% 50% 55% 50%; }
  66%      { border-radius: 50% 50% 50% 50% / 55% 45% 50% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-float,
  .hero-blob-mesh__a,
  .hero-blob-mesh__b,
  .hero-blob-mesh__c,
  .hero-blob-mesh__d {
    animation: none;
  }
}

/* ---------- Sticky nav transition ---------- */
.site-nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}

.site-nav.scrolled {
  background-color: #FDFBF7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(107, 70, 193, 0.15);
  box-shadow:
    0 1px 0 0 rgba(107, 70, 193, 0.06),
    0 4px 16px -2px rgba(0, 0, 0, 0.08);
}

/* ---------- Features grid purple bg ---------- */
.features-gradient {
  background: linear-gradient(135deg, var(--purple-700) 0%, var(--purple-800) 100%);
}

/* ---------- CTA strip gradient ---------- */
.cta-gradient {
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-700) 100%);
}

/* ---------- Pricing card highlight ---------- */
.pricing-card-premium {
  border: 2px solid var(--purple-700);
  position: relative;
}

.pricing-card-premium::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple-700);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}

/* ---------- Pillar number badge ---------- */
.pillar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ---------- Problem card icon circle ---------- */
.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--slate-800);
  text-decoration: none;
}

/* ---------- Form inputs ---------- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--purple-700);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* ---------- Subpages (privacy, terms, delete) shared ---------- */
.subpage-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.subpage-container h1 {
  color: var(--purple-700);
  margin-bottom: 1.5rem;
}

.subpage-container h2 {
  color: var(--purple-700);
  margin-top: 2rem;
}

/* ---------- Illustration grid + blob system ---------- */
.illustration-grid {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 480px;
}

.illustration-blob {
  grid-row: 1;
  grid-column: 1;
}

.illustration-img {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 10;
}

/* Blob shapes */
.illustration-blob--circle {
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #EDE9FE;
  transform: translate(5%, -2%);
}

.illustration-blob--pill {
  width: 92%;
  aspect-ratio: 20 / 14;
  border-radius: 60px;
  background: #f0fdf4;
  transform: translateY(5%);
}

.illustration-blob--tilted {
  width: 80%;
  aspect-ratio: 1;
  border-radius: 48px;
  background: #FAF5FF;
  transform: rotate(-4deg) translateY(3%);
}

.illustration-blob--organic {
  width: 88%;
  aspect-ratio: 18 / 16;
  border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
  background: #fff1f2;
  transform: translateY(4%);
}

.illustration-blob--ellipse {
  width: 95%;
  aspect-ratio: 20 / 12;
  border-radius: 50%;
  background: #FDFBF7;
  transform: translateY(6%);
}

/* ---------- Composed illustration system ---------- */
.illustration-composed {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
}

.illustration-composed__blob {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: #f8e8ec;
  z-index: 0;
}

.illustration-composed__phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: none !important;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.10));
}

.illustration-composed__asset {
  position: absolute;
  max-width: none !important;
  height: auto;
}

.illustration-composed__asset--balloon {
  width: 30%;
  top: -25%;
  z-index: 1;
  transform: rotate(-18deg);
}

.illustration-composed__asset--cupcake {
  width: 28%;
  bottom: -3%;
  left: -2%;
  z-index: 1;
  transform: rotate(-15deg);
}

.illustration-composed__asset--gift {
  width: 35%;
  bottom: 4%;
  right: -5%;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transform: rotate(12deg);
}

/* -- Hero assets -- */
.illustration-composed__asset--avocado {
  width: 20%;
  top: -2%;
  left: 2%;
  z-index: 1;
  transform: rotate(8deg);
}

.illustration-composed__asset--wrench {
  width: 22%;
  top: -4%;
  right: 0%;
  z-index: 1;
  transform: rotate(15deg);
}

.illustration-composed__asset--cake {
  width: 20%;
  bottom: 4%;
  left: 0%;
  z-index: 1;
  transform: rotate(-10deg);
}

.illustration-composed__asset--cheese {
  width: 18%;
  bottom: 2%;
  right: 4%;
  z-index: 1;
}

/* -- Lists: Layered Circles variant -- */
.illustration-composed--lists {
  aspect-ratio: 3 / 4;
}

.lists-blob {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lists-blob--a {
  width: 80%;
  aspect-ratio: 1.2;
  top: 44%;
  left: 44%;
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  background: rgba(209, 250, 229, 0.6);
  filter: blur(20px);
  animation: lists-morph-a 12s ease-in-out infinite;
}

.lists-blob--b {
  width: 75%;
  aspect-ratio: 1.1;
  top: 56%;
  left: 56%;
  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  background: rgba(237, 233, 254, 0.45);
  filter: blur(22px);
  animation: lists-morph-b 14s ease-in-out infinite;
}

.lists-blob--c {
  width: 55%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: rgba(167, 243, 208, 0.35);
  filter: blur(24px);
  animation: lists-morph-c 16s ease-in-out infinite;
}

@keyframes lists-morph-a {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  33%      { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
  66%      { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}

@keyframes lists-morph-b {
  0%, 100% { border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; }
  33%      { border-radius: 55% 45% 50% 50% / 40% 60% 45% 55%; }
  66%      { border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; }
}

@keyframes lists-morph-c {
  0%, 100% { border-radius: 50%; }
  33%      { border-radius: 40% 60% 55% 45% / 45% 50% 55% 50%; }
  66%      { border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%; }
}

.lists-blob--orbit-1 {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(167, 243, 208, 0.5);
  filter: blur(10px);
  z-index: 1;
  animation: lists-orbit 20s linear infinite;
}

.lists-blob--orbit-2 {
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(237, 233, 254, 0.45);
  filter: blur(12px);
  z-index: 1;
  animation: lists-orbit 20s linear 10s infinite;
}

@keyframes lists-orbit {
  0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(200px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(200px) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lists-blob--a,
  .lists-blob--b,
  .lists-blob--c,
  .lists-blob--orbit-1,
  .lists-blob--orbit-2 {
    animation: none;
  }
}

.illustration-composed--lists .lists-phone-list {
  position: absolute;
  width: 70%;
  max-width: none !important;
  height: auto;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* -- Meals variant -- */
.illustration-composed--meals .illustration-composed__phone {
  width: 55%;
}

/* -- Meals assets -- */
.illustration-composed__asset--card-pasta {
  width: 40%;
  bottom: 2%;
  left: -12%;
  z-index: 3;
  transform: rotate(-5deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.illustration-composed__asset--card-cordon-bleu {
  width: 40%;
  top: 2%;
  right: -15%;
  z-index: 3;
  transform: rotate(3deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* -- Collab variant (portrait-based, no phone) -- */
.illustration-composed--collab {
  aspect-ratio: 5 / 4;
}

.illustration-composed--collab .illustration-composed__blob {
  display: none;
}

.illustration-composed__portrait {
  position: absolute;
  max-width: none !important;
  height: auto;
  z-index: 2;
}

.illustration-composed__portrait--left {
  width: 42%;
  left: 2%;
  bottom: 0%;
}

.illustration-composed__portrait--right {
  width: 42%;
  right: 0%;
  bottom: 0%;
}

.illustration-composed__asset--arrow {
  width: 55%;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.illustration-composed__asset--notification {
  width: 40%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  border-radius: 1rem;
}

/* ---------- FAQ card accordion ---------- */
.faq-cards {
  background: var(--warm-gray);
  border-radius: 1rem;
  padding: 1.5rem;
}

.faq-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border-left: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.faq-card:last-child {
  margin-bottom: 0;
}

.faq-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-card.open {
  border-left-color: var(--purple-700);
  background: var(--purple-50);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--slate-800);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #94A3B8;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-answer {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-top: 0.75rem;
}

/* ---------- Utility: image swap flexibility ---------- */
.img-swap {
  width: 100%;
  height: auto;
  object-fit: contain;
}