:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #f3f1ea;
  --ink: #1a1a18;
  --ink-2: #4a4944;
  --ink-3: #7a786f;
  --line: #e4e1d7;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --accent-soft: #e6eef6;
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand img { width: 84px; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.topnav a.topnav-cta { background: var(--ink); color: #fff; }

/* hero */
.hero { padding: 44px 0 36px; }
.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 7.4vw, 46px); font-weight: 750; line-height: 1.24; letter-spacing: -0.03em; }
.lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); line-height: 1.7; }
.cta-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font-size: 17px; font-weight: 650; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }

.facts { display: grid; gap: 10px; margin: 30px 0 0; }
.fact {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.fact dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.fact dd { margin: 0; font-weight: 650; font-size: 17px; line-height: 1.45; }
.fact small { display: block; color: var(--ink-3); font-weight: 400; font-size: 14px; margin-top: 2px; letter-spacing: 0; }

/* progress strip */
.progress-strip { background: var(--accent-soft); border-block: 1px solid #d3e0ee; }
.progress-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 12px; font-size: 15px; }
.progress-label { font-weight: 700; }
.progress-text { color: var(--ink-2); flex: 1 1 100%; order: 3; }
.progress-more { order: 2; margin-left: auto; }
@media (min-width: 640px) { .progress-text { flex: 1 1 200px; order: 0; } .progress-more { order: 0; margin-left: 0; } }
.progress-more { font-weight: 600; font-size: 14px; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: 0;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px;
}

/* sections */
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--tint); }
.section.dark { background: var(--ink); color: #f4f3ee; border-top: 0; }
.section.dark .muted { color: #bdbbb2; }
.section h2 { font-size: 26px; font-weight: 720; margin-bottom: 20px; }
.section h3 { font-size: 18px; font-weight: 680; }
.muted { color: var(--ink-2); margin-top: 12px; }
.statement { font-size: clamp(22px, 5.6vw, 30px); font-weight: 720; line-height: 1.4; letter-spacing: -0.025em; }

.summary { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.summary li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 52px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); font-weight: 520;
}
.summary li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; letter-spacing: 0; line-height: 1;
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); }
.when { display: block; font-size: 14px; font-weight: 650; color: var(--accent); margin-bottom: 2px; }
.timeline p { color: var(--ink-2); margin-top: 4px; }

.cards { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { color: var(--ink-2); margin-top: 6px; }

.week { display: grid; gap: 8px; align-items: stretch; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.block-len { font-size: 28px; font-weight: 760; letter-spacing: -0.03em; display: block; line-height: 1.2; }
.block h3 { margin-top: 4px; color: var(--accent); }
.block p { color: var(--ink-2); margin-top: 4px; }
.plus { text-align: center; font-size: 22px; font-weight: 700; color: var(--ink-3); line-height: 1; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.table { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.table div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 16px; border-top: 1px solid var(--line); }
.table div:first-child { border-top: 0; }
.table dt { color: var(--ink-3); font-weight: 600; }
.table dd { margin: 0; font-weight: 600; }
.tbd { color: var(--ink-3); font-weight: 500; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 620; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

.now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.now p { margin-top: 8px; }
.notices { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.notices li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.notices time { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.notices h3 { margin-top: 2px; }
.notices p { color: var(--ink-2); margin-top: 4px; }

.channels { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.channel { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.empty { margin-top: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); background: var(--surface); }

.footer { padding: 36px 0 120px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer img { width: 64px; opacity: 0.85; margin-bottom: 10px; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 68px 0; }
  .section h2 { font-size: 30px; }
}

/* chat */
.chat-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  font: inherit; font-size: 15px; font-weight: 650; color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; padding: 14px 18px; box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer;
}
.chat { position: fixed; inset: 0; z-index: 30; background: rgba(20,20,18,.35); display: flex; align-items: flex-end; justify-content: center; }
.chat[hidden] { display: none; }
.chat-panel {
  width: 100%; max-width: 520px; height: min(78vh, 640px); background: var(--bg);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) { .chat { align-items: center; } .chat-panel { border-radius: 18px; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head button { font: inherit; font-size: 15px; background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 6px; }
.chat-note { font-size: 13px; color: var(--ink-3); padding: 8px 16px 0; letter-spacing: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.wait { color: var(--ink-3); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.chat-form button { font: inherit; font-weight: 650; border: 0; border-radius: 12px; padding: 0 16px; background: var(--ink); color: #fff; cursor: pointer; }
.chat-form button:disabled { opacity: .5; }
