:root {
  --paper: #fffaf3;
  --paper-2: #fdf1e3;
  --ink: #3b2f2a;
  --ink-soft: #7a6a61;
  --pink: #f6b6b0;
  --pink-deep: #e07a72;
  --yellow: #fde7a4;
  --mint: #cdebd9;
  --sky: #cfe4f6;
  --line: #eadfd2;
  --radius: 18px;
  --hand: "Nanum Pen Script", "Gaegu", cursive;
  --body: "Gowun Dodum", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-deep); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--hand); font-size: 34px; color: var(--ink); text-decoration: none; line-height: 1; }
.logo span { color: var(--pink-deep); }
.nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--pink-deep); }
.nav a.btn, .nav a.btn:hover { color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--hand); font-size: 26px; color: var(--pink-deep); margin: 0 0 4px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.3; margin: 0 0 18px; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: inherit; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }
.hero .meta { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* diary page illustration */
.diary {
  position: relative; background: #fff; border-radius: 10px;
  padding: 36px 30px 30px; transform: rotate(1.5deg);
  box-shadow: 0 18px 40px rgba(90, 60, 40, .12);
  background-image: repeating-linear-gradient(transparent 0 33px, #f0e6da 33px 34px);
  background-position: 0 70px;
}
.tape {
  position: absolute; top: -14px; width: 110px; height: 30px; opacity: .85;
  background: var(--mint); transform: rotate(-6deg);
}
.tape.l { left: 24px; }
.tape.r { right: 30px; background: var(--pink); transform: rotate(5deg); }
.diary .date { font-family: var(--hand); font-size: 24px; color: var(--ink-soft); }
.diary .photo {
  margin: 12px 0 14px; height: 170px; border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), var(--paper-2));
  border: 8px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  display: grid; place-items: center; font-size: 64px;
}
.diary .hand { font-family: var(--hand); font-size: 27px; line-height: 34px; margin: 0; }
.sticker {
  position: absolute; font-family: var(--hand); font-size: 22px; line-height: 1.1;
  background: var(--yellow); padding: 10px 12px; border-radius: 50%;
  width: 84px; height: 84px; display: grid; place-items: center; text-align: center;
  transform: rotate(-12deg); box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.sticker.d { right: -18px; top: 120px; }
.bubble {
  position: absolute; left: -22px; bottom: -16px; background: var(--pink); color: var(--ink);
  font-family: var(--hand); font-size: 22px; padding: 6px 14px; border-radius: 16px; transform: rotate(-4deg);
}

/* sections */
section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 8px; line-height: 1.35; }
.section-title p { color: var(--ink-soft); margin: 0; }
.alt { background: var(--paper-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  border: 1px solid var(--line);
}
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.bg-pink { background: #fde3e0; } .bg-yellow { background: #fff2c9; }
.bg-mint { background: #dff3e7; } .bg-sky { background: #e3effa; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.promise div { padding: 10px; }
.promise b { display: block; font-family: var(--hand); font-size: 34px; color: var(--pink-deep); line-height: 1.2; }

/* guide list */
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card {
  display: block; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(90,60,40,.08); }
.guide-card .tag { font-size: 13px; color: var(--pink-deep); font-weight: 700; }
.guide-card h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.45; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* faq */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* cta */
.cta-box {
  background: var(--ink); color: #fff; border-radius: 26px; padding: 44px 32px; text-align: center;
}
.cta-box h2 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 32px); }
.cta-box p { margin: 0 0 24px; color: #e9ddd3; }
.cta-box .btn { background: #fff; color: var(--ink); }

/* article */
.article { padding: 40px 0 20px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.article h1 { font-size: clamp(28px, 4.2vw, 38px); line-height: 1.35; margin: 0 0 12px; }
.article .byline { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 24px; margin: 40px 0 10px; line-height: 1.4; }
.article h3 { font-size: 19px; margin: 26px 0 6px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 4px 0; }
.summary-box {
  background: var(--paper-2); border-left: 5px solid var(--pink); border-radius: 10px;
  padding: 16px 20px; margin: 0 0 24px;
}
.summary-box p { margin: 0; }
.inline-cta {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 2px dashed var(--pink); border-radius: var(--radius);
  padding: 22px 24px; margin: 40px 0;
}
.inline-cta p { margin: 0; }
.inline-cta b { font-family: var(--hand); font-size: 28px; font-weight: 400; display: block; line-height: 1.2; }

/* calculator */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 8px 0 24px;
}
.calc label { font-weight: 700; display: block; margin-bottom: 8px; }
.calc input[type=date] {
  font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%; max-width: 260px;
}
.calc .today { margin: 16px 0 6px; font-size: 18px; }
.calc .today b { font-family: var(--hand); font-size: 32px; color: var(--pink-deep); font-weight: 400; }
table.days { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 16px; }
table.days th, table.days td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.days th { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
table.days tr.past td { color: #b5a79d; }
table.days tr.next td { background: #fff6dc; font-weight: 700; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* ---------- landing page ---------- */
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-quiet { color: var(--ink-soft); font-size: 15px; text-decoration: none; }
.link-quiet:hover { color: var(--pink-deep); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-soft); }
.checks li::before { content: "✓ "; color: var(--pink-deep); font-weight: 700; }

.quick { padding: 8px 0 48px; }
.quick-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: #fff; border: 2px dashed var(--pink); border-radius: 26px; padding: 28px 32px;
}
.quick-text h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; line-height: 1.35; }
.quick-text p { margin: 0; color: var(--ink-soft); }
.quick-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.quick-form input[type=date] {
  font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%; max-width: 260px;
}
.quick-out { margin: 12px 0 6px; font-size: 16px; min-height: 2.8em; }
.quick-out b { color: var(--pink-deep); }
.quick-more { font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); font-family: var(--hand); font-size: 28px; line-height: 1; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.sig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.sig + .sig { border-top: 1px dashed var(--line); }
.sig.flip .sig-text { order: 2; }
.sig .tag { font-size: 14px; color: var(--pink-deep); font-weight: 700; }
.sig h3 { font-size: clamp(22px, 3vw, 28px); margin: 4px 0 10px; line-height: 1.35; }
.sig p { margin: 0; color: var(--ink-soft); }
.sig-art {
  position: relative; min-height: 220px; border-radius: 22px; padding: 28px;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.font-art .paper-note {
  background: #fff; padding: 14px 16px; border-radius: 6px; transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(90,60,40,.08); font-family: "Malgun Gothic", sans-serif; font-style: italic; color: #6d6d6d; font-size: 15px;
}
.font-art .arrow { font-size: 26px; color: var(--pink-deep); }
.font-art .match { background: #fff; padding: 12px 18px; border-radius: 14px; border: 2px solid var(--mint); text-align: center; }
.font-art .match small { display: block; font-size: 12px; color: var(--ink-soft); }
.font-art .match span { font-family: var(--hand); font-size: 30px; line-height: 1.2; }
.sticker-art .doodle { width: 150px; transform: rotate(-4deg); }
.sticker-art .chip {
  position: absolute; font-family: var(--hand); font-size: 22px; padding: 4px 14px; border-radius: 999px;
}
.sticker-art .c1 { background: var(--yellow); top: 22px; right: 22px; transform: rotate(6deg); }
.sticker-art .c2 { background: var(--sky); bottom: 24px; left: 22px; transform: rotate(-5deg); }
.sticker-art .mtape { position: absolute; top: 14px; left: 30px; width: 90px; height: 24px; background: var(--pink); opacity: .7; transform: rotate(-8deg); }
.guest-art { flex-direction: column; align-items: stretch; }
.guest-art .msg { background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 15px; max-width: 88%; box-shadow: 0 2px 8px rgba(90,60,40,.06); }
.guest-art .msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #fff6dc; }
.guest-art .msg b { display: block; font-size: 12px; color: var(--pink-deep); }

.table-scroll { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 15px; min-width: 480px; }
table.compare th, table.compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare tbody th { text-align: left; font-weight: 700; }
table.compare thead th { font-size: 14px; color: var(--ink-soft); }
table.compare .us { background: #fff6dc; color: var(--ink); font-weight: 700; }
.note { text-align: center; color: var(--ink-soft); font-size: 15px; margin-top: 18px; }
.center { text-align: center; margin-top: 24px; }

.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hub-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.hub-col h3 { margin: 0 0 8px; font-size: 17px; }
.hub-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hub-col a { color: var(--ink); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.hub-col a:hover { color: var(--pink-deep); border-color: var(--pink); }

.mobile-bar { display: none; }

@media (max-width: 860px) {
  .quick-box, .sig { grid-template-columns: 1fr; gap: 22px; }
  .sig.flip .sig-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .quick-box { padding: 22px 18px; }
  .hub { grid-template-columns: 1fr; }
  body.home { padding-bottom: 72px; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 250, 243, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    font-size: 15px;
  }
  .mobile-bar b { font-family: var(--hand); font-size: 24px; font-weight: 400; color: var(--pink-deep); margin-right: 4px; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .diary { max-width: 380px; margin: 0 auto; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  .features, .guide-list, .promise { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
  .sticker.d { right: -6px; }
  .bubble { left: -6px; }
  section { padding: 44px 0; }
}
