/* Mosaiq Mind — same palette and type as the iOS app (Mosaiq/Utilities/AppTheme.swift). */

@font-face { font-family: "Dancing Script"; src: url("fonts/DancingScript-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lora"; font-style: italic; src: url("fonts/Lora-Italic.ttf") format("truetype"); font-display: swap; }

:root {
  --background: #fcf7f3;
  --foreground: #4a4a4a;
  --card: #f9f2ec;
  --border: #eae0d7;
  --rose: #eab8c9;
  --rose-dark: #c97f9a;
  --rose-pale: #f7d6e2;
  --lavender: #dae4f1;
  --lilac: #c6c4eb;
  --sage: #d8e9da;
  --muted: #737373;
  --subtle: #8a8a8a;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(201, 127, 154, 0.12);
  --script: "Dancing Script", cursive;
  --serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
a:hover { color: #a9607b; }

.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; }

/* ── Falling petals (same idea as the app's BlossomBackground) ─────────────── */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petal {
  position: absolute; top: -40px; width: 14px; height: 11px;
  background: var(--rose);
  border-radius: 80% 0 80% 0;
  opacity: .55;
  animation: fall linear infinite, sway ease-in-out infinite alternate;
}
.petal:nth-child(3n) { background: var(--rose-pale); }
.petal:nth-child(4n) { background: var(--lilac); opacity: .45; }
.petal:nth-child(5n) { width: 10px; height: 8px; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes sway { from { margin-left: -30px; } to { margin-left: 30px; } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }

main, header, footer { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foreground); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.brand span { font: 30px/1 var(--script); }
.nav { display: flex; gap: 22px; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--rose-dark); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font: 17px/1 var(--serif);
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rose-dark); color: #fff; box-shadow: 0 8px 20px rgba(201, 127, 154, .35); }
.btn-primary:hover { color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--foreground); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--foreground); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin: 0 0 10px; }
.hero h1 { font: 76px/1.05 var(--script); margin: 0 0 14px; font-weight: 400; }
.tagline { font: italic 24px/1.4 var(--serif); color: var(--muted); margin: 0 0 22px; }
.hero p.lead { margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { font-size: 14px; color: var(--subtle); margin-top: 14px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: 36px; box-shadow: 0 30px 60px rgba(201, 127, 154, .22); aspect-ratio: 1; object-fit: cover; }

/* ── Sections ───────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-title { font: 52px/1.1 var(--script); text-align: center; margin: 0 0 10px; font-weight: 400; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 44px; max-width: 36em; font-style: italic; }

.card {
  background: rgba(249, 242, 236, .85); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

/* Regulate → organize → act */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step .num { font: 44px/1 var(--script); color: var(--rose-dark); }
.step h3 { font: 34px/1.1 var(--script); margin: 6px 0 8px; font-weight: 400; }
.step p { margin: 0; color: var(--muted); font-size: 17px; }
.step:nth-child(1) { background: rgba(247, 214, 226, .45); }
.step:nth-child(2) { background: rgba(218, 228, 241, .6); }
.step:nth-child(3) { background: rgba(216, 233, 218, .6); }

/* Chat preview */
.meet .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.phone {
  background: var(--background); border: 1px solid var(--border); border-radius: 40px;
  padding: 26px 20px; box-shadow: 0 24px 50px rgba(74, 74, 74, .10); max-width: 380px; margin: 0 auto;
}
.phone-head { text-align: center; margin-bottom: 18px; }
.phone-head strong { display: block; font: 30px/1 var(--script); font-weight: 400; }
.phone-head small { color: var(--subtle); font-size: 13px; }
.bubble { padding: 11px 16px; border-radius: 20px; margin: 8px 0; font-size: 15.5px; line-height: 1.45; max-width: 85%; opacity: 0; transform: translateY(6px); animation: pop .5s ease forwards; }
.bubble.user { background: var(--rose); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.agent { background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble:nth-child(2) { animation-delay: .3s; } .bubble:nth-child(3) { animation-delay: 1.6s; }
.bubble:nth-child(4) { animation-delay: 3.1s; } .bubble:nth-child(5) { animation-delay: 4.6s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: 1; transform: none; } }
.companions { display: flex; gap: 14px; margin: 22px 0 0; }
.companion { flex: 1; padding: 18px 20px; }
.companion strong { font: 30px/1 var(--script); font-weight: 400; display: block; }
.companion span { color: var(--subtle); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature h3 { font: 30px/1.1 var(--script); margin: 0 0 8px; font-weight: 400; }
.feature p { margin: 0; color: var(--muted); font-size: 16.5px; }
.feature .dot { width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; }

/* Safety + privacy band */
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.band h3 { font: 34px/1.1 var(--script); margin: 0 0 10px; font-weight: 400; }
.band p { margin: 0 0 10px; font-size: 17px; }
.band ul { margin: 0; padding-left: 20px; font-size: 17px; }

/* Final CTA */
.closing { text-align: center; }
.closing h2 { font: 58px/1.1 var(--script); margin: 0 0 12px; font-weight: 400; }
.closing p { color: var(--muted); font-style: italic; margin: 0 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 44px; font-size: 15px; color: var(--subtle); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--rose-dark); }

/* ── Legal / support pages ─────────────────────────────────────────────────── */
.page { padding: 24px 0 80px; }
.page h1 { font: 60px/1.1 var(--script); margin: 0 0 6px; font-weight: 400; }
.page .updated { color: var(--subtle); font-style: italic; margin: 0 0 28px; }
.page h2 { font: 34px/1.2 var(--script); margin: 40px 0 8px; font-weight: 400; color: var(--rose-dark); }
.page p, .page li { font-size: 17px; }
.page li { margin: 6px 0; }
.page .card { margin: 24px 0; }
.crisis { background: rgba(247, 214, 226, .5); border-color: var(--rose); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-size: 18px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .hero { padding-top: 10px; }
  .hero .wrap, .meet .wrap, .band .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .hero h1 { font-size: 58px; }
  .tagline { font-size: 21px; }
  .steps, .features { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .section-title { font-size: 44px; }
  .closing h2 { font-size: 46px; }
  .page h1 { font-size: 48px; }
}
