:root {
  --ink: #1f2430;
  --muted: #6b7280;
  --brand: #ff6b5e;
  --brand-dark: #e2564a;
  --bg: #fff7f4;
  --card: #ffffff;
  --line: #f0e2dd;
  --ok: #2f9e64;
  --shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--brand-dark); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.brand { font-weight: 800; letter-spacing: -0.5px; color: var(--brand); }

/* landing */
.hero { text-align: center; padding: 90px 20px 40px; }
.hero h1 { font-size: 3.4rem; margin: 0 0 8px; letter-spacing: -1.5px; }
.hero .tag { font-size: 1.5rem; color: var(--muted); margin-bottom: 28px; }
.hero .tag b { color: var(--ink); }
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; box-shadow: var(--shadow);
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 80px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature h3 { margin: 0 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.foot { text-align: center; color: var(--muted); padding: 40px 20px; font-size: .85rem; }

/* app */
.appbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.appbar .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.appbar nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.appbar nav button {
  background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .9rem;
}
.appbar nav button.active { background: var(--bg); color: var(--ink); }
.view { padding: 24px 0 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { margin-top: 0; }
label { display: block; font-size: .82rem; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fff;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill.ok { background: #e5f6ec; color: var(--ok); }
.pill.warn { background: #fdecea; color: var(--brand-dark); }
.pill.muted { background: #eef0f3; color: var(--muted); }
.swipe-card { text-align: center; padding: 30px; }
.swipe-card h2 { font-size: 1.6rem; margin: 4px 0; }
.swipe-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.msg { padding: 8px 12px; border-radius: 12px; margin: 6px 0; max-width: 75%; }
.msg.me { background: var(--brand); color: #fff; margin-left: auto; }
.msg.them { background: #eef0f3; }
.muted { color: var(--muted); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }
.list-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list-item:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
