/* Lumora website — colors match the app's "bloom" palette (src/theme/palettes.ts) */
:root {
  --bg: #FBF7F5;
  --bg-soft: #FDF4F6;
  --card: #FFFFFF;
  --border: #EDDBD9;
  --primary: #B8336A;
  --primary-dark: #9A2757;
  --primary-light: #F6E1E8;
  --accent: #E8926F;
  --fg: #2A1620;
  --muted: #86656E;
  --gradient: linear-gradient(135deg, #B8336A, #E8926F);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(184, 51, 106, 0.12);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--primary); }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--fg); padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }

/* Store badges */
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store {
  display: flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 12px 22px; border-radius: 12px;
  background: #1E1419; color: #fff; border: 1.5px solid #1E1419;
  box-shadow: 0 8px 20px rgba(30, 20, 25, 0.18);
  transition: transform .15s, box-shadow .15s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30, 20, 25, 0.24); }
.store svg { width: 28px; height: 28px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.2; }
.store strong { display: block; font-size: 19px; line-height: 1.25; }
.store.soon {
  background: transparent; color: var(--muted); border-color: var(--border);
  box-shadow: none; cursor: default;
}
.store.soon:hover { transform: none; }
.store.soon svg { fill: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: .02em; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { margin-bottom: 48px; }
.section-head h2 { margin: 8px 0 12px; }
.soft { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero .lead { margin-bottom: 32px; }
.hero .stores { justify-content: flex-start; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--gradient); opacity: .18; filter: blur(40px); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 280px; border-radius: 40px; padding: 12px;
  background: #1E1419; box-shadow: 0 30px 60px rgba(42, 22, 32, 0.25);
}
.screen { border-radius: 30px; background: var(--bg); padding: 22px 16px; min-height: 520px; overflow: hidden; }
.screen .hi { font-size: 12px; color: var(--muted); }
.screen .title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.m-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.m-hero { background: var(--gradient); color: #fff; border: 0; }
.m-hero .k { font-size: 11px; opacity: .85; }
.m-hero .v { font-size: 16px; font-weight: 700; margin-top: 2px; }
.m-row { display: flex; gap: 8px; margin-top: 10px; }
.m-chip { font-size: 10px; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; }
.m-label { font-size: 11px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.m-step { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.m-step + .m-step { margin-top: 9px; }
.m-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.m-check.done { background: var(--primary); border-color: var(--primary); }
.m-step.done span { color: var(--muted); text-decoration: line-through; }
.m-moods { display: flex; justify-content: space-between; font-size: 22px; }
.m-moods span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.m-moods .sel { background: var(--primary-light); }
.m-streak { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; }
.m-streak em { font-style: normal; color: var(--accent); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--gradient);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--gradient); color: #fff; border-radius: 28px;
  padding: 56px 32px; text-align: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { opacity: .9; margin-bottom: 28px; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: var(--primary-light); }

/* ---------- Download page ---------- */
.download { padding: 96px 0 72px; }
.download .eyebrow { color: var(--fg); font-weight: 500; font-size: 15px; }
.download h1 { margin: 14px 0 16px; }
.download .lead { margin-bottom: 36px; }
.download .stores { margin-bottom: 14px; }
.small-note { font-size: 13px; color: var(--muted); }
.qr-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 36px; padding: 22px 22px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.qr-card #qr { width: 128px; height: 128px; }
.qr-card #qr img, .qr-card #qr canvas { width: 128px !important; height: 128px !important; }
.qr-card span { font-size: 12px; color: var(--muted); }

.requirements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.req { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.req strong { display: block; font-size: 15px; }
.req span { font-size: 13px; color: var(--muted); }

/* Notify form */
.notify h2 { font-size: 26px; margin-bottom: 8px; }
.notify p { color: var(--muted); margin-bottom: 24px; }
.notify form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.notify input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--fg);
}
.notify input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding: 72px 20px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #4A3440; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--primary); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, auto); gap: 64px; }
.footer .brand { color: var(--fg); font-weight: 700; margin-bottom: 14px; }
.footer .about { color: var(--muted); font-size: 14px; max-width: 300px; margin-bottom: 14px; }
.footer .mail { color: var(--primary); font-size: 14px; font-weight: 600; }
.footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.footer li a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
}
.footer-bottom p:last-child { max-width: 460px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .stores { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 0; }
  .nav .btn { display: none; }
  section { padding: 64px 0; }
  .features, .steps, .requirements { grid-template-columns: 1fr; }
  .notify form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cta { padding: 44px 20px; border-radius: 22px; }
}
.faq details p a { color: var(--primary); font-weight: 600; }

/* Keep grid children from forcing horizontal overflow on narrow screens */
.hero-grid > *, .features > *, .steps > *, .requirements > *, .footer-grid > * { min-width: 0; }
body { overflow-x: hidden; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .store { min-width: 0; flex: 1 1 160px; max-width: 240px; padding: 10px 16px; }
  .phone { width: 260px; }
}
.store strong, .store small { white-space: nowrap; }
@media (max-width: 720px) { .store strong { font-size: 16px; } .store svg { width: 24px; height: 24px; } }
