:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfa;
  --ink: #191919;
  --ink-2: #37352f;
  --muted: #787774;
  --line: #e9e9e7;
  --line-strong: #dcdcd9;
  --hover: #f1f1ef;
  --btn: #191919;
  --btn-ink: #ffffff;
  --tag-gray: #f1f1ef; --tag-gray-ink: #5f5e5b;
  --tag-green: #dbeddb; --tag-green-ink: #1c3829;
  --tag-yellow: #fbf3db; --tag-yellow-ink: #402c1b;
  --tag-blue: #d3e5ef; --tag-blue-ink: #183347;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --bg-alt: #202020;
    --ink: #f0efed;
    --ink-2: #d4d4d2;
    --muted: #9b9a97;
    --line: #2f2f2f;
    --line-strong: #3a3a3a;
    --hover: #2a2a2a;
    --btn: #f0efed;
    --btn-ink: #191919;
    --tag-gray: #373737; --tag-gray-ink: #d4d4d2;
    --tag-green: #2b593f; --tag-green-ink: #e3f1e6;
    --tag-yellow: #564328; --tag-yellow-ink: #f7ecd6;
    --tag-blue: #28456c; --tag-blue-ink: #dde8f5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .15s ease;
}
body.ready { opacity: 1; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--btn); border-radius: 8px;
  background: var(--btn); color: var(--btn-ink);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}
.btn:hover { opacity: .85; }
.btn:focus-visible, .lang button:focus-visible, input:focus-visible, summary:focus-visible, .nav a:focus-visible { outline: 2px solid #2383e2; outline-offset: 2px; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 14px; border-radius: 6px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { opacity: 1; background: var(--hover); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: var(--hover); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.lang button {
  min-width: 38px; height: 32px; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--line-strong); }
.lang button.active { background: var(--hover); color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; margin-bottom: 24px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--bg);
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.035em; max-width: 880px; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 640px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.address { margin-top: 22px; font-size: 14px; color: var(--muted); }
.address code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px;
  color: var(--ink); background: var(--hover); padding: 3px 7px; border-radius: 5px; overflow-wrap: anywhere;
}
.tagpart { color: #eb5757; }

/* Board (Notion-like database) */
.board {
  margin: 64px auto 0; max-width: 920px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 12px 40px -18px rgba(15, 15, 15, .14);
  overflow: hidden;
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 14px; }
.board-title { font-size: 20px; font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.board-view { font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 4px; white-space: nowrap; }
.table { border-top: 1px solid var(--line); font-size: 14px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 80px; align-items: center; gap: 12px;
  padding: 0 24px; min-height: 44px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row-head { color: var(--muted); font-size: 13px; min-height: 36px; }
.task { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 500; }
.task > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ico { flex: none; }
.col-time { color: var(--muted); text-align: right; }
.row-head .col-time { text-align: right; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.tag-gray { background: var(--tag-gray); color: var(--tag-gray-ink); }
.tag-green { background: var(--tag-green); color: var(--tag-green-ink); }
.tag-yellow { background: var(--tag-yellow); color: var(--tag-yellow-ink); }
.tag-blue { background: var(--tag-blue); color: var(--tag-blue-ink); }

/* Sections */
.section { padding: 104px 0; scroll-margin-top: 60px; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; max-width: 760px; }
.sub { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 640px; }

.grid3 { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.emoji { display: block; font-size: 30px; line-height: 1; margin-bottom: 18px; }
.emoji-lg { font-size: 44px; margin: 0 auto 20px; }
.steps .card { position: relative; }
.step-num {
  position: absolute; top: 24px; right: 24px; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--muted);
}

.compare { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.compare-col h3 { font-size: 18px; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.compare-main { border-color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 28px; }
.list li::before { position: absolute; left: 0; top: 0; font-weight: 700; width: 20px; text-align: center; }
.list-x li { color: var(--muted); }
.list-x li::before { content: "✕"; color: var(--muted); font-size: 13px; top: 2px; }
.list-check li { color: var(--ink); }
.list-check li::before { content: "✓"; color: #0f7b6c; }
.features { margin-top: 16px; }

.example .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.example p { color: var(--ink); font-size: 16px; }

.faq { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

.signup { text-align: center; }
.signup h2 { margin: 0 auto; }
.signup .sub { margin: 14px auto 0; }
.signup-form { margin: 32px auto 0; display: flex; gap: 8px; max-width: 480px; }
.signup-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px;
}
.signup-form input::placeholder { color: var(--muted); }
.signup-msg { margin-top: 14px; min-height: 1.6em; color: #0f7b6c; font-weight: 500; font-size: 15px; }
.signup-msg.error { color: #e03e3e; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) 110px 100px; }
  .col-time { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { height: 56px; gap: 8px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 72px 0; scroll-margin-top: 56px; }
  .grid3, .compare { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .board { margin-top: 44px; }
  .board-head { padding: 14px 16px 12px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 0 16px; }
  .col-label { display: none; }
  .signup-form { flex-direction: column; }
}
@media (max-width: 360px) {
  .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
