/* 공통: 색·글꼴·기본 요소 (고객 화면, 세무사 화면 함께 씀) */
:root {
  --brand: #1b3a6b;
  --brand-2: #2a5196;
  --primary: #2f63e8;
  --primary-press: #234fc4;
  --primary-weak: #edf2fe;
  --save: #2563eb;
  --text: #191f28;
  --text-2: #4e5968;
  --muted: #8b95a1;
  --faint: #c4cad1;
  --bg: #f2f4f6;
  --card: #ffffff;
  --line: #e5e8eb;
  --line-2: #f2f4f6;
  --fill: #f2f4f6;
  --ok: #0b8a5f;
  --ok-weak: #e7f6ef;
  --warn: #b45309;
  --warn-weak: #fff4e0;
  --bad: #d63c41;
  --bad-weak: #fdeced;
  --gold: #a16207;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-up: 0 -6px 20px rgba(16, 24, 40, .06);
  --r: 16px;
  --r-lg: 22px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #9db8ff;
    --brand-2: #b9ccff;
    --primary: #4d7cfe;
    --primary-press: #3a68e8;
    --primary-weak: #1a2442;
    --save: #6f9bff;
    --text: #eceff3;
    --text-2: #b4bcc7;
    --muted: #8a94a1;
    --faint: #4a525d;
    --bg: #0e1014;
    --card: #181b21;
    --line: #2a2f37;
    --line-2: #20242b;
    --fill: #22262e;
    --ok: #3ccf91;
    --ok-weak: #13281f;
    --warn: #f0b04a;
    --warn-weak: #2c2212;
    --bad: #ff7a7f;
    --bad-weak: #311719;
    --gold: #e5b453;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-up: 0 -6px 20px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #9db8ff; --brand-2: #b9ccff; --primary: #4d7cfe; --primary-press: #3a68e8; --primary-weak: #1a2442; --save: #6f9bff;
  --text: #eceff3; --text-2: #b4bcc7; --muted: #8a94a1; --faint: #4a525d; --bg: #0e1014; --card: #181b21; --line: #2a2f37; --line-2: #20242b; --fill: #22262e;
  --ok: #3ccf91; --ok-weak: #13281f; --warn: #f0b04a; --warn-weak: #2c2212; --bad: #ff7a7f; --bad-weak: #311719; --gold: #e5b453;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25); --shadow-up: 0 -6px 20px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 10px; }
.logo-light { display: inline-block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: inline-block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #191f28; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* 사무소 홈페이지(/): 사무소 소개·하는 일·상담 순서·오시는 길, 오월엔 입구. 첫 화면은 남색 상자 안에 소개와 오월엔 카드, 휴대폰은 아래 고정 버튼, 넓은 화면은 두 칸 */
:root { --navy: #1b3a6b; --navy-2: #142f5a; --navy-3: #0d2346; --sky: #a9c6ff; --tile: #edf2fa; --tile-fg: #1b3a6b; --mark: #1b3a6b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy: #18325d; --navy-2: #112749; --navy-3: #0b1a33; --tile: #1a2442; --tile-fg: #9db8ff; --mark: #3a64c8; } }
:root[data-theme="dark"] { --navy: #18325d; --navy-2: #112749; --navy-3: #0b1a33; --tile: #1a2442; --tile-fg: #9db8ff; --mark: #3a64c8; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--card); }
.in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 72px; }
.nw { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* 버튼 (고객 화면과 같은 모양, 남색 바탕 위는 흰 버튼·테두리 버튼) */
.btn {
  height: 54px; border: 0; border-radius: 16px; background: var(--primary); color: #fff; font-size: 16.5px; font-weight: 700;
  padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .12s ease;
}
.btn:hover { background: var(--primary-press); }
.btn:active { transform: scale(.97); }
.btn.gray { background: var(--fill); color: var(--text); }
.btn.gray:hover { background: var(--line); }
.btn.white { background: #fff; color: #14305a; }
.btn.white:hover { background: #e8eefa; }
.btn.line { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.btn.line:hover { background: rgba(255, 255, 255, .13); }
.btn.small { height: 46px; font-size: 15px; border-radius: 13px; padding: 0 16px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* 머리 */
.hd {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.hd-in { max-width: 1120px; margin: 0 auto; height: 58px; padding: 0 16px 0 20px; display: flex; align-items: center; gap: 8px; }
.hd .brand { display: flex; align-items: center; flex: 1; min-width: 0; }
.hd .brand img { height: 28px; width: auto; }
.nav { display: none; gap: 2px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 12px; border-radius: 10px; }
.nav a:hover { background: var(--fill); color: var(--text); }
.hd-tel { display: none; align-items: center; gap: 6px; margin-left: 6px; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.hd-tel:hover { background: var(--fill); }
.hd-tel svg { width: 16px; height: 16px; color: var(--primary); }
.hd-cta {
  display: none; flex: none; align-items: center; height: 40px; padding: 0 16px; margin-left: 6px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.hd-cta:hover { background: var(--primary-press); }

/* 남색 상자(첫 화면·마지막 상담 안내): 은은한 빛 + 옅은 격자 */
.hero-box, .cta {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(110% 75% at 100% 0%, rgba(77, 124, 254, .36) 0%, transparent 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(47, 99, 232, .2) 0%, transparent 62%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.hero-box::before, .cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 65% at 78% 18%, #000 0%, transparent 78%); mask-image: radial-gradient(75% 65% at 78% 18%, #000 0%, transparent 78%);
}

/* 첫 화면 */
.hero { padding: 8px 8px 0; }
.hero-box { max-width: 1280px; margin: 0 auto; border-radius: 28px; }
.hero-in { display: grid; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 28px 20px 20px; }
.eyebrow { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #dbe6ff; font-size: 14px; font-weight: 700; }
.hero h1 { margin: 16px 0 0; font-size: clamp(31px, 8.4vw, 58px); line-height: 1.22; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { display: block; font-style: normal; color: var(--sky); }
.lead { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); max-width: 30em; }
.acts { display: none; gap: 10px; margin-top: 32px; }

/* 오월엔 입구 (남색 상자 위 흰 카드) */
.ow { background: var(--card); color: var(--text); border-radius: 24px; padding: 22px 20px 10px; box-shadow: 0 24px 64px rgba(4, 12, 32, .34), 0 2px 6px rgba(4, 12, 32, .1); }
.ow-tag { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 650; color: var(--text-2); }
.ow-tag b { padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 800; }
.ow h2 { margin: 12px 0 0; font-size: 23px; line-height: 1.38; letter-spacing: -0.03em; font-weight: 800; }
.ow p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.ow-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ow-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 8px; border-radius: 11px; background: var(--fill); font-size: 14px; font-weight: 650; }
.ow-chips li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ow .btn { display: flex; width: 100%; height: 56px; margin-top: 18px; font-size: 17px; }
.ow-more { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; padding: 12px 10px; border-radius: 12px; color: var(--primary); font-size: 15px; font-weight: 700; text-decoration: none; }
.ow-more:hover { background: var(--primary-weak); }
.ow-more svg { width: 18px; height: 18px; flex: none; }
.ow .ow-soon { display: inline-block; margin: 22px 0 14px; padding: 9px 16px; border-radius: 999px; background: var(--primary-weak); color: var(--primary); font-size: 15px; font-weight: 700; }

/* 구역 공통 */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg); }
.sec-head { margin-bottom: 32px; }
.sec-h { margin: 0; font-size: clamp(27px, 6.6vw, 40px); line-height: 1.3; letter-spacing: -0.035em; font-weight: 800; }
.sec-sub { margin: 10px 0 0; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }

/* 하는 일 */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc li { background: var(--card); border-radius: 22px; padding: 24px 22px 26px; box-shadow: var(--shadow); }
.ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tile); color: var(--tile-fg); }
.ic svg { width: 25px; height: 25px; }
.svc h3 { margin: 18px 0 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.025em; font-weight: 750; }
.svc p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 639px) {
  /* 휴대폰은 아이콘을 왼쪽에 두고 글을 오른쪽에(목록처럼) */
  .svc li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 20px 20px 22px; }
  .svc .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; }
  .svc .ic svg { width: 23px; height: 23px; }
  .svc h3 { margin: 10px 0 0; font-size: 18px; }
  .svc p { margin-top: 6px; }
}

/* 상담 순서 (휴대폰은 세로 줄, 넓은 화면은 가로 줄로 잇기) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.flow li { position: relative; padding-left: 64px; }
.flow li > b { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mark); color: #fff; font-size: 17px; font-weight: 800; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 54px; bottom: -22px; width: 2px; border-radius: 2px; background: var(--line); }
.flow h3 { margin: 9px 0 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.025em; font-weight: 750; }
.flow p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }

/* 사무소 안내·오시는 길 */
.about { display: grid; gap: 28px; }
.about .who { margin: 14px 0 0; font-size: 17px; line-height: 1.65; font-weight: 650; }
.pledge { margin: 24px 0 0; padding: 24px 22px 20px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.pledge blockquote { margin: 0; }
.pledge blockquote::before { content: "\201C"; display: block; height: 30px; color: var(--primary); font: 800 60px/1 Georgia, "Times New Roman", serif; }
.pledge blockquote p { margin: 0; font-size: clamp(18px, 5.3vw, 21px); line-height: 1.6; letter-spacing: -0.025em; font-weight: 700; }
.pledge figcaption { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pledge figcaption span { color: var(--text-2); font-size: 15px; font-weight: 600; }
.pledge figcaption b { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
.vcard { background: var(--card); border-radius: 24px; padding: 24px 22px; box-shadow: var(--shadow); }
.vcard h3 { margin: 0 0 14px; font-size: 15px; color: var(--text-2); font-weight: 700; }
.addr { display: flex; gap: 8px; margin: 0; font-size: 18px; font-weight: 750; line-height: 1.5; letter-spacing: -0.02em; }
.addr svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 2px; }
.addr small { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }
.maps { display: flex; gap: 8px; margin-top: 18px; }
.maps .btn { flex: 1; }
.contact { margin: 20px 0 0; border-top: 1px solid var(--line); }
.contact div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--text-2); font-weight: 600; }
.contact dd { margin: 0; font-weight: 700; text-align: right; }
.contact a { text-decoration: none; }
.note { margin: 14px 0 0; font-size: 14.5px; color: var(--text-2); }

/* 마지막 상담 안내 */
.cta-sec { padding: 64px 8px; }
.cta { max-width: 1120px; margin: 0 auto; padding: 44px 22px; border-radius: 28px; text-align: center; }
.cta h2 { margin: 0; font-size: clamp(24px, 6vw, 34px); line-height: 1.38; letter-spacing: -0.035em; font-weight: 800; }
.cta .acts { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

/* 아래 */
.ft { padding: 40px 0 128px; color: var(--text-2); font-size: 14px; line-height: 1.7; border-top: 1px solid var(--line); background: var(--card); }
.ft p { margin: 4px 0 0; }
.ft .ft-logo { margin: 0 0 10px; }
.ft-logo img { height: 26px; width: auto; }
.ft a { color: var(--text-2); font-weight: 700; }
.ft-links { margin-top: 10px !important; }
.ft-copy { color: var(--muted); }

/* 휴대폰 아래 고정 버튼 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.dock .btn { flex: 1; height: 52px; }

@media (min-width: 640px) {
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .nav, .hd-cta { display: flex; }
  .hd-in { height: 64px; }
  .acts { display: flex; flex-wrap: wrap; }
  .dock { display: none; }
  .ft { padding-bottom: 48px; }
  .hero { padding: 12px 16px 0; }
  .hero-box { border-radius: 32px; }
  .hero-in { gap: 32px; padding: 64px 48px 48px; }
  .eyebrow { padding: 7px 13px; }
  .hero h1 { margin-top: 18px; line-height: 1.24; }
  .lead { margin-top: 18px; font-size: 17.5px; line-height: 1.7; }
  .ow { padding: 30px 28px 16px; }
  .ow h2 { margin-top: 14px; font-size: 25px; }
  .ow p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; }
  .ow-chips { margin-top: 18px; gap: 8px; }
  .ow-chips li { padding: 8px 12px 8px 9px; border-radius: 12px; font-size: 14.5px; }
  .ow .btn { margin-top: 22px; }
  .cta-sec { padding: 88px 16px; }
  .cta { padding: 60px 40px; }
  .cta .acts { flex-direction: row; justify-content: center; }
}
@media (min-width: 960px) {
  .hd-tel { display: inline-flex; }
  .sec { padding: 112px 0; }
  .sec-head { margin-bottom: 44px; }
  .sec-sub { margin-top: 12px; font-size: 17.5px; }
  .svc { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .svc li { padding: 30px 28px 32px; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flow li { padding: 0; }
  .flow li > b { position: static; }
  .flow li:not(:last-child)::after { left: 60px; right: -16px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow h3 { margin-top: 22px; font-size: 20px; }
  .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
  .pledge { padding: 30px 30px 24px; }
  .pledge blockquote p { font-size: 23px; }
  .vcard { padding: 32px; }
  .ft-in { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: start; }
  .ft-in .ft-links { grid-column: 2; grid-row: 1; margin-top: 2px !important; }
  .ft-in > p:not(.ft-links) { grid-column: 1; }
}
@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; padding: 96px 64px; }
  .lead { font-size: 18.5px; }
  .ow { max-width: none; padding: 34px 32px 18px; border-radius: 28px; }
  .ow h2 { font-size: 27px; }
}
