/* Leavoo — design system (Sakura Pink, light default) */
:root {
  --bg:        #fdf7fa;
  --surface:   #ffffff;
  --surface-2: #faf3f7;
  --border:    #f0e3eb;
  --border-2:  #e7d3df;
  --text:      #0a0a0a;
  --text-2:    #2e2e2e;
  --muted:     #6b6b6b;
  --muted-2:   #9a9a9a;
  --accent:    #db2777;
  --accent-2:  #ec4899;
  --accent-3:  #fbcfe8;
  --ok:        #16a34a;
  --warn:      #f59e0b;
  --danger:    #dc2626;
  --shadow:    0 1px 2px rgba(15, 10, 18, 0.04), 0 8px 24px rgba(219, 39, 119, 0.06);
  --radius:    14px;
  --radius-sm: 10px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       420ms;
}
[data-theme="dark"] {
  --bg:        #0f0a12;
  --surface:   #1a111d;
  --surface-2: #221624;
  --border:    #2d1d31;
  --border-2:  #3a2640;
  --text:      #ffffff;
  --text-2:    #e8e8e8;
  --muted:     #a8a8a8;
  --muted-2:   #6e6e6e;
  --accent:    #ec4899;
  --accent-2:  #f472b6;
  --accent-3:  #fbcfe8;
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(236, 72, 153, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  transition: all var(--dur) var(--ease);
  background: transparent; color: var(--text);
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(219, 39, 119, 0.25); }
.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--lg { padding: 14px 28px; font-size: 15px; }

/* ---------- layout primitives ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 247, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text);
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--accent-3); color: var(--accent);
  border-radius: 999px; font-size: 12px; font-weight: 500;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 20px;
}
.hero__title em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: 18px; color: var(--muted);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.6;
}
.hero__cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- features ---------- */
.features { padding: 64px 0; }
.features__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all var(--dur) var(--ease);
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.feat-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-3); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.feat-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- pricing ---------- */
.pricing { padding: 64px 0 96px; }
.pricing__head { text-align: center; margin-bottom: 48px; }
.pricing__title { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.pricing__sub { color: var(--muted); font-size: 16px; }
.tier-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.tier--featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(219, 39, 119, 0.12); }
.tier__name { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.tier__size { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.tier__price { font-size: 32px; font-weight: 700; margin: 16px 0 4px; }
.tier__price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tier__list { list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--text-2); }
.tier__list li { padding: 8px 0; border-top: 1px solid var(--border); }
.tier__list li:first-child { border-top: 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border); padding: 32px 0;
  text-align: center; color: var(--muted-2); font-size: 13px;
}

/* ---------- auth pages ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color var(--dur) var(--ease);
}
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted-2); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.btn-google {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); cursor: pointer; font-family: inherit; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--dur) var(--ease);
}
.btn-google:hover { border-color: var(--accent); background: var(--surface-2); }
.auth-foot { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); z-index: 100;
  font-size: 14px;
}
.toast[data-type="error"] { background: var(--danger); color: #fff; }

/* ---------- app shell ---------- */
.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.app-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.app-content { padding: 32px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }
.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--surface); border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.empty-state h2 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { color: var(--muted); margin: 0 0 24px; }
