/* Self-hosted Pretendard subset (glyphs used on the site). Missing glyphs fall back to the CDN Pretendard. See README. */
@font-face { font-family: "Pretendard Subset"; src: url("/fonts/pretendard-subset.woff2") format("woff2-variations"); font-weight: 45 920; font-display: swap; }

:root {
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg-alt: #f6f7fb;
  --brand: #2f5bea;
  --brand-dark: #1f44c4;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 60px; }
body {
  margin: 0;
  font-family: "Pretendard Subset", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav nav a:not(.btn) { display: none; }
.logo { font-weight: 800; letter-spacing: .08em; color: var(--ink); text-decoration: none; font-size: 18px; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none; font-weight: 600; padding: 14px 22px; border-radius: 10px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }

/* hero */
.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); max-width: 640px; }
.br-desktop { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* layout grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin-bottom: 28px; }

.pillars { padding: 8px 0 56px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.card h2 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; }
.num { display: block; color: var(--brand); font-weight: 800; margin-bottom: 8px; }

.item { padding: 20px 0; border-top: 1px solid var(--line); }
.item h3 { font-size: 18px; }
.item p { color: var(--muted); margin: 0; }

.chip-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.chip-card h3 { font-size: 17px; }
.chip-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: #eaf0ff; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.rescue { margin-top: 20px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed #b9c6f5; background: #fff; }
.rescue p { margin: 0; color: var(--muted); }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 12px 0 0; }

/* contact */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.form .consent input { margin-top: 4px; }
.hp { display: none; }
.form-error { color: #b91c1c; font-size: 14px; margin: 0; }
.alt-contact { margin-top: 20px; color: var(--muted); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
.footer .logo { font-size: 15px; margin-bottom: 8px; }
.biz { margin-bottom: 6px; }

@media (min-width: 720px) {
  .nav nav a:not(.btn) { display: inline; }
  .br-desktop { display: inline; }
  .hero { padding: 112px 0 72px; }
  .grid-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* legal pages */
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; color: var(--muted); }
.legal p { color: var(--muted); }
.nw { white-space: nowrap; }

/* work / case studies */
.work-card { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.work-card:hover { border-color: var(--brand); }
.work-card h3 { font-size: 19px; }
.work-card p { margin-bottom: 14px; }
.more { color: var(--brand); font-weight: 600; font-size: 15px; }
.case .eyebrow a { color: inherit; text-decoration: none; }
.case-title { font-size: clamp(26px, 5.5vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.case h2 { font-size: 20px; margin-top: 36px; }
.case p, .did li { color: var(--muted); }
.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.did { padding-left: 20px; margin: 0; }
.did li { margin-bottom: 12px; }
.did strong { display: block; color: var(--ink); }
.stack { font-weight: 600; }
.case-cta { margin-top: 48px; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-alt); }
.case-cta h2 { margin-top: 0; }
.case-cta .btn { margin: 6px 8px 0 0; }
