/* ============================================================
   Cosmetry — marketing site
   Brand: deep purple #493069 + lavender #D7BFEB, Playfair + Inter
   ============================================================ */

:root {
  --purple: #493069;
  --purple-2: #5e4585;
  --lavender: #d7bfeb;
  --lavender-soft: #f2ebfc;
  --bg: #fafaff;
  --card: #ffffff;
  --ink: #26202e;
  --muted: #6a6577;
  --line: #ece7f2;
  --danger: #d64545;
  --warn: #e0912f;
  --ok: #3ba55d;

  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(73, 48, 105, 0.12);
  --shadow-sm: 0 6px 20px rgba(73, 48, 105, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
em { font-style: normal; color: var(--purple); font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 15px; border-radius: 999px; padding: 12px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--purple-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--purple); border: 1.5px solid var(--lavender); }
.btn--ghost:hover { background: var(--lavender-soft); }
.btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.brand__mark { color: var(--purple); display: inline-flex; }
.brand__name { font-size: 19px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav__links a:hover { color: var(--purple); }
.nav__cta { margin-left: auto; }
.nav__toggle { display: none; margin-left: auto; background: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--purple); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700;
  color: var(--purple); margin-bottom: 16px;
}
.eyebrow--light { color: var(--lavender); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 62px); }
.grad {
  background: linear-gradient(100deg, var(--purple), #9a6fc7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 22px 0 30px; max-width: 30em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 22px; list-style: none; margin-top: 28px; flex-wrap: wrap; }
.hero__badges li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(59,165,93,.15);
}

/* ---------- Phone mockup ---------- */
.hero__phone { position: relative; display: flex; justify-content: center; }
.hero__mochi {
  position: absolute; top: -44px; right: 18px; width: 96px; height: 96px;
  z-index: 3; filter: drop-shadow(0 10px 18px rgba(73,48,105,.30));
  animation: mochiFloat 4.5s ease-in-out infinite;
}
@keyframes mochiFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
.phone {
  position: relative; width: 290px; height: 588px; border-radius: 46px;
  background: #1a1024; padding: 12px; box-shadow: 0 40px 90px rgba(73,48,105,.35);
  z-index: 2;
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #f6f1fb, #eee6f7);
  padding: 46px 16px 18px; display: flex; flex-direction: column; gap: 11px;
}
.phone__glow {
  position: absolute; inset: -30px; z-index: 1;
  background: radial-gradient(closest-side, rgba(215,191,235,.6), transparent 70%);
  filter: blur(10px);
}
.app-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.app-hi { font-size: 12px; color: var(--muted); }
.app-title { font-size: 22px; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; }
.app-badge { background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.app-card {
  display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px;
  padding: 11px; box-shadow: 0 4px 14px rgba(73,48,105,.06);
}
.app-thumb { width: 44px; height: 44px; border-radius: 11px; background: #e7e7e7; flex: none; }
.app-card__body { flex: 1; min-width: 0; }
.app-card__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.app-card__meta { font-size: 11.5px; color: var(--muted); }
.pill { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; flex: none; }
.pill--warn { background: #fdf0e0; color: var(--warn); }
.pill--ok { background: #e6f6ec; color: var(--ok); }
.app-warn {
  display: flex; align-items: center; gap: 7px; background: #fbe9e9; color: var(--danger);
  font-size: 12px; font-weight: 600; padding: 10px 12px; border-radius: 13px;
}
.app-warn b { font-weight: 800; }
.app-chat {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--muted); font-size: 12.5px; padding: 12px 14px;
  border-radius: 14px; box-shadow: 0 4px 14px rgba(73,48,105,.06);
}
.app-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 0 3px rgba(215,191,235,.4); }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 17px; color: var(--purple); font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--lavender-soft); }
.section--dark { background: linear-gradient(160deg, #3a2555, #241537); color: #fff; }
.section__head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section--dark h2 { color: #fff; }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lavender-soft); color: var(--purple); margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--purple); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split__copy h2 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 12px 0 16px; }
.split__copy p { color: var(--muted); font-size: 16px; }
.section--dark .split__copy p.muted { color: rgba(255,255,255,.75); }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15.5px; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800;
  background: var(--lavender); color: var(--purple);
}
.checklist--light li::before { background: rgba(215,191,235,.25); color: var(--lavender); }

/* AI chat demo card */
.chat-demo {
  background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line);
}
.bubble { padding: 13px 16px; border-radius: 16px; font-size: 14.5px; max-width: 88%; }
.bubble--user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai { align-self: flex-start; background: var(--lavender-soft); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble--ai b { color: var(--purple); }
.chip { display: inline-block; margin: 8px 6px 0 0; background: #fff; border: 1px solid var(--lavender);
  color: var(--purple); font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

.lock { display: grid; place-items: center; }
.lock svg { color: var(--lavender);
  filter: drop-shadow(0 12px 30px rgba(215,191,235,.4));
  background: rgba(255,255,255,.06); border-radius: 28px; padding: 34px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px;
}
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; padding: 16px 30px 16px 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--purple); font-weight: 400; transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); font-size: 15px; padding-bottom: 18px; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; background: var(--lavender-soft); text-align: center; }
.cta__inner h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta__inner p { color: var(--muted); margin: 14px 0 28px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: #1e1330; color: #cdbfe0; padding: 52px 0 30px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand .brand__mark { color: var(--lavender); }
.footer__brand { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer__brand .brand__name { color: #fff; font-size: 19px; font-weight: 800; }
.footer__tag { width: 100%; color: #a396b8; font-size: 14px; margin-top: 4px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: #cdbfe0; font-size: 14.5px; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__legal p { color: #8b7da6; font-size: 12.5px; margin-top: 6px; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: 40px 0 80px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-weight: 600; margin-bottom: 22px; }
.legal__back:hover { text-decoration: underline; }
.legal__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.legal__card h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); color: var(--purple); }
.legal__meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.legal__toc { background: var(--lavender-soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 26px 0 8px; }
.legal__toc h2 { font-size: 16px; color: var(--purple); margin-bottom: 12px; }
.legal__toc ul { columns: 2; column-gap: 30px; list-style: none; }
.legal__toc li { font-size: 13.5px; color: var(--purple); opacity: .8; padding: 3px 0; break-inside: avoid; }
.legal__body { margin-top: 8px; }
.legal__body > p { margin-top: 16px; color: #3a3442; font-size: 15.5px; }
.legal__body section { margin-top: 30px; }
.legal__body h2 { font-size: 20px; color: var(--purple); margin-bottom: 10px; }
.legal__body h3 { font-size: 16px; color: var(--purple); margin: 16px 0 6px; }
.legal__body p { color: #3a3442; font-size: 15.5px; margin-bottom: 8px; }
.legal__body ul { margin: 8px 0 0 22px; display: grid; gap: 6px; }
.legal__body li { color: #3a3442; font-size: 15px; }
.legal__body a { color: var(--purple); text-decoration: underline; }
.callout { background: var(--lavender-soft); border-left: 4px solid var(--purple); padding: 14px 16px; border-radius: 10px; font-size: 14.5px; margin: 12px 0; color: #3a3442; }
.callout--warn { border-left-color: var(--warn); background: #fdf4e7; }
.pricebox { background: var(--lavender-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 12px 0; }
.pricebox .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.pricebox .row b { color: var(--purple); }
@media (max-width: 640px) { .legal__toc ul { columns: 1; } .legal__card { padding: 26px 20px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    gap: 4px; background: #fff; padding: 14px 24px 22px; border-bottom: 1px solid var(--line); margin: 0;
  }
  .nav.open .nav__links a { padding: 10px 0; font-size: 17px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__phone { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse .split__copy { order: 0; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .phone { width: 250px; height: 512px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__mochi { animation: none; }
}
