/* ───── Tokens ───── */
:root {
  /* color */
  --bg: #f5f2ed;
  --ink: #2a241e;
  --ink-soft: #3a2f26;
  --mute: #a89c90;
  --mute-soft: #c9bfb3;
  --group: #ece1d4;
  --group-deep: #e4d6c5;
  --line: rgba(42, 36, 30, 0.10);

  /* on-dark */
  --bg-dim-1: rgba(245, 242, 237, 0.50);
  --bg-dim-2: rgba(245, 242, 237, 0.45);
  --bg-dim-3: rgba(245, 242, 237, 0.30);
  --bg-dim-4: rgba(245, 242, 237, 0.10);

  /* type */
  --font: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shadow */
  --shadow-sm: 0 8px 24px rgba(42, 36, 30, 0.14);
  --shadow-md: 0 8px 24px rgba(42, 36, 30, 0.18);
  --shadow-lg: 0 20px 50px -20px rgba(42, 36, 30, 0.18);
  --shadow-xl: 0 40px 80px -20px rgba(42, 36, 30, 0.18);

  /* radius */
  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  /* layout */
  --container: 1280px;
  --gutter: 56px;
  --gutter-sm: 22px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───── Type ───── */
.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark.light { color: var(--bg); }

.tiny-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.tiny-label.dim { color: var(--bg-dim-1); }

.display {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 18px 0 22px;
}
.section-title {
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 16px 0 0;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 32px;
}

kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 7px;
  min-width: 18px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  box-shadow: 0 1.5px 0 var(--line);
  display: inline-block;
}

/* ───── Buttons ───── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font: 500 14px/1 var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[disabled] { cursor: default; transform: none; opacity: 0.85; }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-dark {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-light {
  background: var(--bg);
  color: var(--ink);
  padding: 18px 40px;
  font-size: 16px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ───── Nav ───── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
}
/* ───── Hero ───── */
.hero { padding: 24px 0 80px; }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 64px;
}

.phone-stage { position: relative; margin-top: 56px; }
.phone-glow {
  position: absolute;
  inset: -30px -80px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(42, 36, 30, 0.06), transparent 70%);
}
.phone-frame {
  text-align: left;
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(42, 36, 30, 0.04);
}
.phone-screen {
  width: 280px;
  height: 560px;
  background: var(--bg);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 6px;
}
.phone-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.phone-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mute-soft);
}
.phone-cal { padding: 14px 22px 0; }
.cal-month { font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
}
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cal-day .d { font-size: 13px; font-variant-numeric: tabular-nums; }
.cal-day .d-bold { font-weight: 700; }
.cal-day .d-mute { color: var(--mute-soft); }
.cal-day .mk { height: 10px; display: flex; align-items: center; gap: 3px; }
.mk-two i, .mk-one i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.mk-ring::after {
  content: '';
  width: 7px; height: 7px;
  border: 1.3px solid var(--mute-soft);
  border-radius: 50%;
}

.phone-tasks {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.task.done { color: var(--mute); }
.task.done .task-text {
  text-decoration: line-through;
  text-decoration-color: var(--mute);
}
.task-text { flex: 1; }
.task-divider { height: 1px; background: var(--line); margin: 6px 22px; }
.task-group {
  background: var(--group);
  margin: 4px 18px;
  border-radius: var(--r-md);
  padding: 10px 18px;
}

.badge {
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--group-deep);
  padding: 2px 7px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.badge.sm { font-size: 9px; padding: 1px 5px; margin-left: auto; }

.check {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  display: inline-block;
}
.check.small { width: 14px; height: 14px; border-width: 1.4px; }
.check.tiny { width: 12px; height: 12px; border-width: 1.3px; }
.check-filled, .check.check-filled {
  background: currentColor;
  border-color: currentColor;
}
.check-group {
  border: none;
  width: auto; height: auto;
  display: inline-flex;
}

.phone-fab {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* ───── Features ───── */
.features { padding: 96px 0; }
.tile-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  background: #faf7f2;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tile-head { display: flex; justify-content: space-between; align-items: baseline; }
.tile-num { font-size: 11px; color: var(--mute-soft); font-variant-numeric: tabular-nums; }
.tile-vis {
  height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}
.tile h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
}
.tile p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* sync visual */
.vis-sync { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.code-row { display: flex; gap: 6px; }
.code-row span {
  width: 26px; height: 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font: 500 17px/1 var(--mono);
}
.device-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.dev { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dev i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dev span { font-size: 9px; color: var(--mute); }
.dev-line { width: 26px; height: 1px; background: var(--line); }

/* keys visual */
.vis-keys { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.kbd-pair { display: inline-flex; gap: 3px; }

/* group visual */
.vis-group { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.g-row { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.g-block {
  background: var(--group);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g-row.sub { padding-left: 22px; opacity: 0.85; font-size: 11px; }

/* interface visual */
.vis-int { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.int-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.int-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  font-size: 10px;
}
.int-week .b { font-weight: 700; }
.int-week .m { color: var(--mute-soft); }
.int-task { display: flex; gap: 8px; align-items: center; font-size: 11px; margin-top: 4px; }
.int-task.done { color: var(--mute); }
.int-task s { text-decoration-color: var(--mute); }

/* ───── Demo ───── */
.demo { padding: 96px 0; }
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}
.demo-lede { margin: 16px 0 32px; max-width: 440px; }
.demo-card {
  background: #faf7f2;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.demo-day { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.demo-list { display: flex; flex-direction: column; gap: 2px; }
.demo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--r-sm);
  font-size: 16px;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.3s;
}
.demo-item.cursor { background: var(--group); }
.demo-item.done { color: var(--mute); }
.demo-item.done .demo-text {
  text-decoration: line-through;
  text-decoration-color: var(--mute);
}
.demo-item.done .check { background: var(--mute); border-color: var(--mute); }
.demo-text { flex: 1; }
.demo-key { font-size: 10px; color: var(--mute); display: none; }
.demo-item.cursor:not(.done) .demo-key { display: inline-flex; }

/* ───── CTA ───── */
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 32px;
}
.cta-inner {
  min-height: 760px;
  display: flex;
  flex-direction: column;
}
.cta-top { display: flex; justify-content: space-between; align-items: center; }
.cta-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  text-align: center;
}
.cta-headline {
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0;
}
.cta-meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--bg-dim-1);
  margin-top: 8px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--bg-dim-2);
  border-top: 1px solid var(--bg-dim-4);
  padding-top: 20px;
  margin-top: 40px;
}

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .container { padding: 0 var(--gutter-sm); }
  .nav { padding-top: 22px; }
  .hero-inner { padding-top: 32px; }
  .display { font-size: 56px; }
  .lede { font-size: 15px; }
  .phone-stage { margin-top: 40px; }
  .phone-screen { width: 240px; height: 480px; }
  .features, .demo { padding: 64px 0; }
  .tile-grid { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { flex-direction: column; gap: 8px; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
