/* ─────────────────────────────────────────────────────────
   Blossom — Beauty On Demand
   Brand palette: cream background, warm brown ink,
   blush accents. Mirrors the in-app splash voice.
   ───────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --cream: #F8F4EC;          /* page bg */
  --ivory: #FCFAF5;          /* surface / card */
  --ink: #3D2E2A;            /* warm dark brown */
  --ink-soft: #5A4842;       /* secondary brown */
  --taupe: #8B7A70;          /* muted body text */
  --line: #E8DDD0;           /* warm border */
  --blush: #E8B4C0;          /* soft pink accent */
  --blush-soft: #F4C6CE;     /* lighter pink */
  --gold: #E8C797;           /* warm gold accent */
  --pink-hot: #E8467C;       /* in-app accent (used sparingly) */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--blush);
}

/* Floating petals canvas — pinned behind everything */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 244, 236, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.logo:hover {
  text-decoration: none;
}

.logo-flower {
  font-size: 18px;
  line-height: 1;
}

.logo-img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--taupe);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ─── Hero (brand voice) ─── */
main {
  flex: 1;
}

.hero-brand {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px 96px;
  text-align: center;
}

.bloom {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 28px;
  display: inline-block;
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.wordmark {
  font-size: clamp(56px, 12vw, 132px);
  font-weight: 300;
  letter-spacing: clamp(8px, 1.6vw, 22px);
  color: var(--ink);
  line-height: 1;
  margin: 0;
  /* Pull the right side back so the wide letter-spacing
     doesn't make the word look offset from center. */
  text-indent: clamp(8px, 1.6vw, 22px);
}

.tagline {
  margin-top: 18px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: 2.5px;
}

.cta-group {
  margin-top: 56px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 20px rgba(61, 46, 42, 0.18);
}

.store-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--ink-soft);
  box-shadow: 0 10px 28px rgba(61, 46, 42, 0.24);
}

.store-cta .store-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.store-cta .lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-cta .lines small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.75;
}

.mantra {
  margin-top: 80px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4.2px;
  color: var(--ink);
  text-transform: uppercase;
}

.mantra .m-word {
  display: inline-block;
  margin: 0 4px;
  opacity: 0;
  /*  Two animations layered:
   *  1) revealWord  — one-shot fade-in on load (staggered per word)
   *  2) walkGlow    — continuous loop, the highlight walks
   *                   BOOK → BLOOM → BLOSSOM → repeat */
  animation:
    revealWord 0.7s ease-out forwards,
    walkGlow 4.5s ease-in-out infinite;
}

.mantra .m-word:nth-child(1) { animation-delay: 0.4s, 1.5s; }
.mantra .m-word:nth-child(2) { animation-delay: 0.9s, 3.0s; }
.mantra .m-word:nth-child(3) { animation-delay: 1.4s, 4.5s; }

@keyframes revealWord {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes walkGlow {
  0%, 70%, 100% {
    color: var(--ink);
    text-shadow: none;
  }
  35% {
    color: var(--pink-hot);
    text-shadow: 0 0 14px rgba(232, 70, 124, 0.32);
  }
}

/* ─── Content pages (privacy, support, terms) ─── */
.content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}

.content h1 {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.content .meta {
  font-size: 13px;
  color: var(--taupe);
  margin-bottom: 40px;
  letter-spacing: 0.4px;
}

.content h2 {
  font-size: 20px;
  letter-spacing: -0.2px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--ink);
}

.content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--ink);
}

.content p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.content a {
  color: var(--ink);
  border-bottom: 1px solid var(--blush);
}

.content a:hover {
  border-bottom-color: var(--pink-hot);
  text-decoration: none;
}

.content ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.content li {
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.content strong {
  font-weight: 700;
  color: var(--ink);
}

/* ─── Support page contact card ─── */
.contact-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin: 24px 0;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card .email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}

.faq {
  margin-top: 32px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item .q {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.faq-item .a {
  color: var(--taupe);
  font-size: 15px;
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.8);
  padding: 32px 24px;
}

.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .left {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--taupe);
  text-transform: uppercase;
  text-align: center;
}

/* ─── Hamburger nav ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .hero-brand {
    padding: 64px 20px 72px;
  }
  .bloom {
    font-size: 44px;
    margin-bottom: 22px;
  }
  .mantra {
    margin-top: 56px;
  }
  .content {
    padding: 48px 20px 80px;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 244, 236, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 10;
  }

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

  .site-nav a {
    padding: 14px 24px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-header .inner {
    position: relative;
  }
}
