/* 점빵이 — 공통 디자인 시스템 (랜딩/온보딩 공용) */

:root {
  --ink: #1c1810;
  --ink-soft: #6b6152;
  --ink-faint: #9c9280;
  --ground: #faf7f0;
  --surface: #ffffff;
  --surface-alt: #f2ecdc;
  --border: #e6ddc6;

  --accent: #c17f2e;
  --accent-deep: #93601e;
  --accent-soft: #f6e6c4;
  --accent-ink: #ffffff;

  --good: #1f6b52;
  --good-soft: #dcece3;

  --dark: #1c1810;
  --dark-surface: #2a2318;
  --dark-border: #423824;
  --dark-ink: #f3ede0;
  --dark-ink-soft: #c9bfa9;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(28, 24, 16, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(28, 24, 16, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(28, 24, 16, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
header.site-nav.scrolled { border-bottom-color: var(--border); }
header.site-nav .inner {
  max-width: 680px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
header.site-nav .logo { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: none; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #d08f3e, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, var(--shadow-lg); }
.btn-primary:active { transform: translateY(0); }
.btn-lg { font-size: 1.05rem; padding: 16px 34px; }
.btn-sm { font-size: 13px; padding: 9px 16px; }
.btn-ghost {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero / phone mockup ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 800; line-height: 1.28;
  margin-bottom: 16px;
}
.hero h1 .accent-text { color: var(--accent-deep); }
.hero p.sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 auto 28px; max-width: 40ch; }
.trust-line {
  font-size: 13px; color: var(--ink-faint); margin-top: 14px;
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.trust-line span::after { content: "·"; margin-left: 6px; color: var(--border); }
.trust-line span:last-child::after { content: ""; }

.phone-frame {
  width: 268px; margin: 44px auto 0; padding: 10px;
  background: linear-gradient(160deg, #322a1c, #16130d);
  border-radius: 38px; box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #eef1f5; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; height: 460px;
}
.phone-notch {
  height: 22px; display: flex; align-items: center; justify-content: center; background: #16130d;
}
.phone-notch::before { content: ""; width: 60px; height: 6px; border-radius: 4px; background: #322a1c; }
.phone-topbar {
  background: var(--surface); padding: 12px 14px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #e2e5ea; font-weight: 700; font-size: 13.5px;
}
.phone-topbar .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.phone-chat { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.phone-bubble {
  background: var(--surface); border-radius: 4px 14px 14px 14px; padding: 10px 13px;
  font-size: 12.5px; line-height: 1.5; max-width: 84%; box-shadow: var(--shadow-sm);
  opacity: 0; animation: bubbleIn .5s ease forwards;
}
.phone-bubble.mine { align-self: flex-end; background: var(--accent-soft); border-radius: 14px 4px 14px 14px; }
.phone-bubble b { color: var(--accent-deep); }
.phone-bubble:nth-child(1) { animation-delay: .15s; }
.phone-bubble:nth-child(2) { animation-delay: .55s; }
.phone-bubble:nth-child(3) { animation-delay: .95s; }
.phone-bubble:nth-child(4) { animation-delay: 1.35s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .eyebrow { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .06em; }
.section-head h2 { font-size: 1.55rem; margin: 8px 0 8px; }
.section-head p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-card { border-radius: var(--radius-md); padding: 18px; font-size: 13.5px; line-height: 1.55; }
.compare-card.no { background: #f5e5db; color: #7a3c26; }
.compare-card.yes { background: var(--good-soft); color: #163f30; }
.compare-card .tag { display: block; font-weight: 800; font-size: 11px; letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- Module cards ---------- */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.module-card .icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.module-card .cat { font-size: 11px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .03em; }
.module-card .name { font-size: 14px; font-weight: 700; margin-top: 4px; line-height: 1.4; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-md);
}
.price-card .plan-label { font-size: 12.5px; font-weight: 800; color: var(--accent-deep); letter-spacing: .06em; text-transform: uppercase; }
.price-card .price { font-size: 2.6rem; font-weight: 800; margin: 10px 0; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-faint); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; font-size: 14px; color: var(--ink-soft); text-align: left; display: inline-block; }
.price-card li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.price-card li svg { flex: none; color: var(--good); }

/* ---------- Dark CTA ---------- */
.dark-section {
  background: radial-gradient(120% 140% at 50% -10%, #3a2f1c, var(--dark) 60%);
  color: var(--dark-ink); border-radius: var(--radius-lg); margin: 20px 0; padding: 52px 28px; text-align: center;
}
.dark-section h2 { font-size: 1.6rem; margin-bottom: 10px; }
.dark-section p { color: var(--dark-ink-soft); margin-bottom: 26px; }

/* ---------- Footer ---------- */
footer.site-footer { text-align: center; padding: 40px 22px 56px; color: var(--ink-faint); font-size: 12.5px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ================= Onboarding ================= */
.onb-shell { max-width: 440px; margin: 0 auto; padding: 40px 22px 60px; }
.onb-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.onb-steps .seg { flex: 1; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.onb-steps .seg.done, .onb-steps .seg.active { background: var(--accent); }
.onb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-md);
}
.onb-kicker { font-size: 12px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.onb-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.onb-card p.desc { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--ground); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface);
}

.mod-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.mod-option:hover { border-color: var(--accent); }
.mod-option input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.mod-option .cat { font-size: 11.5px; font-weight: 700; color: var(--accent-deep); }
.mod-option .name { font-size: 13.5px; font-weight: 600; margin-top: 2px; }

.onb-result { font-size: 13.5px; color: var(--good); margin-top: 12px; min-height: 18px; }

.done-hero { text-align: center; }
.done-hero .emoji { font-size: 44px; }
.done-card {
  background: var(--surface-alt); border-radius: var(--radius-md); padding: 18px 20px; margin: 22px 0; text-align: left;
}
.done-card b { font-size: 12.5px; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .04em; }
.done-card ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; }

/* ================= Board ================= */
.board-shell { max-width: 520px; margin: 0 auto; padding: 24px 20px 60px; }
.board-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 16px; }
.board-tabs a {
  flex: none; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
}
.board-tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.board-item {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 10px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.board-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.board-item .cat { font-size: 11px; font-weight: 700; color: var(--accent-deep); }
.board-item .title { font-size: 15px; font-weight: 700; margin-top: 5px; }
.board-item .date { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }

@media (max-width: 460px) {
  .compare-grid, .module-grid { grid-template-columns: 1fr; }
}
