:root {
  --bg: #fbf6ee;
  --surface: #fffdf9;
  --alt: #f4ece0;
  --ink: #3a2f2b;
  --muted: #76675f;
  --line: #e4d9c9;
  --accent: #1c446f;
  --tail: #5a4840;
  --serif: "Gowun Batang", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
h2, h1 { font-family: var(--serif); font-weight: 700; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 246, 238, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; margin: 0; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--surface); background: var(--ink); padding: 6px 14px; border-radius: 999px; }
.nav .nav-cta:hover { color: var(--surface); }

/* buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 600; font-size: 16px;
  border: 1.5px solid var(--ink);
}
.btn:hover { background: var(--tail); border-color: var(--tail); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px;
  width: min(1120px, 100% - 32px); margin: 0 auto; padding: 72px 0 64px;
}
.hero-kicker { margin: 0 0 10px; font-weight: 700; color: var(--accent); font-size: 18px; }
.badge {
  display: inline-block; margin: 0 0 22px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; background: var(--surface);
}
.hero h1 { font-size: clamp(32px, 3.9vw, 54px); letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 22px 0 30px; color: var(--muted); font-size: 18px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fig { margin: 0; }
.hero-fig img { border-radius: 20px; }
.hero-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* facts */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.facts span { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.facts strong { display: block; font-size: 17px; line-height: 1.45; }
.facts em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.55; }

/* ledger summary */
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.summary div { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; }
.summary span { display: block; font-size: 13px; color: var(--muted); }
.summary strong { display: block; font-size: 18px; color: var(--muted); margin-top: 2px; }
.summary-note { margin: 12px 0 24px; font-size: 14px; color: var(--muted); }
.price small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }

/* sections */
.section { padding: 104px 0; }
.section-alt { background: var(--alt); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.section h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.section-lead { color: var(--muted); margin: 0 0 40px; max-width: 40em; }

/* story */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.story-text h2 { margin-bottom: 28px; }
.story-text p { margin: 0 0 18px; }
.sign { margin-top: 32px !important; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sign strong { color: var(--ink); font-size: 18px; font-family: var(--serif); }
.story-fig { margin: 0; }
.story-fig img { border-radius: 20px; }

/* promises */
.promises { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--surface); font-weight: 700; margin-bottom: 18px;
}
.promises h3 { font-size: 20px; margin-bottom: 10px; }
.promises p { margin: 0; color: var(--muted); }

/* money */
.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pool { border-radius: 18px; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.pool-kids { border: 2px solid var(--accent); }
.pool h3 { font-size: 22px; }
.pool-sub { margin: 2px 0 20px; color: var(--muted); font-size: 15px; }
.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.flow li { position: relative; padding: 12px 0 12px 44px; font-weight: 600; }
.flow li::before {
  counter-increment: f; content: counter(f);
  position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-size: 14px;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -8px; border-left: 1.5px dashed var(--accent); }
.pool-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.plain { margin: 0; padding-left: 20px; }
.plain li { margin: 6px 0; }
.pledge { margin-top: 20px; padding: 32px; border-radius: 18px; background: var(--alt); }
.pledge h3 { font-size: 18px; margin-bottom: 18px; }
.pledge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pledge-row div { background: var(--surface); border-radius: 14px; padding: 20px 22px; }
.pledge-row strong { display: block; font-family: var(--serif); font-size: 24px; }
.pledge-row span { color: var(--muted); font-size: 15px; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding-bottom: 22px; }
.steps img { width: 100%; background: #fdfcfa; }
.step-n { display: block; margin: 16px 20px 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.steps h3 { margin: 2px 20px 6px; font-size: 19px; }
.steps p { margin: 0 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ledger */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ledger-head { display: flex; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.tag { font-size: 13px; font-weight: 700; color: #9a5b12; background: #fbecd3; padding: 2px 10px; border-radius: 999px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { padding: 14px 24px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
.r { text-align: right; font-variant-numeric: tabular-nums; }
.in { color: var(--accent); font-weight: 600; }
.out { color: var(--ink); font-weight: 600; }
tfoot td { border-bottom: 0; font-weight: 700; background: var(--alt); }
.paw { font-size: 15px; margin-right: 4px; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger-bal { margin: 0; padding: 14px 24px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.ledger-rules { margin: 28px 0 0; padding-left: 20px; color: var(--muted); }
.ledger-rules li { margin: 8px 0; }
.ledger-rules strong { color: var(--ink); }

/* cats */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.cat img { width: 100%; }
.cat h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.cat h3 span { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); margin-left: 6px; vertical-align: middle; }
.cat p { margin: 0; color: var(--muted); }

/* join */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.join-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 36px; }
.price { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 0 0 6px; }
.join-card > p { margin: 0 0 24px; }
.join-card h3, .road h3 { font-size: 18px; margin-bottom: 10px; }
.join-card ul { margin-bottom: 28px; }
.road { padding: 36px; border-radius: 18px; background: var(--alt); }
.timeline { list-style: none; padding: 0; margin: 0 0 32px; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--line); }
.timeline li span { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.timeline li.now { border-left-color: var(--accent); }
.timeline li.now span { color: var(--accent); }
.goals { margin: 0; padding-left: 20px; }
.goals li { margin: 6px 0; }

/* closing */
.closing { position: relative; background: #f8efdf; }
.closing img { width: 100%; }
.closing-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; }
.closing-text p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; line-height: 1.5; margin: 0; padding-right: 2%; width: 34%; min-width: 300px; }

/* footer */
.foot { padding: 48px 0 60px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin: 4px 0; }
.foot .logo { margin-bottom: 8px; }
.foot-small { font-size: 13px; max-width: 34em; line-height: 1.7; }

/* responsive */
@media (max-width: 960px) {
  .hero { gap: 32px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lead { font-size: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cat { grid-template-columns: 1fr; }
  .cat img { width: 60%; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta):not(.nav-keep) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 40px; }
  .hero-kicker { font-size: 16px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in > div { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .facts-in > div:nth-child(-n+2) { border-top: 0; }
  .facts-in > div:nth-child(odd) { padding-left: 0; }
  .facts strong { font-size: 15px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 29px; }
  .section { padding: 72px 0; }
  .story, .pools, .pledge-row, .join, .cats, .promises { grid-template-columns: 1fr; }
  .story { gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .steps li:last-child { grid-column: 1 / -1; }
  .steps li:last-child img { width: 60%; margin: 0 auto; }
  .steps h3 { margin-inline: 16px; font-size: 17px; }
  .steps p, .step-n { margin-inline: 16px; }
  .pool, .pledge, .join-card, .road { padding: 26px 22px; }
  table { min-width: 0; font-size: 14px; }
  table { font-size: 13px; }
  th, td { padding: 11px 6px; }
  th { font-size: 12px; }
  th:first-child, td:first-child { padding-left: 14px; }
  th:last-child, td:last-child { padding-right: 14px; }
  td:nth-child(2) { white-space: normal; }
  .ledger-head, .ledger-bal { padding-inline: 16px; }
  .cat img { width: 55%; }
  .closing-text { position: static; justify-content: center; padding: 28px 0 8px; }
  .closing-text p { padding: 0; width: auto; min-width: 0; text-align: center; }
}

/* ledger page */
.page { padding-top: 64px; }
.page-title { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 18px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.state-card { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 32px; }
.state-card p { margin: 0 0 18px; color: var(--muted); }
.state-card .state-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.state-card > :last-child { margin-bottom: 0; }
.example-region { margin-top: 24px; }
.example-banner { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: #fbecd3; color: #6b3f0c; font-size: 15px; }
.warn { margin-bottom: 16px; padding: 16px 20px; border-radius: 14px; border: 1.5px solid #c9822e; background: #fdf4e6; }
.warn ul { margin: 6px 0 0; padding-left: 20px; }
.page .summary { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.page .summary div { border-style: solid; }
.page .summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.month-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.month-picker button { font: inherit; font-size: 15px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.month-picker button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.month-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.month-sum div { padding: 14px 24px; border-left: 1px solid var(--line); }
.month-sum div:first-child { border-left: 0; }
.month-sum span { display: block; font-size: 13px; color: var(--muted); }
.month-sum strong { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.ledger-table { min-width: 0; }
.ledger-table td:nth-child(2) { white-space: normal; }
.cat-tag { margin-left: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.deliveries { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.deliveries h3 { font-size: 17px; margin-bottom: 10px; }
.deliveries ul { list-style: none; margin: 0; padding: 0; }
.delivery { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.delivery + .delivery { border-top: 1px dashed var(--line); }
.delivery p { margin: 0; }
.delivery-title { font-weight: 700; }
.delivery-items { font-size: 15px; }
.stamp { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--accent); font-size: 18px; transform: rotate(-12deg); }
.ledger-about { margin-top: 72px; }
.ledger-about h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 24px; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.about-grid h3 { font-size: 17px; margin-bottom: 8px; }
.about-grid h3:not(:first-child) { margin-top: 20px; }
.about-grid p, .about-grid li { color: var(--muted); font-size: 15px; }
.about-grid p { margin: 0; }
.about-grid strong { color: var(--ink); }

/* main: ledger teaser, join extras */
.ledger-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; }
.ledger-teaser p { margin: 0; }
.ledger-teaser strong { display: block; font-family: var(--serif); font-size: 22px; }
.mail-wait { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--alt); font-size: 15px; color: var(--muted); }
.mail-wait strong { color: var(--ink); }
.faq { margin-top: 56px; }
.faq h3 { font-size: 22px; font-family: var(--serif); margin-bottom: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .page .summary, .month-sum { grid-template-columns: 1fr 1fr; }
  .month-sum div:nth-child(3) { border-left: 0; }
  .month-sum div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .page { padding-top: 40px; }
  .state-card { padding: 24px 20px; }
  .month-sum div { padding: 12px 16px; }
  .deliveries { padding-inline: 16px; }
  .ledger-teaser { padding: 22px; }
  /* 표를 카드로: 각 칸 앞에 열 이름을 붙인다 */
  .ledger-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td { display: block; width: 100%; }
  .ledger-table tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .ledger-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0 !important; border: 0; white-space: normal; text-align: right; }
  .ledger-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  .ledger-table td:empty { display: none; }
  .ledger-table td[colspan] { display: block; text-align: left; }
  .ledger-table td[colspan]::before { content: none; }
}
.ledger-sample { margin-top: 16px; }
.stamp-wait { border-style: dashed; border-color: var(--line); transform: none; }
