/* 앱 팔레트의 값을 손으로 옮겼다. packages/ui 는 RN 이라 여기서 못 쓴다 */
:root {
  --bg: #19191b;
  --surface: #1c1c1e;
  --element: #27272a;
  --border: #3a3a42;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #2dd4bf;
  --on-accent: #0a0a0a;
  --work: #50a4c8;
  --personal: #d0a560;
  --meeting: #80c0b0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #fafafa;
    --element: #f4f4f5;
    --border: #e4e4e7;
    --text: #18181b;
    --muted: #71717a;
    --faint: #a1a1aa;
    --accent: #0f766e;
    --on-accent: #ffffff;
    --shadow: 0 30px 80px rgba(24, 24, 27, 0.14);
    color-scheme: light;
  }
}
* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.num {
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 머리 */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
header.top img {
  height: 46px;
  display: block;
}
nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
}
nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* 첫 화면 */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 96px;
}
.overline {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
h1 {
  font-size: 52px;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 460px;
  word-break: keep-all;
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.badge {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--element);
  color: var(--text);
}
.badge.accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.note {
  font-size: 14px;
  color: var(--faint);
  margin: 0;
}

/* 폰 목업. 앱의 오늘 탭을 CSS 로 그린 것이라 글꼴·간격이 앱과 같다 */
.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  width: 330px;
  border-radius: 44px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.screen {
  border-radius: 32px;
  background: var(--bg);
  padding: 22px 20px 84px;
  min-height: 640px;
  position: relative;
  overflow: hidden;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.segments {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 22px;
}
.segments .on {
  color: var(--text);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.screen h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.progress {
  height: 3px;
  background: var(--element);
  border-radius: 999px;
  margin-bottom: 26px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 60%;
  background: var(--accent);
}
.sec {
  font-size: 12px;
  color: var(--faint);
  margin: 18px 0 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
}
.row .circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  flex: none;
}
.row .circle.done {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}
.row .circle.done::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.row .title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .title.done {
  color: var(--faint);
  text-decoration: line-through;
}
.row .meta {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
.chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--element);
}
.chip.work {
  color: var(--work);
}
.chip.personal {
  color: var(--personal);
}
.chip.meeting {
  color: var(--meeting);
}
.event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.event i {
  width: 3px;
  height: 18px;
  background: var(--work);
  border-radius: 2px;
}
.event .time {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
}
.fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 500;
}

/* 절 */
section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
section h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  word-break: keep-all;
}
section .desc {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 560px;
  word-break: keep-all;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

/* 왜 하루 단위 */
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.three .card strong {
  display: block;
  font-size: 18px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.three .card span {
  color: var(--muted);
  font-size: 15px;
  word-break: keep-all;
}
.three .card .n {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* 미루기 사슬 */
.chain {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.chain .card {
  flex: 1;
  padding: 16px;
}
.chain .day {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 8px;
}
.chain .t {
  font-size: 15px;
}
.chain .t.moved {
  color: var(--faint);
  text-decoration: line-through;
}
.chain .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--element);
  color: var(--muted);
}
.chain .tag.on {
  background: var(--accent);
  color: var(--on-accent);
}
.chain .arrow {
  align-self: center;
  color: var(--faint);
  font-size: 18px;
}

/* 루틴 */
.routines .row {
  border-bottom: 1px solid var(--border);
}
.routines .row:last-child {
  border-bottom: 0;
}
.pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--element);
  color: var(--muted);
}
.pill.on {
  color: var(--accent);
}
.days {
  display: flex;
  gap: 4px;
}
.days b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--element);
  color: var(--faint);
}
.days b.on {
  background: var(--accent);
  color: var(--on-accent);
}

/* 달력 */
.month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.month .h {
  font-size: 11px;
  color: var(--faint);
  text-align: center;
  padding-bottom: 6px;
}
.month .h.sat {
  color: #60a5fa;
}
.month .h.sun {
  color: #f87171;
}
.month .d {
  aspect-ratio: 1;
  border-radius: 10px;
  font-size: 12px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.month .d.dim {
  color: var(--faint);
}
.month .d.today {
  background: var(--element);
  color: var(--accent);
  font-weight: 500;
}
.month .dots {
  display: flex;
  gap: 2px;
}
.month .dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}
.month .dots i.w {
  background: var(--work);
}
.month .dots i.p {
  background: var(--personal);
}
.month .dots i.m {
  background: var(--meeting);
}
.month .dots i.a {
  background: var(--accent);
}

/* 위젯과 맥 */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.widget {
  width: 170px;
  height: 170px;
  border-radius: 28px;
  background: var(--element);
  padding: 16px;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.widget .o {
  font-size: 11px;
  color: var(--faint);
}
.widget .b {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  margin: 6px 0 auto;
  letter-spacing: -0.02em;
}
.widget .r {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget .r i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
}
.mac {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  height: 170px;
}
.mac .pane {
  background: var(--bg);
  border-radius: 8px;
  padding: 8px;
}
.mac .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.mac .grid i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--element);
}
.mac .grid i.t {
  background: var(--accent);
  opacity: 0.8;
}
.mac .line {
  height: 6px;
  border-radius: 3px;
  background: var(--element);
  margin: 6px 0;
}
.mac .line.w {
  width: 70%;
}
.mac .line.s {
  width: 45%;
}
.two h4 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.two p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  word-break: keep-all;
}

/* 개인정보 */
.privacy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.privacy-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  word-break: keep-all;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--element);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  background: var(--border);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 문서 페이지 (개인정보 처리방침) */
.doc {
  max-width: 720px;
  padding-bottom: 72px;
}
.doc h1 {
  font-size: 40px;
}
.doc .lead {
  max-width: none;
}
.doc h2 {
  font-size: 20px;
  margin: 44px 0 12px;
}
.doc p,
.doc li {
  font-size: 16px;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--border);
}
.doc th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.doc footer {
  margin-top: 48px;
}

@media (max-width: 820px) {
  header.top img {
    height: 36px;
  }
  nav {
    gap: 14px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 0 64px;
  }
  h1 {
    font-size: 38px;
  }
  .split,
  .split.flip {
    grid-template-columns: 1fr;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .three,
  .two {
    grid-template-columns: 1fr;
  }
  section h2 {
    font-size: 28px;
  }
  .chain {
    flex-direction: column;
  }
  .chain .arrow {
    transform: rotate(90deg);
  }
  .privacy-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc h1 {
    font-size: 32px;
  }
}
