@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #FFF6FB;
  --surface: #FFFFFF;
  --surface2: #FCEAF3;
  --line: #F4DCE8;
  --brass: #D26A93;
  --brass-soft: #B04E74;
  --red: #DC5C80;
  --green: #5BA585;
  --text: #3A2632;
  --muted: #A88A99;
  --on-brass: #FFF6FB;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', Inter, ui-sans-serif, system-ui, sans-serif;
  --font-rounded: 'Space Grotesk', 'SF Pro Rounded', sans-serif;

  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18121A;
    --surface: #241726;
    --surface2: #311F33;
    --line: #412942;
    --brass: #E89AB3;
    --brass-soft: #F4C4D6;
    --red: #D9466B;
    --green: #74C29A;
    --text: #F8ECF2;
    --muted: #BBA0B4;
    --on-brass: #2A121C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brass-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.nav .brand .bloom-mark { width: 28px; height: 28px; color: var(--brass); flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brass-soft); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 32px 0 20px;
}

.hero .glow {
  width: 180px;
  height: 180px;
  margin: 0 auto -36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--brass) 0%, transparent 68%);
  opacity: 0.35;
  filter: blur(18px);
}

.hero .bloom-mark-hero {
  position: relative;
  width: 72px;
  height: 72px;
  color: var(--brass);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 72px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--brass-soft);
  margin: 0 0 8px;
}

.hero .subtag {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 20px;
}

.chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--line);
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 14px;
  color: var(--brass-soft);
}

.chip-emoji { font-size: 15px; }

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brass), var(--brass-soft));
  color: var(--on-brass);
  box-shadow: 0 12px 30px -8px rgba(210, 106, 147, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--brass-soft);
  border: 1.5px solid var(--line);
}

/* ---------- Sections ---------- */
section { padding: 36px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-rounded);
  font-size: 18px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.feature-card--soon {
  position: relative;
  border-style: dashed;
  background: transparent;
}

.feature-card--soon .icon { opacity: 0.7; }
.feature-card--soon h3 { color: var(--muted); }

.soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass-soft);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- Phone mockups (zigzag row) ---------- */
.zigzag {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 6px;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.zigzag-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.zigzag-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--brass) 0%, transparent 70%);
  opacity: 0.16;
  filter: blur(30px);
  animation: glow-pulse 3.5s ease-in-out infinite;
}

.zigzag-glow svg {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--brass);
  opacity: 0.5;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.32; transform: scale(1.15); }
}

.zigzag-item {
  position: relative;
  width: 150px;
  z-index: 1;
  transition: transform 0.25s ease, z-index 0s, opacity 0.6s ease;
}

.zigzag-item:nth-child(odd) { transform: translateY(-22px); }
.zigzag-item:nth-child(even) { transform: translateY(22px); }

/* Reveal-on-scroll: only takes effect once JS marks the section pre-reveal,
   so content still shows immediately if JS fails or is disabled. */
.zigzag.pre-reveal .zigzag-item { opacity: 0; }
.zigzag.pre-reveal.in-view .zigzag-item { opacity: 1; }
.zigzag.in-view .zigzag-item:nth-child(2) { transition-delay: 0s; }
.zigzag.in-view .zigzag-item:nth-child(3) { transition-delay: 0.08s; }
.zigzag.in-view .zigzag-item:nth-child(4) { transition-delay: 0.16s; }
.zigzag.in-view .zigzag-item:nth-child(5) { transition-delay: 0.24s; }
.zigzag.in-view .zigzag-item:nth-child(6) { transition-delay: 0.32s; }
.zigzag.in-view .zigzag-item:nth-child(7) { transition-delay: 0.4s; }

.zigzag.in-view .zigzag-item .phone {
  animation: float-bob 4.5s ease-in-out infinite;
}

.zigzag.in-view .zigzag-item:nth-child(2) .phone { animation-delay: 0s; }
.zigzag.in-view .zigzag-item:nth-child(3) .phone { animation-delay: 0.3s; }
.zigzag.in-view .zigzag-item:nth-child(4) .phone { animation-delay: 0.6s; }
.zigzag.in-view .zigzag-item:nth-child(5) .phone { animation-delay: 0.9s; }
.zigzag.in-view .zigzag-item:nth-child(6) .phone { animation-delay: 1.2s; }
.zigzag.in-view .zigzag-item:nth-child(7) .phone { animation-delay: 1.5s; }

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

.zigzag-item:hover {
  transform: translateY(-10px) scale(1.06) !important;
  z-index: 20 !important;
}

.zigzag-item:hover .phone {
  animation-play-state: paused;
  box-shadow: 0 30px 60px -14px rgba(210, 106, 147, 0.55);
}

@media (max-width: 760px) {
  .zigzag-item { width: 128px; }
  .zigzag-item:nth-child(odd) { transform: translateY(-16px); }
  .zigzag-item:nth-child(even) { transform: translateY(16px); }
}

@media (max-width: 560px) {
  .zigzag { gap: 22px 10px; padding: 16px 12px 20px; }
  .zigzag-glow { display: none; }
  .zigzag-item { width: 40%; }
  .zigzag-item:nth-child(odd),
  .zigzag-item:nth-child(even) { transform: none; }
  .zigzag-item:hover { transform: translateY(-6px) !important; }
}

.phone {
  background: var(--surface);
  border: 8px solid var(--surface);
  border-radius: 30px;
  box-shadow: 0 24px 48px -16px rgba(58, 38, 50, 0.35);
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  position: relative;
}

.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

.phone-screen {
  background: var(--bg);
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-caption {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 15px;
}

.mock-row { display: flex; gap: 8px; }
.mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); flex-shrink: 0; }
.mock-pill { background: var(--surface2); border-radius: 10px; height: 12px; flex: 1; }
.mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  flex: 1;
}
.mock-card .mock-title { height: 10px; width: 60%; background: var(--line); border-radius: 6px; margin-bottom: 8px; }
.mock-card .mock-line { height: 8px; background: var(--surface2); border-radius: 6px; margin-bottom: 6px; }
.mock-card .mock-line:last-child { width: 70%; }
.mock-tile { background: var(--surface2); border-radius: 12px; aspect-ratio: 1; }
.mock-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.mock-chip { background: var(--brass); color: var(--on-brass); border-radius: 999px; padding: 6px 12px; font-size: 10px; font-weight: 700; display: inline-block; font-family: var(--font-rounded); }
.mock-heart { margin-left: auto; font-size: 12px; color: var(--brass-soft); }
.mock-tabbar { display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.mock-tabbar span { width: 18px; height: 18px; border-radius: 6px; background: var(--surface2); }
.mock-tabbar span.active { background: var(--brass); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  text-align: center;
}

.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--brass-soft);
  font-family: var(--font-rounded);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { font-family: var(--font-rounded); font-size: 16px; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Footer CTA ---------- */
.footer-cta {
  background: var(--surface2);
  border-radius: 28px;
  padding: 36px 32px;
  text-align: center;
  margin: 8px auto 32px;
}

.footer-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
}

.footer-cta p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}

footer .foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text);
}

footer .foot-brand .bloom-mark { width: 22px; height: 22px; color: var(--brass); flex-shrink: 0; }

footer .foot-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

footer .copyright {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}

.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.legal h2 {
  font-family: var(--font-rounded);
  font-size: 20px;
  margin: 26px 0 10px;
}

.legal p, .legal li {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal ul { padding-left: 20px; }
.legal a { color: var(--brass-soft); }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-rounded);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}
