:root {
  --bg: #f7f6f2;
  --fg: #1c1b18;
  --muted: #6b675e;
  --line: #e2dfd6;
  --card: #ffffff;
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --done: #9a968c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --fg: #ece9e1;
    --muted: #9c978b;
    --line: #2a2823;
    --card: #1d1c17;
    --accent: #6f9bff;
    --accent-ink: #0d1424;
    --done: #6b675e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: inherit; }
.nav {
  max-width: 880px; margin: 0 auto; padding: 20px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-size: 20px; }
.nav nav a { margin-left: 20px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--fg); }
main { max-width: 880px; margin: 0 auto; padding: 0 16px 64px; }
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.lede { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.cta {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.app-section { padding: 8px 0 56px; }
.app {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  max-width: 600px; margin: 0 auto; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.add { display: flex; border-bottom: 1px solid var(--line); }
.add input {
  flex: 1; border: 0; background: transparent; color: var(--fg);
  padding: 18px 20px; font-size: 18px; outline: none; min-width: 0;
}
.add button, .bar button {
  border: 0; background: transparent; color: var(--accent); font: inherit;
  font-weight: 600; padding: 0 20px; cursor: pointer;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: 0; }
.list .check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  background: transparent; cursor: pointer; flex: none; padding: 0;
  display: grid; place-items: center; color: var(--accent-ink);
}
.list li.done .check { background: var(--accent); border-color: var(--accent); }
.list .text { flex: 1; cursor: default; word-break: break-word; }
.list li.done .text { color: var(--done); text-decoration: line-through; }
.list .edit {
  flex: 1; font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--accent); outline: none; padding: 0;
}
.list .remove {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 20px; line-height: 1; padding: 0 4px; opacity: 0;
}
.list li:hover .remove, .list li:focus-within .remove { opacity: 1; }
.list .empty { color: var(--muted); justify-content: center; padding: 28px 20px; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
  flex-wrap: wrap;
}
.bar button { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.bar button.active { color: var(--fg); background: var(--bg); }
.bar .ghost:hover { color: var(--fg); }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  padding: 24px 0 56px;
}
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); }
.faq h2 { font-size: 26px; letter-spacing: -0.02em; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 40px; }
