:root {
  --night: #141831;
  --deep: #0E1122;
  --ember: #FF8A2A;
  --gold: #FFC15A;
  --paper: #F2EFE9;
  --mist: #8E94AE;
  --line: rgba(242, 239, 233, 0.10);
  --cell: rgba(242, 239, 233, 0.04);
  --display: "Hahmlet", "Apple SD Gothic Neo", serif;
  --text: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--deep); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 700px at 85% -10%, #252c52 0%, rgba(37,44,82,0) 60%), linear-gradient(180deg, var(--night) 0%, var(--deep) 900px) no-repeat, var(--deep);
  color: var(--paper); font-family: var(--text); line-height: 1.7; word-break: keep-all;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.top img { width: 36px; height: 36px; border-radius: 9px; }
.top .name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--paper); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 36px 0 72px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; } }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
  /* 두 줄(각 12자 안팎)이 화면 폭에 맞게 줄어든다. 넓은 화면에서는 왼쪽 칸 폭에 맞춘다. */
  font-size: clamp(28px, calc((100vw - 48px) / 8.8), 64px); margin: 0 0 22px;
}
@media (min-width: 900px) { .hero h1 { font-size: clamp(40px, 4vw, 54px); } }
.hero p { font-size: 18px; color: #C9CBD8; max-width: 30em; margin: 0 0 28px; }
.soon { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mist); }
.soon b { color: var(--paper); font-weight: 600; }
.soon .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(255,193,90,.6); }

/* calendar demo — the one loud thing on the page */
.demo {
  background: linear-gradient(180deg, rgba(242,239,233,.05), rgba(242,239,233,.02));
  border: 1px solid var(--line); border-radius: 28px; padding: 22px 20px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.demo-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.demo-head .month { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.4px; }
.demo-head .count { font-size: 15px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { text-align: center; font-size: 12px; color: var(--mist); padding-bottom: 4px; }
.dow.sun { color: #F0857A; }
.day {
  position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--cell); color: #5E6482; font: 500 15px/1 var(--text); font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.day.empty { visibility: hidden; cursor: default; }
.day.ring { background: linear-gradient(160deg, rgba(255,193,90,.30), rgba(255,94,58,.22)); color: #FFF3E2; box-shadow: inset 0 0 0 1px rgba(255,193,90,.35); }
.day.holiday { color: #F0857A; }
.day.ring.holiday { color: #FFD0C8; }
.day.changed::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(255,193,90,.9); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #C9CBD8; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--text); }
.switch .track { width: 42px; height: 26px; border-radius: 13px; background: #2C3150; position: relative; transition: background .25s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #D6D8E3; transition: transform .25s ease, background .25s ease; }
.switch[aria-checked="true"] .track { background: linear-gradient(90deg, var(--gold), #FF5E3A); }
.switch[aria-checked="true"] .track::after { transform: translateX(16px); background: #fff; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--mist); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hint { margin: 12px 2px 0; font-size: 13px; color: var(--mist); }

@media (prefers-reduced-motion: no-preference) {
  .day.ring.intro { animation: glow .5s ease both; animation-delay: calc(var(--i) * 28ms); }
  @keyframes glow { from { background: var(--cell); box-shadow: none; color: #5E6482; } }
}

/* steps — a real sequence, so it is numbered */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.8px; line-height: 1.25; margin: 0 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ember); margin-bottom: 12px; }
.steps h3, .features h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.steps p, .features p { margin: 0; color: #B9BCCB; font-size: 15.5px; text-wrap: pretty; }

.features { display: grid; gap: 28px 48px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features div { padding-left: 16px; border-left: 2px solid rgba(255,138,42,.55); }

.privacy p { font-size: 18px; color: #C9CBD8; max-width: 36em; margin: 0 0 10px; }

footer { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--mist); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--mist); }
footer a:hover { color: var(--paper); }
footer .copy { margin-left: auto; }

/* 하위 페이지(개인정보처리방침·지원): 헤더·푸터·폭은 홈과 같고, 본문만 읽기 좋은 폭으로 둔다. */
.doc { max-width: 720px; padding: 40px 0 72px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; line-height: 1.2; margin: 0 0 10px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.3px; }
.doc p, .doc li { color: #C9CBD8; font-size: 16px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--paper); font-weight: 600; }
.meta { font-size: 13px; color: var(--mist); margin-bottom: 20px; }
.summary { border-left: 2px solid rgba(255,138,42,.55); padding: 2px 0 2px 16px; margin: 20px 0 8px; }
.summary p { color: var(--paper); font-size: 17px; margin: 0; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p, details ul { margin-top: 10px; }
.button { display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 14px; font-weight: 700; text-decoration: none;
  background: linear-gradient(90deg, var(--gold), #FF5E3A); color: #1B1B1F; }
.button:hover { opacity: .92; }
.top nav a[aria-current="page"] { color: var(--paper); font-weight: 600; }

/* 화면 미리보기: 휴대폰에서는 옆으로 넘기고, 넓은 화면에서는 한 줄에 다섯 장 */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots figure { flex: 0 0 62%; max-width: 260px; margin: 0; scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.shots figcaption { margin-top: 12px; font-size: 14px; color: var(--mist); text-align: center; text-wrap: balance; }
@media (min-width: 900px) {
  .shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; overflow: visible; padding: 4px 0 0; margin: 0; }
  .shots figure { max-width: none; }
}
