/* 베트남공인닷컴 — 한 가지 버튼, 한 가지 카드, 한 가지 강조색 */
:root {
  --bg: #FBFAF7;
  --surface: #F2EFE8;
  --ink: #1C1B19;
  --muted: #5E5A53;
  --line: rgba(28, 27, 25, .14);
  --accent: #B3161F;
  --accent-hover: #96121A;
  --on-accent: #fff;
  --dark: #1C1B19;
  --on-dark: #F6F3EC;
  --on-dark-muted: #C2BCB0;
  --kakao: #FEE500;
  --kakao-ink: #191600;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --nav: 64px;
  --gut: 20px;
  --bar: 0px;
  --pad: 64px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
@media (min-width: 720px) { :root { --gut: 40px; --pad: 96px; } }
@media (max-width: 719px) { :root { --bar: calc(64px + env(safe-area-inset-bottom)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
  padding-top: var(--nav); padding-bottom: var(--bar);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1 { font-size: clamp(32px, 3.6vw + 16px, 54px); line-height: 1.18; letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(25px, 1.6vw + 18px, 36px); line-height: 1.25; letter-spacing: -.025em; font-weight: 700; }
h3, .h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.01em; font-weight: 650; }
.lead { font-size: clamp(17px, .5vw + 16px, 20px); line-height: 1.65; color: var(--ink); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--pad) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 40em; margin-bottom: 40px; }
.section__head p { margin-top: 12px; color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* 링크 */
.link { color: var(--accent); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s ease; padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: var(--r-sm); border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 650; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: rgba(28, 27, 25, .06); }
.btn--onDark { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn--onDark:hover { background: rgba(246, 243, 236, .1); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) { .btn-row .btn { width: 100%; } }

/* 헤더 */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--line); z-index: 30; }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.skip { position: absolute; left: var(--gut); top: -100px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); z-index: 40; }
.skip:focus { top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo__mark { color: var(--accent); flex: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-size: 16px; font-weight: 550; text-decoration: none; white-space: nowrap; border-radius: var(--r-sm); transition: background-color .15s ease; }
.nav__link:hover { background: rgba(28, 27, 25, .06); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__tel { font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 1039px) { .nav__tel { display: none; } }
@media (max-width: 899px) {
  .nav__bar { gap: 12px; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: fixed; inset: var(--nav) 0 0 0; margin: 0; padding: 8px var(--gut) 32px; flex-direction: column; gap: 0; background: var(--bg); overflow-y: auto; }
  .nav__links.is-open { display: flex; }
  .nav__link { height: 56px; padding: 0; font-size: 19px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
}
@media (max-width: 719px) { .nav__actions { display: none; } .nav__toggle { margin-left: auto; } }

/* 현재 위치 */
.crumbs { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* 첫 화면 */
.hero { padding: 56px 0 var(--pad); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding-top: 80px; } .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero__copy > * + * { margin-top: 20px; }
.hero__copy .btn-row { margin-top: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 519px) { .facts { gap: 12px 20px; } .facts dd { font-size: 17px; } }
.page-hero { padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero > .wrap > * + * { margin-top: 16px; }
.page-hero .btn-row { margin-top: 28px; }
@media (min-width: 720px) { .page-hero { padding: 64px 0 72px; } }

/* 절차 비교 (첫 화면 그림) */
.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.flow__row + .flow__row { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.flow__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-weight: 700; }
.flow__title span { font-size: 14px; font-weight: 500; color: var(--muted); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.chain li + li::before { content: "→"; color: var(--muted); font-weight: 400; }
.chain b { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface); font-weight: 600; }
.chain--old b { color: var(--muted); }
.chain--old .is-gone b { text-decoration: line-through; background: transparent; border: 1px dashed var(--line); }
.chain--new b { background: var(--ink); color: var(--bg); }
.chain--new .is-key b { background: var(--accent); color: var(--on-accent); }
.flow__note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 카드 */
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card > * + * { margin-top: 10px; }
.card p { color: var(--muted); font-size: 16px; }
a.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card__more { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 650; font-size: 15px; }
a.card:hover .card__more { text-decoration: underline; text-underline-offset: 3px; }
.card ul { margin-top: 14px; }
.card li { position: relative; padding-left: 16px; font-size: 16px; }
.card li + li { margin-top: 6px; }
.card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1.5px; background: var(--muted); }

/* 목록 */
.list li { position: relative; padding-left: 20px; }
.list li + li { margin-top: 10px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* 절차 */
.steps { display: grid; gap: 0 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* 요금 */
.plans { display: grid; gap: 24px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.plan__name { font-size: 16px; font-weight: 650; color: var(--muted); }
.plan__price { margin-top: 8px; font-size: clamp(32px, 2vw + 24px, 44px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__days { margin-top: 12px; font-size: 16px; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows > div:first-child { border-top: 1px solid var(--line); }
.rows dt span { display: block; font-size: 15px; color: var(--muted); }
.rows dd { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.notes { margin-top: 24px; font-size: 15px; color: var(--muted); }
.notes li + li { margin-top: 4px; }
.notes li::before { content: "※ "; }

/* 안내 상자 */
.note { background: var(--surface); border-radius: var(--r-md); padding: 24px 28px; }
.section--alt .note { background: #fff; border: 1px solid var(--line); }
.note > * + * { margin-top: 8px; }
.note p { font-size: 16px; }
.sample { margin-top: 24px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: normal; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-x: auto; }

/* 자주 묻는 질문: 모두 펼쳐 둠 */
.faq { border-top: 1px solid var(--line); }
.faq__item { display: grid; gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .faq__item { grid-template-columns: 5fr 7fr; } }
.faq__item p { color: var(--ink); }

/* 연락처 표 */
.contact { border-top: 1px solid var(--line); }
.contact > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--muted); font-size: 15px; }
.contact dd a { font-weight: 650; text-underline-offset: 3px; }

/* 마무리 상담 띠 */
.cta { background: var(--dark); color: var(--on-dark); padding: 72px 0; }
.cta__in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) { .cta__in { grid-template-columns: 1fr auto; gap: 64px; } }
.cta__text p { margin-top: 12px; color: var(--on-dark-muted); max-width: 32em; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; font-size: 15px; color: var(--on-dark-muted); }
.cta__contacts a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 8px 0; }
.cta :focus-visible { outline-color: var(--on-dark); }

/* 하단 */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 15px; }
.footer__top { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin-top: 12px; color: var(--muted); max-width: 26em; }
@media (min-width: 880px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } .footer__brand { grid-column: auto; } }
@media (max-width: 519px) { .footer__col:last-child { grid-column: 1 / -1; } }
.footer__col h2 { font-size: 14px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__legal p + p { margin-top: 6px; }

/* 휴대폰 하단 고정 상담 바 */
.actionbar { display: none; }
@media (max-width: 719px) {
  .actionbar { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .actionbar__btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
  .actionbar__btn:active { transform: scale(.98); }
  .actionbar__btn--kakao { background: var(--kakao); border-color: var(--kakao); color: var(--kakao-ink); }
}

/* 첫 화면은 한 번만 떠오른다. 스크롤에 따라 움직이는 것은 없다. */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  [data-enter] > *:nth-child(2) { animation-delay: .06s; }
  [data-enter] > *:nth-child(3) { animation-delay: .12s; }
  [data-enter] > *:nth-child(4) { animation-delay: .18s; }
  [data-enter] > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
