:root {
  --bg: #fafaf8;
  --ink: #202020;
  --panel: #f0f0ed;
  --outline: #b5b5b0;
  --divider: #e3e3df;
  --hint: color-mix(in srgb, var(--ink) 58%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(24px, 4vw, 48px);
  --page: 1280px;
}

[data-theme="dark"] {
  --bg: #121212;
  --ink: #f4f4f1;
  --panel: #202020;
  --outline: #666;
  --divider: #303030;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  color-scheme: light;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
}

.skip:focus { top: 12px; }

.top,
.hero,
.features,
.preview,
.get,
.foot {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--hint);
}

.top-nav {
  display: none;
  gap: 22px;
  font-size: 13px;
  color: var(--hint);
}

.top-nav a:hover { color: var(--ink); }

.top-download { margin-left: auto; }

.choice {
  display: flex;
  padding: 3px;
  background: var(--panel);
  border-radius: 12px;
}

.choice button {
  min-width: 52px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}

.choice button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}

.hero {
  display: grid;
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero-copy { max-width: 24em; }

.tagline {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--hint);
}

.lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 500;
}

.btn.compact {
  min-height: 36px;
  min-width: 72px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
}

.btn:hover { filter: brightness(1.08); }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0.7px solid var(--ink);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 500;
}

.kicker {
  margin: 0;
  font-size: 13px;
  color: var(--hint);
}

.features article,
.preview,
.get {
  padding-top: 40px;
}

.features h2,
.preview h2,
.get h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.features-note {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--hint);
}

.features dl {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
}

.features dt {
  font-size: 14px;
  font-weight: 600;
}

.features dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--hint);
}

.preview .stage {
  margin-top: 16px;
}

.dl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0.7px solid var(--divider);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--hint);
}

.stage {
  position: relative;
  container-type: inline-size;
  container-name: stage;
}

.app-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.app-heading h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.app-heading p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--hint);
}

.app-body {
  margin-top: 16px;
}

.cols { display: grid; }

.col-title {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--hint);
}

.group { margin-bottom: 16px; }

.group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.group-head strong {
  font-size: 14px;
  font-weight: 600;
}

.group-head span {
  font-size: 12px;
  color: var(--hint);
}

.empty {
  margin: 14px 0;
  font-size: 13px;
  color: var(--hint);
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--divider) 65%, transparent);
}

.task .box {
  width: 18px;
  height: 18px;
  margin: 10px 7px 0;
  border: 1.3px solid var(--outline);
  border-radius: 5px;
  flex-shrink: 0;
}

.task-title {
  flex: 1;
  margin: 0;
  padding: 10px 8px 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.week-strip {
  display: flex;
  margin-bottom: 28px;
}

.week-strip .day {
  flex: 1;
  padding: 14px 0;
  border-radius: 22px;
  text-align: center;
}

.week-strip .dow {
  display: block;
  font-size: 12px;
  color: var(--hint);
}

.week-strip .dom {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.week-strip .day.current { background: var(--ink); }

.week-strip .day.current .dow,
.week-strip .day.current .dom { color: var(--bg); }

.week-cols {
  display: none;
  gap: 12px;
}

.week-col { flex: 1; min-width: 0; }

.week-col .task .box { margin: 8px 4px 0; }

.week-col .task-title {
  padding: 8px 4px 8px 0;
  font-size: 13px;
}

.day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
}

.day-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 600;
}

.day-num.today {
  background: var(--ink);
  color: var(--bg);
}

.day-name {
  font-size: 12px;
  color: var(--hint);
}

.week-col hr,
.month-cal hr {
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: 12px 0 8px;
}

.week-agenda .row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--divider);
}

.week-agenda .when {
  width: 120px;
  flex-shrink: 0;
}

.dash {
  padding-top: 13px;
  color: color-mix(in srgb, var(--hint) 40%, transparent);
}

.month-wrap { display: grid; gap: 28px; }

.dows,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.dows span {
  text-align: center;
  font-size: 12px;
  color: var(--hint);
}

.month-cal { margin-top: 14px; }

.month-grid .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  padding: 4px 0 6px;
}

.month-grid .num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
}

.month-grid .cell.outside .num {
  color: color-mix(in srgb, var(--ink) 38%, transparent);
}

.month-grid .cell.today .num {
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--outline);
}

.month-grid .cell.current .num {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  box-shadow: none;
}

.dot {
  width: 4px;
  height: 4px;
  margin-top: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 65%, transparent);
}

.dot.off { background: transparent; }

.dock {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
}

.nav {
  position: relative;
  display: flex;
  width: 186px;
  height: 44px;
  padding: 3px;
  background: var(--bg);
  border: 0.7px solid var(--divider);
  border-radius: 25px;
}

.nav-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 60px;
  border-radius: 22px;
  background: var(--panel);
  transition: transform 200ms var(--ease);
}

.nav button {
  position: relative;
  z-index: 1;
  flex: 1;
  font-size: 12px;
  color: var(--hint);
  border-radius: 22px;
}

.nav button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
}

.fab {
  width: 44px;
  height: 44px;
  margin-left: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  pointer-events: none;
}

.fab svg { width: 22px; height: 22px; }

.foot {
  padding-top: 48px;
  padding-bottom: 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--hint);
}

@media (min-width: 720px) {
  .top-nav { display: flex; }

  .features dl {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }

  .features dl div + div {
    padding-left: 40px;
    border-left: 1px solid var(--divider);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 64px;
    padding-top: 72px;
    padding-bottom: 20px;
  }

  .hero-copy {
    max-width: none;
    padding-bottom: 6px;
  }
}

@container stage (min-width: 720px) {
  .cols.todo { grid-template-columns: 1fr 1fr 1fr; }
  .cols.todo .col:not(:last-child) { padding-right: 28px; }
  .cols.todo .col + .col {
    padding-left: 28px;
    border-left: 1px solid var(--divider);
  }
  .month-wrap.split {
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
  }
  .month-grid .cell { min-height: 56px; }
}

@container stage (min-width: 1000px) {
  .week-strip { display: none; }
  .week-cols { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-indicator { transition: none; }
}
