/* ============================================================
   Lulliko — original design system
   Warm family palette: lavender / cream / peach / mint.
   All layout, components and visuals are original work for
   Lulliko. Concept-level references are documented in DESIGN.md.
   ============================================================ */
:root {
  --bg: #fdfaf7;
  --surface: #ffffff;
  --ink: #332f3b;
  --ink-soft: #726c7d;
  --lull: #8a76c2;
  --lull-deep: #5f4d99;
  --lull-soft: #f1ecfa;
  --peach: #ffd9c0;
  --peach-deep: #c97b4e;
  --mint: #cdeadd;
  --mint-deep: #3e7d61;
  --gold: #ffe9b3;
  --line: #ece6f2;
  --shadow: 0 10px 30px rgba(95, 77, 153, 0.10);
  --radius: 18px;
  --max: 1060px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 18px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; text-decoration: none;
  color: var(--lull-deep); letter-spacing: 0.4px;
}
.logo .moon { color: var(--lull); }
nav .links { display: flex; align-items: center; gap: 24px; }
nav .links a.plain {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
}
nav .links a.plain:hover { color: var(--lull-deep); }

/* Language switcher */
.lang {
  position: relative; display: inline-block;
}
.lang > button {
  display: flex; align-items: center; gap: 6px;
  background: var(--lull-soft); color: var(--lull-deep);
  border: none; border-radius: 999px; padding: 8px 14px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.lang .menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  min-width: 150px; overflow: hidden; padding: 6px;
}
.lang.open .menu { display: block; }
.lang .menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; border-radius: 8px;
  padding: 9px 12px; font-size: 0.92rem; color: var(--ink);
  cursor: pointer;
}
.lang .menu button:hover { background: var(--lull-soft); }
.lang .menu button.active { color: var(--lull-deep); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--lull), var(--lull-deep));
  color: #fff; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(95, 77, 153, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(95, 77, 153, 0.30); }
.btn.ghost {
  background: transparent; color: var(--lull-deep);
  border: 1.6px solid var(--lull); box-shadow: none;
}
.btn.ghost:hover { background: var(--lull-soft); }
.btn.small { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(560px 300px at 12% 0%, rgba(255, 217, 192, 0.35), transparent 65%),
    radial-gradient(620px 340px at 88% 8%, rgba(205, 234, 221, 0.40), transparent 65%),
    radial-gradient(520px 300px at 50% 100%, rgba(241, 236, 250, 0.9), transparent 70%);
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 18px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: var(--lull-deep);
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.16; font-weight: 800; letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--lull); }
.hero .sub {
  max-width: 660px; margin: 22px auto 36px;
  font-size: 1.14rem; color: var(--ink-soft);
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Voice demo card — original composition */
.demo {
  margin: 60px auto 0; max-width: 600px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.demo .top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--lull-soft);
  font-weight: 700; color: var(--lull-deep); font-size: 0.95rem;
}
.demo .top .time { font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }
.demo .heard {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 22px 6px; color: var(--ink-soft);
}
.demo .heard .mic {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), #ffb98f);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.demo .heard i { font-style: italic; padding-top: 6px; }
.demo .parsed { padding: 10px 22px 22px; display: grid; gap: 10px; }
.demo .chip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px;
}
.demo .chip .k { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.demo .chip.bottle .k { color: var(--peach-deep); }
.demo .chip.sleep .k { color: var(--lull); }
.demo .chip.who   .k { color: var(--mint-deep); }
.demo .chip .v { font-weight: 700; }
.demo .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; border-top: 1px dashed var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.tint {
  background: linear-gradient(180deg, var(--surface), #fbf8ff);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
h2.sec { font-size: clamp(1.7rem, 3.4vw, 2.3rem); text-align: center; letter-spacing: -0.3px; }
p.sec-sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 12px auto 52px; }

/* Pains */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.pain {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.pain .face { font-size: 1.7rem; }
.pain b { display: block; margin: 10px 0 6px; font-size: 1.04rem; }
.pain p { color: var(--ink-soft); font-size: 0.94rem; }
.pain .answer {
  display: inline-block; margin-top: 12px; padding: 4px 12px;
  background: var(--mint); color: var(--mint-deep);
  border-radius: 999px; font-size: 0.83rem; font-weight: 700;
}

/* Features */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.feat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; margin-bottom: 14px;
}
.feat:nth-child(3n+1) .ico { background: var(--lull-soft); }
.feat:nth-child(3n+2) .ico { background: var(--peach); }
.feat:nth-child(3n)   .ico { background: var(--mint); }
.feat h3 { font-size: 1.08rem; margin-bottom: 7px; }
.feat p { color: var(--ink-soft); font-size: 0.94rem; }

/* Privacy strip */
.privacy {
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  max-width: 860px; margin: 0 auto; text-align: center;
}
.privacy .big { font-size: 3rem; }
.privacy h3 { font-size: 1.4rem; margin-bottom: 10px; }
.privacy p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

/* Waitlist */
.waitlist {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px 36px; box-shadow: var(--shadow);
}
.waitlist form { display: flex; gap: 10px; margin-top: 22px; }
.waitlist input {
  flex: 1; padding: 13px 18px; border-radius: 999px;
  border: 1.6px solid var(--line); font-size: 0.98rem; outline: none;
}
.waitlist input:focus { border-color: var(--lull); }
.waitlist .note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
footer .cols {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: var(--ink-soft); font-size: 0.9rem;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--lull-deep); }
footer .disclaimer {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 0.8rem; color: var(--ink-soft); max-width: 820px;
}

/* ---------- Pricing page ---------- */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px; max-width: 780px; margin: 0 auto; align-items: stretch;
}
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 36px 30px; position: relative;
  display: flex; flex-direction: column;
}
.plan.hot {
  border: 2px solid var(--lull);
  box-shadow: var(--shadow);
}
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lull), var(--lull-deep));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; color: var(--ink-soft); font-weight: 700; }
.plan .price { font-size: 2.3rem; font-weight: 800; margin: 8px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.plan .per { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; font-size: 0.94rem; }
.plan li::before { content: "✓"; color: var(--mint-deep); font-weight: 800; }
.plan li.off { color: var(--ink-soft); }
.plan li.off::before { content: "—"; color: var(--line); }
.plan .btn { margin-top: auto; text-align: center; }
.compare-note {
  max-width: 720px; margin: 36px auto 0; text-align: center;
  color: var(--ink-soft); font-size: 0.92rem;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 64px 24px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; color: var(--lull-deep); }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.97rem; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal .callout {
  background: var(--lull-soft); border-radius: 12px;
  padding: 16px 20px; margin: 20px 0; color: var(--lull-deep); font-size: 0.93rem;
}

@media (max-width: 720px) {
  nav .links a.plain { display: none; }
  .waitlist form { flex-direction: column; }
}
