/* 이호세무회계 공통 디자인 (모든 페이지가 함께 사용) */
:root {
  /* 이호 컬러: 네이비 #3D568F · 스카이 #9FBAF1 · 크림 #FDFDF5 · 라임 #EAF3B2
     (변수 이름은 이전 버전과 맞추기 위해 그대로 두고 값만 바꿨어요) */
  --green: #3d568f;          /* 네이비: 띠·계산기·상담 영역 바탕 */
  --green-2: #46609a;
  --sky: #9fbaf1;            /* 스카이: 계산기·단톡방 섹션 바탕 */
  --stone: #e8eefb;          /* 스카이를 옅게 한 보조 바탕 */
  --paper: #fdfdf5;          /* 크림: 페이지 바탕 */
  --paper-2: #ffffff;
  --ink: #1c2640;
  --text-2: #47526e;
  --text-3: #5d6782;
  --line: #dde2ec;
  --line-2: #b9c2d6;
  --orange: #3d568f;         /* 밝은 바탕 위 강조색 = 네이비 */
  --orange-deep: #3d568f;    /* 밝은 바탕 위 버튼 = 네이비 */
  --orange-deep-hover: #2f4577;
  --orange-light: #eaf3b2;   /* 어두운 바탕 위 강조색 = 라임 */
  --lime: #eaf3b2;
  --lime-hover: #dfeb94;
  --mid-blue: #6f8fd6;
  --on-green: #e9eefb;
  --on-green-strong: #ffffff;
  --on-green-muted: #c6d3f2;
  --serif: "Nanum Gothic", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Nanum Gothic", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: "Nanum Gothic", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r-s: 6px;   /* 버튼·작은 요소 모서리 */
  --r-m: 12px;  /* 카드·박스 모서리 */
  --max: 1312px;
  --gutter: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line { display: block; }            /* 한 문장 = 한 줄 */
.only-m { display: none; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--text-3); }
.h-sec { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.25; letter-spacing: -.02em; margin: 16px 0 20px; }
.lead { margin: 0; font-size: 17px; color: var(--text-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; font-size: 15px; font-weight: 600; letter-spacing: .04em; border: 0; border-radius: var(--r-s); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-orange { background: var(--orange-deep); color: #fff; }
.btn-orange:hover { background: var(--orange-deep-hover); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hover); }
.band :focus-visible, .calc :focus-visible, .cta :focus-visible, .estate :focus-visible, .teaser:focus-visible, .topbar :focus-visible { outline-color: var(--lime); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #111a30; }
.btn-line-g { background: transparent; box-shadow: inset 0 0 0 1px rgba(253,253,245,.5); color: var(--on-green); }
.btn-line-g:hover { background: rgba(253,253,245,.08); }
.link-u { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; border-bottom: 1.5px solid currentColor; padding: 4px 0; }
.link-u:hover { color: var(--orange-deep); }

/* Image placeholder (사진 준비 전 자리 표시) */
.ph { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(135deg, #e4eaf7 0 12px, #dbe3f3 12px 24px); border: 1.5px dashed #9fb0d3; border-radius: var(--r-m); }
.ph-label { background: rgba(253,253,245,.94); border-radius: var(--r-s); padding: 12px 16px; font-size: 14px; line-height: 1.55; color: #2c3654; }
.ph-label b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--orange-deep); }
.ph-label span { display: block; color: var(--text-3); font-size: 13px; }

/* Top bar */
.topbar { background: var(--green); color: var(--on-green); font-size: 13px; letter-spacing: .02em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .5; margin: 0 10px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(253,253,245,.94); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.header.shadow { box-shadow: 0 1px 0 var(--line); }
.header .wrap { height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .15s; }
.nav a:hover { border-color: var(--ink); }
/* 보수표 펼침 메뉴 (기장료·조정료 / 상속세) */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; border-bottom: 1.5px solid transparent; background: none; font: inherit; font-weight: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.nav-drop-btn .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop:hover .nav-drop-btn, .nav-drop.open .nav-drop-btn { border-color: var(--ink); }
.nav-drop:hover .nav-drop-btn .icon, .nav-drop.open .nav-drop-btn .icon { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 14px); left: -18px; z-index: 120; width: 250px; padding: 8px; background: #fff; border-radius: var(--r-m); box-shadow: 0 18px 40px -16px rgba(28,38,64,.35), 0 0 0 1px var(--line); letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* 메뉴로 마우스를 옮길 때 닫히지 않게 */
.nav-drop:hover .nav-menu, .nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav .nav-menu a { display: block; padding: 12px 14px; border: 0; border-radius: 8px; transition: background .15s; }
.nav .nav-menu a:hover, .nav .nav-menu a:focus-visible { background: var(--stone); }
.nav-menu b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.nav-menu span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-3); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 24px; height: 25px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.head-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-s); background: none; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: rgba(28,38,64,.06); }
.head-cta { margin-left: 10px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; letter-spacing: .06em; padding: 12px 20px; border-radius: var(--r-s); transition: background .15s; }
.head-cta:hover { background: #111a30; }
.menu-btn { display: none; }
.mnav { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 8px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(110px, 22vw, 330px); line-height: .85; letter-spacing: -.04em; color: var(--green); text-align: center; padding-top: 24px; user-select: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.hero-text { padding-bottom: 72px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1.3; letter-spacing: -.02em; margin: 14px 0 16px; }
.hero-text p { margin: 0 0 28px; color: var(--text-2); font-size: 16px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero-img { position: relative; z-index: 1; margin-top: -230px; height: 500px; }
.hero-img img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.hero-side { padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; align-items: flex-end; text-align: right; }

.teaser { display: block; width: 300px; background: var(--green); color: var(--on-green); padding: 22px 24px; border-radius: var(--r-m); text-align: left; transition: background .15s; }
.teaser:hover { background: #344b80; }
.teaser .t-top { display: block; font-size: 13px; color: var(--orange-light); font-weight: 600; letter-spacing: .06em; }
.teaser .t-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 14px; }
.teaser .t-row b { font-family: var(--display); font-weight: 600; font-size: 30px; color: #fff; }
.teaser .t-row + .t-row { margin-top: 2px; }
.teaser .t-row + .t-row b { font-size: 22px; }
.teaser .t-go { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(253,253,245,.25); font-size: 14px; font-weight: 600; }

/* Service band */
.band { background: var(--green); color: var(--on-green); }
.band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 44px; padding-bottom: 44px; }
.band-item { display: flex; gap: 16px; align-items: center; padding: 0 24px; }
.band-item:first-child { padding-left: 0; }
.band-item:last-child { padding-right: 0; }
.band-item + .band-item { border-left: 1px solid rgba(253,253,245,.18); }
.band-ic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: var(--r-m); background: rgba(253,253,245,.1); color: var(--lime); transition: background .2s; }
.band-ic .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.band-item:hover .band-ic { background: rgba(253,253,245,.18); }
.band-item h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--on-green-strong); margin: 0; }
.band-item p { font-size: 14px; margin: 4px 0 10px; }
.band-item .go { color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.band-item:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.band-item:focus-visible { outline-offset: 6px; }

/* 첫 화면: 대표 세무사 이름표 · 핵심 약속 */
.hero-caption { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; margin: 0; white-space: nowrap; background: rgba(253,253,245,.95); color: var(--ink); border-radius: var(--r-s); padding: 10px 16px; font-size: 15px; box-shadow: 0 10px 24px -12px rgba(28,38,64,.35); }
.hero-caption b { font-size: 17px; font-weight: 800; }
.hero-caption span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--text-3); font-size: 13px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-points .icon { width: 18px; height: 18px; color: var(--green); }

/* Calculator */
.calc-sec { background: var(--paper); }
.calc-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.calc-intro .h-sec .accent { color: var(--orange-deep); }
.calc-intro .lead { margin-bottom: 28px; }
.calc { background: var(--green); color: var(--on-green); padding: 40px; border-radius: var(--r-m); }
/* 사업자 유형별 입력칸 (선택한 유형의 칸만 표시) */
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.calc-body > .state { grid-area: 1 / 1; min-width: 0; }   /* 입력칸이 카드보다 넓어지지 않게 */
.calc-body > .state.off { display: none; }   /* 유형에 맞는 입력칸만 보이고, 높이는 내용에 맞춤 */
.switch.off { opacity: .4; cursor: default; }
.switch.off input { cursor: default; }
.calc-title { display: none; font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--on-green-strong); margin: 0 0 16px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px rgba(253,253,245,.3); }
.seg button { background: transparent; color: var(--on-green); border: 0; border-radius: 4px; padding: 10px 6px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; transition: background .15s, color .15s; white-space: nowrap; }
.seg button:hover { background: rgba(253,253,245,.08); }
.seg button[aria-pressed="true"] { background: var(--stone); color: var(--ink); }
.calc-label { display: block; font-size: 14px; margin: 26px 0 8px; }
.money { display: flex; align-items: baseline; border-bottom: 2px solid var(--on-green); padding-bottom: 8px; }
.money:focus-within { border-color: var(--orange-light); }
.money input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--display); font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
.money span { font-size: 17px; }
/* 입력한 금액을 한글로 읽어 주는 줄 (예: = 1억 5,000만 원) */
.money-read { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--lime); min-height: 1.6em; }
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chips button { background: transparent; color: var(--on-green); border: 1px solid rgba(253,253,245,.35); border-radius: var(--r-s); padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 38px; transition: background .15s; }
.chips button:hover { background: rgba(253,253,245,.1); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-s); background: rgba(253,253,245,.08); cursor: pointer; transition: opacity .2s; }
.switch b { display: block; font-size: 15px; color: var(--on-green-strong); }
.switch small { display: block; font-size: 13px; color: var(--on-green-muted); }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(253,253,245,.3); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { transform: translateX(20px); background: var(--green); }
.stepper { display: inline-flex; align-items: center; border-radius: var(--r-s); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(253,253,245,.35); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; color: var(--on-green); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: rgba(253,253,245,.1); }
.stepper output { min-width: 64px; text-align: center; font-size: 18px; font-weight: 700; color: #fff; }
.calc-hint { font-size: 13px; color: var(--on-green-muted); margin: 8px 0 0; }
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(253,253,245,.25); }
.res > div > span { display: block; }
.res-label { font-size: 14px; }
.res-value { font-family: var(--display); font-size: 48px; font-weight: 600; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-value small { font-size: 20px; margin-left: 4px; }
.res-value.orange { color: var(--orange-light); }
.res-value.is-text { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.85; }
/* 계산 결과 숫자는 카드 너비에 맞춰 크기가 줄어듦 (좁은 화면에서 숫자끼리 겹치지 않게) */
.calc { container-type: inline-size; }
.res > div { min-width: 0; }
.res-value { font-size: clamp(24px, 7.6cqi, 48px); }
.res-value small { font-size: .42em; }
.res-value.is-text { font-size: clamp(20px, 5cqi, 30px); }

@container (max-width: 420px) {
  .res { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .res-value { font-size: clamp(24px, 10cqi, 40px); }
}
.res-sub { font-size: 13px; color: var(--on-green-muted); }
.calc-actions { display: flex; gap: 10px; margin-top: 30px; }
.calc-actions .btn { flex: 1; padding: 0 12px; }
.calc-note { margin: 16px 0 0; font-size: 13px; color: var(--on-green-muted); }

/* Communication split */
.comm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 680px; background: var(--stone); }
.comm-text { padding: 110px 72px 110px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.comm-text .h-sec { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.3; }
.comm-text .lead { margin-bottom: 36px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { display: flex; gap: 18px; }
.points .num { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--orange); line-height: 1; }
.points b { font-size: 18px; }
.points p { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
.comm-text .btn { align-self: flex-start; margin-top: 40px; }
/* 단톡방 예시 화면 */
.chat-stage { display: flex; align-items: center; justify-content: center; padding: 64px 40px; position: relative; overflow: hidden; }
.chat-stage .bg-mark { position: absolute; right: -60px; bottom: -70px; width: 340px; height: 350px; color: rgba(61,86,143,.08); }
.chat { position: relative; width: 100%; max-width: 420px; background: #f7f8fc; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(28,38,64,.35), 0 0 0 1px rgba(28,38,64,.06); font-size: 14.5px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--green); color: var(--on-green-strong); }
.chat-head .av-group { display: flex; }
.chat-head .av-group span { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--green); margin-left: -8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.chat-head .av-group span:first-child { margin-left: 0; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { display: block; font-size: 12px; color: var(--on-green-muted); }
.chat-head .tag { margin-left: auto; font-size: 11px; letter-spacing: .08em; color: var(--on-green-muted); border: 1px solid rgba(253,253,245,.3); border-radius: 4px; padding: 2px 6px; }
.chat-body { padding: 18px 16px 22px; display: grid; gap: 12px; }
.chat-day { justify-self: center; font-size: 12px; color: var(--text-3); background: rgba(28,38,64,.06); border-radius: 99px; padding: 3px 12px; }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.msg .av { width: 34px; height: 34px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.av-ceo { background: var(--ink); color: var(--stone); }
.av-ceo svg { width: 14px; height: 14px; }
.av-staff { background: var(--sky); color: var(--ink); }
.av-me { background: var(--stone); color: var(--green); }
.msg .who { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.msg .who em { font-style: normal; color: var(--orange-deep); font-weight: 600; margin-left: 4px; }
.msg .row { display: flex; align-items: flex-end; gap: 6px; }
.bubble { background: #fff; color: var(--ink); border-radius: 4px 14px 14px 14px; padding: 9px 12px; line-height: 1.5; box-shadow: 0 1px 0 rgba(28,38,64,.05); }
.time { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.msg.me { margin-left: auto; }
.msg.me .row { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--green); color: var(--on-green-strong); border-radius: 14px 4px 14px 14px; }
.chat .pop { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chat.in .pop { opacity: 1; transform: none; }
.chat.in .pop:nth-child(3) { transition-delay: .5s; }
.chat.in .pop:nth-child(4) { transition-delay: 1.1s; }
.chat.in .pop:nth-child(5) { transition-delay: 1.7s; }
.no-js .chat .pop { opacity: 1; transform: none; }

/* Promise row */

/* Services detail */
.svc { background: var(--paper); }
.svc .wrap { padding-top: 120px; padding-bottom: 120px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "tabs panel" "career panel"; grid-template-rows: auto 1fr; column-gap: 64px; margin-top: 48px; align-items: start; }
.svc-grid .tabs { grid-area: tabs; }
.svc-grid .svc-panels { grid-area: panel; }
/* 대표 세무사 이력: 서비스 목록 아래 작게 */
.career { grid-area: career; margin-top: 36px; }
.career h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--text-2); letter-spacing: .02em; }
.career ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text-3); }
.career li { display: flex; gap: 8px; white-space: nowrap; }
.career li::before { content: ""; width: 3px; height: 3px; margin-top: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.career em { font-style: normal; font-weight: 700; color: var(--green); }
.tabs { display: grid; border-top: 1px solid var(--line-2); }
.tab { display: flex; gap: 20px; align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: 24px 4px; cursor: pointer; }
.tab .n { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--line-2); transition: color .2s; }
.tab .t { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #7d89a8; transition: color .2s; }
.tab:hover .t { color: var(--ink); }
.tab[aria-selected="true"] .n { color: var(--orange); }
.tab[aria-selected="true"] .t { color: var(--ink); }
.panel { background: var(--stone); padding: 40px; border-radius: var(--r-m); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.panel > p { margin: 0 0 24px; color: var(--text-2); font-size: 16px; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-2); border-radius: var(--r-s); overflow: hidden; }
.check li { display: flex; align-items: center; gap: 14px; background: var(--paper-2); padding: 15px 18px; font-size: 16px; font-weight: 500; }
.check li svg { width: 18px; height: 18px; color: var(--orange-deep); stroke-width: 2.2; }
.panel .note { margin: 18px 0 0; font-size: 14px; color: var(--text-2); }

/* Fee tables */
.fees { background: var(--stone); }
.fees .wrap { padding-top: 120px; padding-bottom: 120px; }
.fees-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.fees-head .seg { width: 320px; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 0 0 1px var(--line-2); }
.fees-head .seg button { color: var(--ink); }
.fees-head .seg button:hover { background: rgba(28,38,64,.05); }
.fees-head .seg button[aria-pressed="true"] { background: var(--green); color: var(--on-green-strong); }
.fee-panel { margin-top: 40px; }
.tbl-wrap { overflow-x: auto; background: var(--paper-2); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
thead th { background: var(--stone); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; min-width: 600px; }
th, td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 13px; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
td:first-child { color: var(--text-2); }
td.num { font-weight: 600; }
.fee-note { margin: 18px 0 0; font-size: 14.5px; color: var(--text-2); }
.fee-note .line + .line { margin-top: 2px; }
.extra { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); }
.extra b { margin-right: 6px; color: var(--ink); }
.extra span { border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 10px; white-space: nowrap; }
.estate { margin-top: 32px; background: var(--green); color: var(--on-green); padding: 32px 36px; border-radius: var(--r-m); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.estate b { display: block; font-family: var(--serif); font-size: 22px; color: var(--on-green-strong); }

/* Insight */
.insight { background: var(--paper); }
.insight .wrap { padding-top: 110px; padding-bottom: 110px; }
.insight-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.insight-head h2 { font-family: var(--serif); font-weight: 700; font-size: 36px; letter-spacing: -.02em; margin: 0; }
.car-ctrl { display: flex; align-items: center; gap: 8px; }
.car-ctrl button { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.car-ctrl button:hover { background: rgba(28,38,64,.06); }
.car-ctrl .icon { width: 18px; height: 18px; }
.car-ctrl .link-u { margin-left: 16px; font-size: 14px; letter-spacing: .06em; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.post { scroll-snap-align: start; display: block; min-width: 0; }
.post-img { position: relative; aspect-ratio: 1 / 1; background: var(--paper-2); border-radius: var(--r-m); overflow: hidden; }
.post-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post:hover .post-img img { transform: scale(1.03); }
.post-meta { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; }
.post-meta span:first-child { font-weight: 600; color: var(--orange-deep); }
.post-meta span:last-child { color: var(--text-3); }
.post h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.45; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.dots span { width: 28px; height: 3px; background: var(--line-2); transition: background .2s; }
.dots span.on { background: var(--ink); }

@media (max-width: 1180px) { .track { grid-auto-columns: calc((100% - 24px) / 2); } }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding-top: 120px; padding-bottom: 120px; align-items: start; }
/* 자주 묻는 질문: 팔레트의 스카이(#9FBAF1)를 크게 쓰는 섹션 */
.faq { background: var(--sky); }

/* 고객 후기 (네이비 바탕 · 크림 카드) */
.reviews { background: var(--green); color: var(--on-green); }
.reviews .wrap { padding-top: 120px; padding-bottom: 120px; }
.rev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.reviews .eyebrow { color: var(--on-green-muted); }
.reviews .h-sec { color: #fff; margin-bottom: 0; }
.rev-stats { display: flex; gap: 40px; }
.rev-stat b { display: block; font-size: 48px; font-weight: 800; line-height: 1.1; color: var(--lime); letter-spacing: -.02em; }
.rev-stat span { font-size: 14px; }
.rev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.rev { background: var(--paper); color: var(--ink); border-radius: var(--r-m); padding: 34px 32px 26px; display: flex; flex-direction: column; gap: 22px; }
.rev::before { content: "“"; font-size: 64px; font-weight: 800; line-height: .5; color: var(--sky); height: 22px; }
.rev p { margin: 0; font-size: 16px; line-height: 1.75; }
.rev-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13.5px; color: var(--text-3); }
.rev-meta b { color: var(--ink); font-weight: 800; }
.rev-more { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; color: var(--on-green-muted); }
.reviews :focus-visible { outline-color: var(--lime); }
@media (max-width: 900px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .reviews .wrap { padding-top: 72px; padding-bottom: 72px; }
  .rev-stats { gap: 28px; }
  .rev-stat b { font-size: 36px; }
  .rev { padding: 26px 22px 20px; }
  .rev p { font-size: 15px; }
  .rev-more .btn { width: 100%; }
  .career ul { font-size: 13px; }
}
.faq .eyebrow, .faq summary .icon { color: var(--ink); }
.faq-list { border-top: 1px solid rgba(28,38,64,.35); }
.faq details { border-bottom: 1px solid rgba(28,38,64,.35); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
/* 답변은 크림색 상자로 질문과 구분 */
.faq details p { margin: 0 0 22px; padding: 18px 22px; background: var(--paper); border-radius: var(--r-m); color: var(--ink); font-size: 16px; }
.faq details[open] summary { font-weight: 800; }

/* CTA + location */
.cta { background: var(--green); color: var(--on-green); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; padding-top: 100px; padding-bottom: 100px; }
.cta h2 { font-family: var(--serif); font-weight: 700; font-size: 48px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 18px; color: var(--on-green-strong); }
.cta h2 span { color: var(--lime); }
.cta p { margin: 0 0 32px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.loc { display: grid; gap: 24px; }
.map { aspect-ratio: 16 / 10; background: var(--green-2); border-radius: var(--r-m); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }
.info { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; font-size: 15px; margin: 0; }
.info dt { font-size: 12px; letter-spacing: .14em; color: var(--on-green-muted); }
.info dd { margin: 0; }
.info a:hover { color: #fff; text-decoration: underline; }
.map-links { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; }
.map-links a { color: var(--orange-light); font-weight: 600; }

/* Footer */
footer { background: var(--ink); color: #b9c3dc; font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
footer .brand { color: var(--stone); }
footer .brand svg { width: 18px; height: 19px; }
footer .brand span { font-size: 16px; }
footer a:hover { color: var(--stone); text-decoration: underline; }
.foot-links { display: flex; gap: 18px; margin-top: 10px; }

/* Mobile bottom bar */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(253,253,245,0), var(--paper) 35%); }
.bottom-bar .sq { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--stone); border-radius: var(--r-s); }
.bottom-bar .btn { flex: 1; min-height: 52px; }

/* Motion — 스크롤하면 요소가 차례로 떠오르는 fadeInUp (참고: 0.7s ease) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.25, .46, .45, .94); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 첫 화면 인트로: 글자 → 사진 → 문구 → 카드 순서 */
@keyframes rise { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes photo { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.wordmark span { display: inline-block; }
.js-intro .wordmark span { animation: rise 1s cubic-bezier(.22, 1, .36, 1) both; }
.js-intro .wordmark span:nth-child(2) { animation-delay: .08s; }
.js-intro .wordmark span:nth-child(3) { animation-delay: .16s; }
.js-intro .wordmark span:nth-child(4) { animation-delay: .24s; }
.js-intro .hero-img img { animation: photo 1.1s cubic-bezier(.22, 1, .36, 1) .35s both; }
.js-intro .hero-caption { animation: fadeIn .6s ease 1.2s both; }
.js-intro .hero-text > *, .js-intro .hero-side > * { animation: up .8s cubic-bezier(.22, 1, .36, 1) both; }
.js-intro .hero-text > :nth-child(1) { animation-delay: .55s; }
.js-intro .hero-text > :nth-child(2) { animation-delay: .63s; }
.js-intro .hero-text > :nth-child(3) { animation-delay: .71s; }
.js-intro .hero-text > :nth-child(4) { animation-delay: .79s; }
.js-intro .hero-text > :nth-child(5) { animation-delay: .87s; }
.js-intro .hero-side > :nth-child(1) { animation-delay: .75s; }
.js-intro .hero-side > :nth-child(2) { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) {
  html, .track { scroll-behavior: auto; }
  .reveal, .chat .pop { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-img { grid-column: 1 / -1; grid-row: 1; margin: -150px auto 0; width: min(440px, 100%); height: 520px; }
  .hero-text, .hero-side { padding-bottom: 64px; padding-top: 40px; }
  .band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .band-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .band-item:nth-child(2) { padding-right: 0; }
  .calc-sec .wrap, .svc-grid, .faq .wrap, .cta .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .svc-grid { grid-template-areas: "tabs" "panel" "career"; grid-template-rows: auto; gap: 32px; }
  .career { margin-top: 0; }
  .comm { grid-template-columns: minmax(0, 1fr); }
  .comm-text { padding: 96px var(--gutter); }
  .chat-stage { padding: 56px var(--gutter); }
}
@media (max-width: 900px) {
  .nav, .head-actions .icon-btn:not(.menu-btn), .head-cta { display: none; }
  .header .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .brand { order: -1; }
  .menu-btn { display: grid; }
  .mnav { position: absolute; top: 100%; left: 0; right: 0; z-index: 99; background: var(--paper); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; box-shadow: 0 16px 24px rgba(0,0,0,.08); }
  .mnav.open { display: flex; }
  .mnav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.mnav .mnav-group { padding: 15px 0 4px; font-weight: 800; font-size: 17px; }
.mnav a.sub { padding: 10px 0 10px 16px; font-size: 16px; font-weight: 500; color: var(--text-2); border-bottom: 0; }
.mnav a.sub.end { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
  .bottom-bar { display: flex; }
  footer .wrap { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .only-d { display: none; }
  .only-m { display: block; }
  .topbar { display: none; }
  main { display: flex; flex-direction: column; }
  main > section { order: 2; }
  main > .hero { order: 0; }
  main > .calc-sec { order: 1; }
  .wordmark { font-size: 118px; padding-top: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-img { margin: -36px 20px 0; width: auto; height: 340px; }
  .hero-text { padding: 32px 0 0; }
  .hero h1 { font-size: 32px; margin: 10px 0 12px; }
  .hero-text p { font-size: 15px; margin-bottom: 0; }
  .hero-actions, .hero-side { display: none; }
  .calc-sec { background: var(--stone); }   /* 휴대폰에서는 첫 화면(크림) 바로 아래라 구분 */
  .calc-sec .wrap { padding-top: 28px; padding-bottom: 32px; gap: 0; }
  .calc-intro { display: none; }
  .calc { padding: 24px 20px; }
  .calc-title { display: block; }
  .seg button { font-size: 13.5px; padding: 12px 2px; }
  .calc-label { font-size: 13px; margin: 18px 0 4px; }
  .money input { font-size: 34px; }
  .res { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; }
  .res > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
  .res-value { font-size: 32px; }
  .res-sub { width: 100%; text-align: right; }
  .calc-actions { flex-direction: column; margin-top: 18px; }
  .band .wrap { padding: 0; gap: 0; }
  .band-item { padding: 22px 20px !important; flex-direction: column; align-items: flex-start; gap: 12px; border-left: 0 !important; border-bottom: 1px solid rgba(253,253,245,.15); }
  .band-item:nth-child(odd) { border-right: 1px solid rgba(253,253,245,.15); }
  .band-ic { width: 48px; height: 48px; }
  .band-ic .icon { width: 24px; height: 24px; }
  .band-item h3 { font-size: 17px; }
  .band-item p { font-size: 13px; margin: 0; }
  .band-item .go { display: none; }
  .hero-points { margin-top: 20px; padding-top: 16px; font-size: 13.5px; gap: 8px 16px; }
  .hero-caption { bottom: 18px; padding: 8px 14px; font-size: 14px; }
  .hero-caption b { font-size: 15px; }
  .comm-text { padding: 64px var(--gutter); }
  .points p { font-size: 14px; }
  .chat-stage { padding: 40px 16px; }
  .chat { font-size: 13.5px; }
  .msg { max-width: 100%; }
  .msg .row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .msg.me .row { flex-direction: column; align-items: flex-end; }
  .res-value.is-text { font-size: 22px; line-height: 1.68; }
  .svc .wrap, .fees .wrap, .faq .wrap { padding-top: 72px; padding-bottom: 72px; }
  .tab { padding: 18px 2px; }
  .tab .t { font-size: 20px; }
  .panel { padding: 24px 20px; }
  .panel h3 { font-size: 22px; }
  .panel > p { font-size: 15px; }
  .check li { font-size: 15px; padding: 13px 14px; }
  .fee-note, .extra { font-size: 13.5px; }
  .estate { padding: 26px 22px; }
  .insight .wrap { padding-top: 72px; padding-bottom: 72px; }
  .insight-head h2 { font-size: 28px; }
  .car-ctrl .link-u { display: none; }
  .track { grid-auto-columns: 88%; gap: 16px; }
  .post h3 { font-size: 17px; }
  .faq summary { font-size: 16px; padding: 20px 2px; }
  .faq details p { font-size: 15px; padding: 16px 18px; margin-bottom: 18px; }
  .cta .wrap { padding-top: 72px; padding-bottom: 72px; }
  .cta h2 { font-size: 34px; }
  .map { aspect-ratio: 4 / 3; }
  .info { grid-template-columns: 1fr 1fr; }
  .info > div:first-child { grid-column: 1 / -1; }
}

/* 아주 작은 휴대폰(400px 이하): 긴 글자가 칸 밖으로 나가지 않게 */
@media (max-width: 400px) {
  .seg button { font-size: 12.5px; padding: 10px 0; letter-spacing: -.02em; }
  .career li, .extra span { white-space: normal; }
  .hero-caption { font-size: 13px; padding: 8px 12px; }
  .hero-caption b { font-size: 14px; }
  .hero-caption span { margin-left: 6px; padding-left: 6px; font-size: 12px; }
}

/* 버튼·입력칸도 본문과 같은 나눔고딕 (브라우저 기본 글꼴로 바뀌지 않게) */
button, input, select, textarea { font-family: inherit; }

/* 펼침 메뉴의 현재 페이지 표시 */
.nav .nav-menu a[aria-current="page"] { background: var(--stone); }
.mnav a[aria-current="page"] { color: var(--green); font-weight: 800; }
