/* Paree Beauty — shared site styles
   Palette + type match the real Paree Beauty logo and moodboard: lilac (packaging, chip backgrounds)
   crossed with a botanical sage/forest green (the logo's "Paree BEAUTY" wordmark green), in an
   Art-Nouveau, storybook-botanical register (willow trees, leaf silhouettes, vintage botanical
   book spines, soft water) rather than the earlier warm-gold palette. */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --paree-cream: #FBF6F0;
  --paree-cream-deep: #F3EAE0;
  --paree-plum: #3B2748;
  --paree-lilac: #C9A7E0;
  --paree-lilac-deep: #B98CD6;
  --paree-lilac-pale: #EDE2F5;
  --paree-sage: #6FA787;
  --paree-green: #4C6B45;
  --paree-green-deep: #3A5233;
  --paree-green-soft: #8AAE7E;
  --paree-gold: #E0B24A;
  --paree-sky: #7EC8E3;
  --paree-fairy-pink: #D9A6E0;

  --archetype-mermaid: #4FA0C7;
  --archetype-enchantress: #B57AD9;
  --archetype-fairy: #DFA8DE;
  --archetype-dryad: #6FA787;
  --archetype-shapeshifter: #4FBBA3;
  --archetype-sorceress: #7A64C7;

  --font-display: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Quicksand', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--paree-plum);
  line-height: 1.6;
  /* Site-wide background: the lilac-to-cream-to-green gradient over a faint cream/white
     leaf-vein paper texture (images/paper-texture.jpg, a heavily desaturated + cream-tinted
     crop of the leaf macro photo, cropped to remove the leftover UI-icon artifact from the
     original screenshot). This replaces the earlier attempt that tiled the raw green photo
     directly, too bright, visible seams, and that stray icon. */
  background:
    linear-gradient(180deg, rgba(237, 226, 245, 0.88) 0%, rgba(251, 246, 240, 0.9) 35%, rgba(232, 238, 224, 0.9) 100%),
    url('../images/paper-texture.jpg');
  background-size: auto, 900px 900px;
  background-repeat: no-repeat, repeat;
  background-position: top, top;
}

/* Literary/botanical prose reads in Cormorant Garamond (echoes the vintage botanical book
   spines + storybook feel of the moodboard); nav, buttons, and quiz UI stay in Quicksand
   for legibility at small sizes. */
.brand-story, .section-subtitle, .result-gift, .result-need-teaser, .form-note {
  font-family: var(--font-body);
}
.section-subtitle, .result-gift, .result-need-teaser {
  font-size: 19px;
}
.form-note { font-size: 15px; }

a { color: var(--paree-lilac-deep); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.site-nav .wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-nav .wordmark img {
  height: 42px;
  width: auto;
  display: block;
}
.hero-logo {
  height: 130px;
  width: auto;
  margin: 0 auto 8px;
  display: block;
}
.site-nav .nav-links a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--paree-plum);
  font-weight: 600;
  font-size: 14px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  /* Matches the site-wide lilac gradient, no leaf photo here, that tiled/cropped badly
     (see body background note above) and read too bright/green against this palette. */
  background: transparent;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 72px;
  margin: 0 0 8px;
  color: var(--paree-green);
}
.hero .tagline {
  font-size: 20px;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--paree-plum);
  opacity: 0.85;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--paree-lilac-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(185, 140, 214, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--paree-green-deep);
  border: 2px solid var(--paree-green-deep);
}
.btn-gold {
  background: var(--paree-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(76, 107, 69, 0.35);
}

/* ---- Sections ---- */
section {
  padding: 56px 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.brand-story {
  max-width: 1040px;
  margin: 0 auto;
  font-size: 19px;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}
.story-image img,
.quiz-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(58, 82, 51, 0.22);
}
/* No fixed max-height here on purpose: with align-items: stretch above, .story-image
   naturally fills the same total height as .story-text (heading + book), so the top and
   bottom of the photo line up with the top and bottom of the story-book, no manual offset. */

/* ---- "The Story" as an open storybook spread ---- */
.story-book {
  display: flex;
  background: linear-gradient(180deg, #FBF3E2 0%, #F3E5C7 100%);
  border-radius: 14px;
  border: 1px solid #DCC9A0;
  box-shadow: 0 16px 32px rgba(58, 82, 51, 0.2);
  overflow: hidden;
  position: relative;
}
.story-book::before {
  /* the spine shadow down the center fold */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(107, 79, 44, 0.22) 50%, transparent 100%);
  pointer-events: none;
}
.story-page {
  flex: 1;
  padding: 26px 24px;
  position: relative;
}
.story-page p {
  margin: 0;
  font-family: var(--font-body);
  font-style: italic;
  color: #4A3B24;
  font-size: 18px;
  line-height: 1.75;
}

.quiz-teaser { padding-top: 8px; }
.quiz-teaser-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
/* The silhouette is genuinely tall and narrow (a portrait crop), so unlike .story-image
   this one is NOT force-cropped into a landscape box, it keeps its natural aspect ratio,
   just scaled up to read as a large, deliberate image on its side of the layout. */
.quiz-teaser-image {
  max-width: 380px;
  margin: 0 auto;
}
.quiz-teaser-image img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .story-grid, .quiz-teaser-grid { grid-template-columns: 1fr; }
  .story-image, .story-image img { max-height: 320px; }
  .story-book { flex-direction: column; }
  .story-book::before { top: 0; left: 0; width: 100%; height: 20px; transform: none;
    background: linear-gradient(180deg, transparent 0%, rgba(107,79,44,0.22) 50%, transparent 100%); }
}

/* ---- Archetype teaser grid ---- */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}
.archetype-card {
  border-radius: 20px;
  padding: 22px 12px;
  text-align: center;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
}
.archetype-card .emoji { font-size: 30px; display: block; margin-bottom: 8px; }
/* All six kept strictly within the blue / purple / green families (no gold or wine),
   each a gradient rather than a flat fill, per her ask. Hue/lightness varies enough
   that all six stay distinguishable at a glance. */
.archetype-card.mermaid { background: linear-gradient(135deg, #8FD4EC, #3E93BE); }
.archetype-card.enchantress { background: linear-gradient(135deg, #D9AEEF, #9B5FCB); }
.archetype-card.fairy { background: linear-gradient(135deg, #F0C9EE, #D48FD9); }
.archetype-card.dryad { background: linear-gradient(135deg, #9CD1A8, #4F8B5E); }
.archetype-card.shapeshifter { background: linear-gradient(135deg, #7FDCC7, #2F9C86); }
.archetype-card.sorceress { background: linear-gradient(135deg, #A38EE0, #5A3F9E); }

@media (max-width: 480px) {
  .archetype-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Waitlist form ---- */
.waitlist-section {
  background: linear-gradient(160deg, var(--paree-green-deep) 0%, var(--paree-green) 100%);
  color: var(--paree-cream);
  border-radius: 32px;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}
.waitlist-section .section-title { color: var(--paree-cream); }
.waitlist-section .brand-story,
.waitlist-section p { color: var(--paree-cream); }
/* Layout wrapper only — the actual input/button styling for this form comes from
   css/kit-form.css, since it's Kit's real embed markup, not a hand-rolled form. */
.waitlist-form {
  margin-top: 24px;
  text-align: left;
}
.waitlist-form .formkit-fields {
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.waitlist-form .formkit-field {
  flex: 0 1 280px !important;
}
.waitlist-form .formkit-submit {
  flex: 0 0 auto !important;
}
.form-note {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  opacity: 0.7;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paree-green-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.social-links a:hover { opacity: 0.7; }

/* ==================== QUIZ PAGE ==================== */
.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.quiz-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--paree-cream-deep);
  overflow: hidden;
  margin-bottom: 32px;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--paree-lilac-deep);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}
.quiz-question h2 {
  font-family: var(--font-display);
  font-size: 34px;
  text-align: center;
  margin-bottom: 32px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-option {
  background: #fff;
  border: 2px solid var(--paree-cream-deep);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--paree-plum);
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-option:hover {
  border-color: var(--paree-lilac-deep);
  background: var(--paree-cream-deep);
}

/* ---- Result screen ---- */
.result-screen { text-align: center; display: none; }
.result-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
}
.result-screen h2 {
  font-family: var(--font-display);
  font-size: 48px;
  margin: 0 0 4px;
}
.result-gift {
  font-size: 18px;
  font-weight: 600;
  max-width: 460px;
  margin: 0 auto 8px;
}
.result-influence {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 24px;
}
.result-need-teaser {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.share-row { margin-bottom: 32px; }

/* Layout wrapper only — input/button styling comes from css/kit-form.css, same real
   Kit embed as the homepage form, just with a hidden archetype field added. */
.unlock-form {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}
.unlock-form .formkit-submit {
  width: 100%;
}
.unlock-form .formkit-submit > span {
  text-align: center;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 44px; }
  .section-title { font-size: 30px; }
  .result-screen h2 { font-size: 36px; }
}

/* ==================== MAGIC CURSOR + SPARKLE TRAIL ==================== */
/* Only kicks in on fine-pointer devices; magic-cursor.js adds this class and
   swaps the native cursor for the wand. Buttons/links keep their own affordance
   via the wand's rotation, no separate hover state needed. */
.magic-cursor-active,
.magic-cursor-active * {
  cursor: none !important;
}

.magic-wand {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: auto;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  filter: drop-shadow(0 2px 6px rgba(224, 178, 74, 0.6));
  will-change: transform;
}

.magic-sparkle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  color: var(--paree-gold);
  text-shadow: 0 0 6px rgba(224, 178, 74, 0.8);
  transform: translate(-50%, -50%);
  animation: sparkle-fade 0.75s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x)), calc(-50% - 34px)) scale(0.3) rotate(45deg);
  }
}
