/* Lupus Loud — purple, butterfly, dawn light. Calm and gentle. */

:root {
  --plum-deep: #2e1065;
  --purple: #5e35b1;
  --purple-soft: #7e57c2;
  --lavender: #b39ddb;
  --lavender-pale: #ede7f6;
  --dawn-peach: #ffd9c0;
  --dawn-rose: #f8bbd0;
  --ink: #33272e;
  --ink-soft: #5d4a56;
  --paper: #fdfbff;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 16, 101, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.075rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--plum-deep);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero: dawn over purple ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 96px 24px 120px;
}

.dawn {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, var(--dawn-peach) 0%, rgba(255, 217, 192, 0) 60%),
    radial-gradient(ellipse 70% 50% at 50% 115%, var(--dawn-rose) 0%, rgba(248, 187, 208, 0) 55%),
    linear-gradient(180deg, var(--plum-deep) 0%, var(--purple) 55%, var(--purple-soft) 82%, #9575cd 100%);
  z-index: 0;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(253, 251, 255, 0), var(--paper));
  z-index: 1;
}

.butterfly { color: rgba(255, 255, 255, 0.85); }

.butterfly-hero {
  position: relative;
  z-index: 2;
  width: 120px;
  height: auto;
  margin-bottom: 10px;
  animation: drift 7s ease-in-out infinite;
}

.butterfly-small {
  width: 72px;
  height: auto;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lavender);
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(3.2rem, 10vw, 5.4rem);
  letter-spacing: 0.01em;
  text-shadow: 0 3px 24px rgba(46, 16, 101, 0.45);
}

.tagline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  color: #ffe9d6;
  margin-top: 10px;
}

.hero-line {
  margin: 22px auto 34px;
  max-width: 520px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 8px 22px rgba(46, 16, 101, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 16, 101, 0.32); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 8px 22px rgba(46, 16, 101, 0.25);
}
.btn-light:hover { transform: translateY(-2px); }

/* On tinted sections the primary button needs the purple fill */
#app .btn-primary, .section .btn-primary {
  background: var(--purple);
  color: #fff;
}
#app .btn-primary:hover { background: var(--purple-soft); }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }

.section-tint { background: var(--lavender-pale); }

.section h2 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.butterfly-mark { font-size: 1.6rem; line-height: 1; }

.lead { font-size: 1.22rem; color: var(--ink-soft); margin-bottom: 16px; }
.lead.light { color: rgba(255, 255, 255, 0.94); }

.care-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 14px;
}

.care-list li {
  background: var(--card);
  border-left: 5px solid var(--purple-soft);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  font-size: 1.08rem;
}

/* ---------- App cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 26px 0 34px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--lavender);
}

.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

.center { text-align: center; }

/* ---------- Join ---------- */

.join {
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 217, 192, 0.5) 0%, rgba(255, 217, 192, 0) 60%),
    linear-gradient(160deg, var(--purple) 0%, var(--plum-deep) 100%);
}

.join h2 { color: #fff; justify-content: center; }
.join .lead { max-width: 620px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */

footer {
  background: var(--plum-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 38px 0;
  text-align: center;
}

.footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 6px;
}

.footer-note { font-size: 0.95rem; }
.powered { color: var(--lavender); }

/* ---------- Reveal (gentle) ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .hero { padding: 72px 18px 96px; }
  .section { padding: 58px 0; }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
  .section h2 { font-size: 1.8rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .butterfly-hero, .butterfly-small { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
