/* ============================================================
   PAL 홈페이지 — 메인(index.html)과 관리자 미리보기 공용 스타일
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: #F6F7FA;
  --card: #FFFFFF;
  --card-soft: #FFFFFF;
  --text: #1B2030;
  --muted: #5B6376;
  --faint: #8A92A6;
  --line: #E1E5EE;
  --primary: #4B44B8;
  --primary-deep: #3A3494;
  --tint: #EEF0F7;
  --grad: #3A3494;
  --grad-bar: #3A3494;
  --shadow: 0 1px 2px rgba(27, 32, 48, 0.06), 0 4px 14px rgba(27, 32, 48, 0.05);
  --shadow-hover: 0 2px 4px rgba(27, 32, 48, 0.08), 0 8px 22px rgba(27, 32, 48, 0.09);
  --blob-a: transparent;
  --blob-b: transparent;
  --blob-c: transparent;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
}

/* 테마: 기본은 기기 설정(시스템)을 따르고, <html data-theme="light|dark"> 가 있으면 그 값이 우선합니다. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1219;
    --card: #171B25;
    --card-soft: #171B25;
    --text: #E9ECF4;
    --muted: #A6AEC2;
    --faint: #7B849A;
    --line: #262C3A;
    --primary: #9A93F0;
    --primary-deep: #B5B0F6;
    --tint: #1E2330;
    --grad: #6C64D8;
    --grad-bar: #6C64D8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.45);
    --blob-a: transparent;
    --blob-b: transparent;
    --blob-c: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1219;
  --card: #171B25;
  --card-soft: #171B25;
  --text: #E9ECF4;
  --muted: #A6AEC2;
  --faint: #7B849A;
  --line: #262C3A;
  --primary: #9A93F0;
  --primary-deep: #B5B0F6;
  --tint: #1E2330;
  --grad: #6C64D8;
  --grad-bar: #6C64D8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.45);
  --blob-a: transparent;
  --blob-b: transparent;
  --blob-c: transparent;

  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(75, 68, 184, 0.22); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- 배경 ---------- */
/* 흐린 색 덩어리·움직이는 효과는 쓰지 않고, 차분한 단색 바탕만 써요. (마크업의 .bg 는 그대로 두고 보이지 않게만 해요) */
.bg { display: none; }

/* ---------- 상단 공지 배너 ---------- */
.banner { position: relative; background: var(--grad-bar); color: #fff; font-size: 0.9rem; line-height: 1.55; }
.banner-in { max-width: 1080px; margin: 0 auto; padding: 11px 52px 11px 20px; display: flex; align-items: flex-start; justify-content: center; gap: 10px; text-align: center; }
.banner-ic { flex: none; font-size: 1.05rem; line-height: 1.55; }
.banner p { margin: 0; min-width: 0; word-break: keep-all; }
.banner strong { font-weight: 800; }
.banner .sep { opacity: 0.6; margin: 0 8px; }
.banner-link { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.banner-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: #fff; opacity: 0.8; transition: background 0.2s, opacity 0.2s; }
.banner-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }

/* ---------- 헤더 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--card-soft); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; box-shadow: 0 6px 16px rgba(124, 92, 252, 0.35); }
.top-r { display: flex; align-items: center; gap: 8px; }
.mark-img { background: var(--card); box-shadow: 0 6px 16px rgba(124, 92, 252, 0.18); border: 1px solid var(--line); overflow: hidden; }
.mark-img img { width: 100%; height: 100%; object-fit: contain; }
.nav-link { font-weight: 700; font-size: 0.92rem; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav-link:hover { background: var(--tint); color: var(--primary-deep); }

/* ---------- 테마 선택 ---------- */
.theme-sw { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.theme-sw button { width: 32px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.theme-sw button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-sw button:hover { color: var(--primary-deep); }
.theme-sw button[aria-pressed="true"] { background: var(--card); color: var(--primary-deep); box-shadow: 0 2px 8px rgba(91, 63, 217, 0.18); }

/* ---------- 히어로 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { max-width: 760px; margin: 0 auto; padding: 84px 0 52px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--card-soft); border: 1px solid var(--line); color: var(--primary-deep); font-size: 0.82rem; font-weight: 800; box-shadow: var(--shadow); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #F5A524; box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}
.hero h1 { font-size: clamp(2rem, 1.1rem + 4.4vw, 3.5rem); line-height: 1.18; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 22px; text-wrap: balance; word-break: keep-all; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); font-size: 1.04rem; line-height: 1.85; word-break: keep-all; }
.lead p + p { margin-top: 12px; }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: 0.98rem; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(124, 92, 252, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(124, 92, 252, 0.45); }
.btn-ghost { background: var(--card-soft); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--tint); }

/* ---------- 서비스(바로가기) ---------- */
.services { padding: 8px 0 80px; scroll-margin-top: 72px; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); display: inline-flex; align-items: center; gap: 12px; }
.sec-head h2::before, .sec-head h2::after { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); opacity: 0.7; }
.sec-head p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.svc { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 22px; background: var(--card-soft); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s, border-color 0.25s; }
.svc:hover { transform: none; box-shadow: var(--shadow-hover); border-color: var(--primary); }
.ico { flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, rgba(124, 92, 252, 0.16), rgba(229, 139, 217, 0.20)); overflow: hidden; }
.ico-img { background: var(--card); border: 1px solid var(--line); }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.txt b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.txt small { color: var(--muted); font-size: 0.88rem; line-height: 1.5; word-break: keep-all; }
.go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary-deep); font-size: 1.3rem; line-height: 1; transition: transform 0.25s, background 0.25s, color 0.25s; }
.svc:hover .go { transform: none; background: var(--primary); color: #fff; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 푸터 ---------- */
.foot { text-align: center; padding: 28px 20px 48px; color: var(--faint); font-size: 0.82rem; border-top: 1px solid var(--line); max-width: 1080px; margin: 0 auto; }

/* ---------- 관리자 미리보기 ---------- */
.is-preview .top { position: static; }
.is-preview [data-edit] { cursor: pointer; }
.is-preview [data-edit]:hover { outline: 2px dashed var(--primary); outline-offset: 4px; border-radius: 14px; }
.is-preview .banner[data-edit]:hover { outline-offset: -2px; }
.is-preview .svc { animation: none; }

@media (max-width: 560px) {
  .hero { padding: 52px 0 36px; }
  .svc { padding: 16px; gap: 14px; }
  .ico { width: 50px; height: 50px; font-size: 1.5rem; border-radius: 15px; }
  .banner-in { text-align: left; justify-content: flex-start; padding-right: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 숨김(점검) 화면 ---------- */
body.is-site-hidden #app { display: none; }
.site-hidden { position: fixed; inset: 0; z-index: 30; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: var(--bg); color: var(--text); }
.site-hidden .sh-ic { font-size: 3rem; }
.site-hidden h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); letter-spacing: -0.02em; }
.site-hidden p { max-width: 460px; color: var(--muted); }

/* ============================================================
   확장 구성요소: 검색 · 분류 칩 · 배지 · 특징 · FAQ · 푸터 링크 · 상담 창
   ============================================================ */
.search { position: relative; max-width: 560px; margin: 30px auto 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-radius: 999px; background: var(--card-soft); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; transition: box-shadow 0.2s, border-color 0.2s; }
.search:focus-within { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.search-ic { font-size: 1.2rem; color: var(--primary); line-height: 1; flex: none; }
.search-in { flex: 1; min-width: 0; padding: 11px 4px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: none; -webkit-appearance: none; appearance: none; }
.search-in::placeholder { color: var(--faint); }
.search-in::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-k { flex: none; min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--tint); color: var(--muted); font: 700 0.78rem var(--font); }
.search-res { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); max-height: min(60vh, 420px); overflow: auto; }
.search-res[hidden] { display: none; }
.sr-i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); }
.sr-i:hover, .sr-i[aria-selected="true"] { background: var(--tint); }
.sr-i .ico { width: 36px; height: 36px; flex: none; font-size: 1.1rem; }
.sr-i b { display: block; font-size: 0.95rem; } .sr-i small { color: var(--muted); font-size: 0.8rem; }
.sr-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.sr-empty button { margin-top: 8px; color: var(--primary-deep); font-weight: 800; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-soft); color: var(--muted); font-weight: 700; font-size: 0.86rem; transition: background 0.15s, color 0.15s; }
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(124, 92, 252, 0.3); }
.svc[hidden] { display: none; }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--primary-deep); border: 1px solid var(--line); font-style: normal; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; }
.features, .faq { max-width: 1080px; margin: 0 auto; padding: 40px 20px 8px; }
.faq { padding-bottom: 48px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--card-soft); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feat-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); font-size: 1.4rem; }
.feat b { font-size: 1.02rem; } .feat p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-i { border-radius: 18px; background: var(--card-soft); border: 1px solid var(--line); overflow: hidden; }
.faq-i summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: '+'; color: var(--primary); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq-i[open] summary::after { content: '−'; }
.faq-i p { padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--muted); font-weight: 700; } .foot-links a:hover { color: var(--primary-deep); }

/* 상담 창 (왼쪽 아래: 오른쪽 아래는 관리자 진입 영역) */
.consult { position: fixed; left: 18px; bottom: 18px; z-index: 45; }
.consult-fab { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 0.95rem; box-shadow: 0 12px 28px rgba(124, 92, 252, 0.45); transition: transform 0.2s, box-shadow 0.2s; }
.consult-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124, 92, 252, 0.55); }
.consult-fab svg, .cs-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.cs-open .consult { visibility: hidden; }

.cs-panel { position: fixed; left: 18px; bottom: 18px; z-index: 46; width: min(392px, calc(100vw - 36px)); height: min(620px, calc(100dvh - 36px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 24px 64px rgba(30, 20, 80, 0.32); overflow: hidden; animation: csIn 0.22s cubic-bezier(.2, .8, .2, 1) both; }
.cs-panel[hidden] { display: none; }
@keyframes csIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.cs-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--grad); color: #fff; }
.cs-av { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.22); font-weight: 800; font-size: 1.05rem; }
.cs-ht { flex: 1; min-width: 0; line-height: 1.25; }
.cs-ht b { display: block; font-size: 1.02rem; }
.cs-ht small { display: block; font-size: 0.76rem; opacity: 0.88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-x { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cs-x:hover { background: rgba(255, 255, 255, 0.22); }
.cs-x svg { width: 18px; height: 18px; }
.cs-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cs-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--tint); line-height: 1.55; font-size: 0.92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-msg.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; }
.cs-msg small { display: block; opacity: 0.7; font-size: 0.72rem; margin-top: 4px; }
.cs-sub { margin-top: 4px; color: var(--faint); font-size: 0.76rem; font-weight: 700; }
.cs-faq { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-faq button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-soft); font-size: 0.82rem; font-weight: 700; color: var(--primary-deep); text-align: left; }
.cs-faq button:hover { background: var(--tint); }

.cs-form { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); background: var(--card); }
.cs-compose { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--tint); transition: border-color 0.15s, background 0.15s; }
.cs-compose:focus-within { border-color: var(--primary); background: var(--card); }
.cs-compose textarea { flex: 1; min-width: 0; max-height: 120px; min-height: 24px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.95rem; line-height: 1.45; resize: none; outline: none; }
.cs-send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(124, 92, 252, 0.35); transition: transform 0.15s, opacity 0.15s; }
.cs-send:hover:not(:disabled):not([aria-disabled="true"]) { transform: scale(1.06); }
.cs-send:disabled, .cs-send[aria-disabled="true"] { opacity: 0.4; box-shadow: none; cursor: not-allowed; }
.cs-send svg { width: 18px; height: 18px; }
.cs-contact { color: var(--primary-deep); font-size: 0.8rem; font-weight: 700; align-self: flex-start; padding: 2px 4px; }
.cs-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-contact-fields[hidden] { display: none; }
.cs-contact-fields input { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); color: inherit; font: inherit; font-size: 0.88rem; }
.cs-contact-fields input:focus { outline: none; border-color: var(--primary); background: var(--card); }
.cs-agree { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--muted); cursor: pointer; line-height: 1.4; }
.cs-agree input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cs-box { width: 20px; height: 20px; flex: none; border-radius: 7px; border: 1.5px solid var(--faint); background: var(--card); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.cs-box svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: opacity 0.12s, transform 0.12s; }
.cs-agree input:checked + .cs-box { background: var(--primary); border-color: var(--primary); }
.cs-agree input:checked + .cs-box svg { opacity: 1; transform: none; }
.cs-agree input:focus-visible + .cs-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.cs-agree a { color: var(--primary-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cs-agree em { font-style: normal; color: #E5485D; font-weight: 800; }
.cs-note { font-size: 0.74rem; color: var(--faint); }
.cs-err { font-size: 0.8rem; color: #E5485D; font-weight: 600; min-height: 1.1em; }
.cs-err:empty { display: none; }
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  .consult { left: 12px; bottom: 12px; }
  .consult-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .consult-fab span { display: none; }
  .cs-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 640px); border-radius: 24px 24px 0 0; border-bottom: 0; }
  .cs-contact-fields { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .cs-panel { animation: none; } }
.nav-link { white-space: nowrap; }

/* ---------- 코드 페이지(샌드박스 iframe) ---------- */
body.is-code-page { overflow: hidden; }
.code-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
body.is-preview .code-frame { position: absolute; }
body.is-code-page .bg { display: none; }

/* 아이콘이 없는 특징 카드는 번호로 표시 */
.feat-ic.feat-no { font-size: .9rem; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; }

/* 아이콘을 안 정한 서비스 카드는 이름의 첫 글자로 표시 */
.ico.ico-mono { font-weight: 700; font-size: 1.15rem; color: var(--primary-deep); background: var(--tint); }
