:root {
  --bg: #fff6f0;
  --ink: #2a140f;
  --muted: #7a564b;
  --rose: #e11d48;
  --rose-deep: #be123c;
  --card: rgba(255, 253, 251, 0.92);
  --line: #f0cfc2;
  --green: #06c755;
  --green-deep: #049a45;
  --shadow: 0 18px 40px rgba(122, 42, 24, 0.08);
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans KR", "Noto Sans Thai", "Noto Sans CJK KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(880px 420px at -10% -10%, #ffd4e1 0%, transparent 55%),
    radial-gradient(720px 380px at 110% 0%, #ffe3c4 0%, transparent 48%),
    var(--bg);
}

img, video { max-width: 100%; display: block; }

a { color: var(--rose-deep); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 0.6rem; }

h1 { font-size: clamp(1.85rem, 8vw, 3.4rem); font-weight: 800; }

h2 { font-size: clamp(1.45rem, 5vw, 2rem); }

p { margin: 0 0 0.8rem; }

.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 207, 194, 0.8);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
}

.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--rose);
  color: white;
  font-weight: 800;
  box-shadow: 4px 4px 0 #ffd0dc;
}

.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-words strong { font-size: 1.05rem; }
.logo-words small { color: var(--muted); font-size: 0.75rem; }

.lang { display: flex; gap: 4px; }

.lang-link, .nav-link, .nav-button {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-link.on, .nav-link.on { background: white; box-shadow: inset 0 0 0 1px var(--line); }

.nav { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.inline-form { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn small { font-weight: 700; opacity: 0.85; }

.btn-primary { background: var(--rose); color: white; box-shadow: 0 10px 24px rgba(225, 29, 72, 0.25); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-ghost { background: white; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line { background: var(--green); color: white; }
.btn-line:hover { background: var(--green-deep); }
.btn-google { background: white; color: var(--ink); box-shadow: inset 0 0 0 1.5px #dadce0; }
.btn-block { width: 100%; }

.nav-cta { min-height: 40px; padding: 0 14px; margin-left: auto; }

.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 18px; }
.kicker { color: var(--rose); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.lede { font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.chip {
  display: inline-block;
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-figure img, .example img, .example video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.section { padding: 36px 0; }
.section-alt { background: rgba(255, 255, 255, 0.45); }
.note { color: var(--muted); }
.steps, .timeline, .rules, .app-list, .photo-grid, .thumbs { list-style: none; padding: 0; margin: 0; }
.steps { display: grid; gap: 12px; }
.steps li, .card, .timeline li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe4ea;
  color: var(--rose-deep);
  font-weight: 800;
}
.examples { display: grid; gap: 14px; }
.example figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: white; }
table.price { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
table.price th, table.price td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--line); }
table.price th:first-child, table.price td:first-child { text-align: left; position: sticky; left: 0; background: white; }
table.price thead th { font-size: 0.85rem; }

.calc, .form, .filters { display: grid; gap: 12px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span, .switch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  padding: 8px;
}
.choice input:checked + span, .switch:has(input:checked) { background: #fff1f4; box-shadow: inset 0 0 0 2px var(--rose); }
.choice input:focus-visible + span, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #fecdd3;
  outline-offset: 2px;
}
.switch { justify-content: flex-start; gap: 10px; padding: 0 14px; }
.field, .check { display: grid; gap: 6px; font-weight: 700; }
.file-pick {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 16px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  cursor: pointer;
}
.file-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.field input, .field textarea, .field select, .js-files {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  background: white;
}
.total { font-size: 1.8rem; font-weight: 800; margin: 0; }
.breakdown { color: var(--muted); min-height: 1.2em; }
.timeline { display: grid; gap: 10px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.timeline span { font-weight: 800; text-align: right; }
.rules { display: grid; gap: 8px; }
.rules li { background: white; border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pay-list { display: grid; gap: 10px; margin: 0; }
.pay-list div { display: grid; gap: 2px; }
.pay-list dt { color: var(--muted); font-size: 0.85rem; }
.pay-list dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.unset { font-weight: 600; color: var(--muted); }
.faq details { background: white; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { font-weight: 800; cursor: pointer; }
.cta-band { text-align: center; }
.split { display: grid; gap: 16px; }

.site-footer { padding: 28px 0 88px; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.has-sticky { padding-bottom: 8px; }
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 30;
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(42, 20, 15, 0.25);
}

.narrow, .form-wrap { max-width: 640px; }
.login-stack { display: grid; gap: 10px; }
.notice-card { padding: 22px 18px; }
.notice-copy {
  font-size: 1.15rem;
  font-weight: 700;
  background: #fff7e8;
  border-radius: 18px;
  padding: 14px;
}
.banner { border-radius: 16px; padding: 12px 14px; font-weight: 700; }
.banner-ok { background: #e8fff2; color: #046b38; }
.banner-bad { background: #fff1f2; color: #9f1239; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 800; padding: 0; }
.optional { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 600; }
.check input { width: 20px; height: 20px; margin-top: 3px; }
.thumbs, .photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumbs li, .photo-grid li { background: white; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.thumbs img, .photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs button { width: 100%; border: 0; background: #fff1f2; color: var(--rose-deep); font: inherit; font-weight: 800; min-height: 40px; cursor: pointer; }
.app-list { display: grid; gap: 12px; }
.app-card { display: grid; gap: 6px; }
.app-top, .app-card .who { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.who { font-weight: 800; margin: 0; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800; background: #fff4e5; }
.badge-received { background: #fff4e5; color: #9a3412; }
.badge-paid { background: #e0f2fe; color: #075985; }
.badge-drafting { background: #f3e8ff; color: #6b21a8; }
.badge-revising { background: #ffedd5; color: #9a3412; }
.badge-review { background: #ccfbf1; color: #115e59; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #f3f4f6; color: #4b5563; }
.filters { align-items: end; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-size: 0.85rem; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: auto; justify-content: flex-end; }
  .hero-grid, .split, .examples { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .examples { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-actions { flex-direction: row; }
  .choices { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 28px; }
  .filters { grid-template-columns: 1.4fr 0.8fr 0.7fr auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
