/* 크리티컬 대표홈페이지 공통 스타일 — 원본: critical-site src/styles/index.css(Tailwind 처리) + 레이아웃 컴포넌트 */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 스크롤 잠금(인트로·사이트맵) 해제 시 스크롤바가 생기며 중앙 정렬 콘텐츠가 옆으로 튀는 것 방지 */
  scrollbar-gutter: stable;
}

body {
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'tnum' 1;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: var(--ink);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

input,
  select,
  textarea {
  font-size: 16px;
  /* iOS 자동 줌 방지 */
}

::-moz-selection {
  background: var(--brand);
  color: #fff;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.inner {
  width: 100%;
  max-width: calc(1440px + var(--gutter) * 2);
  /* 원본 --inner: 1440px */
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.inner--wide {
  max-width: calc(1440px + var(--gutter) * 2);
  /* 원본 기준: 큰 화면에서 본문 1440px */
}

.sec {
  padding: var(--sec-py) 0;
}

/* 섹션 라벨: "02 — SERVICES" (번호는 빨강, 얇은 구분선) */

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.sec-label b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}

.sec-label b::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--line);
}

.sec-title {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.sec-title em {
  font-style: normal;
  color: var(--brand);
}

/* 가운데 정렬 섹션 머리글 (SEO · AEO · GEO 페이지) — 영문 한 줄 + 큰 제목 */

.sg-head {
  text-align: center;
}

.sg-head__en {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sg-head__en::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 0.2em;
}

.sg-head__title {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.sg-head__title em {
  font-style: normal;
  color: var(--brand);
}

.sg-head__desc {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--mute);
  word-break: keep-all;
}

@media (max-width: 768px) {
  .sg-head__en {
    font-size: 16px;
  }

  .sg-head__title {
    margin-top: 12px;
  }

  .sg-head__desc {
    font-size: 15.5px;
  }
}

/* 도면 그리드 배경 (밝은 / 어두운 바탕) */

/* 제목 아래 한 줄 요약 */

.sec-lead {
  margin-top: 12px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: keep-all;
}

/* 스크롤 등장 */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal='in'] {
  opacity: 1;
  transform: none;
}

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.isolate {
  isolation: isolate;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-grow {
  flex-grow: 1;
}

.border-collapse {
  border-collapse: collapse;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.flex-wrap {
  flex-wrap: wrap;
}

.border {
  border-width: 1px;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.underline {
  text-decoration-line: underline;
}

.outline {
  outline-style: solid;
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* CRITICAL 브랜드 토큰 — LOGO DESIGN.pdf 컬러웨이 기준 */

:root {
  --brand: #ed1c2e;
  /* PANTONE P 48-8 C */
  --brand-deep: #9b0e1f;
  /* PANTONE P 54-8 C */
  --maroon: #7a0f14;
  /* 워드마크 */
  --brand-soft: #fdecee;
  --gold: #ffc400;
  /* PANTONE 7548 */
  --orange: #e68a00;
  /* PANTONE 7564 */
  --ink: #1b1b1b;
  --ink-2: #2e2f33;
  --mute: #6b6f76;
  --line: #e6e6e8;
  --paper: #f6f6f7;
  --dark: #1b1b1b;
  --dark-2: #26272b;
  --grad-brand: linear-gradient(135deg, #7a0f14 0%, #b3121f 45%, #ed1c2e 100%);
  --grad-gold: linear-gradient(90deg, #ffc400, #e68a00);
  --font-display: 'Chakra Petch', Pretendard, sans-serif;
  /* 번호·라벨용 서체 — 본문 서체 + 고정폭 숫자 */
  --font-mono: Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  /* 모서리 — 카드·박스 / 버튼·칩 */
  --radius-eng: 16px;
  --radius-pill: 10px;
  /* 그리드 배경은 사용하지 않음 (미니멀 톤) */
  --grid-line: transparent;
  --grid-line-dark: transparent;
  /* 은은한 그림자 */
  --shadow-sm: 0 0 0 1px rgba(17, 19, 24, 0.03), 0 1px 2px rgba(17, 19, 24, 0.05), 0 6px 16px rgba(17, 19, 24, 0.05);
  --shadow-md: 0 0 0 1px rgba(17, 19, 24, 0.03), 0 2px 6px rgba(17, 19, 24, 0.05), 0 20px 44px rgba(17, 19, 24, 0.09);
  --header-h: 88px;
  --sec-py: 124px;
  --gutter: 40px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --sec-py: 72px;
    --gutter: 20px;
    --radius: 14px;
    --radius-eng: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── 첫 진입 인트로 단계별 노출 (layouts/partials/IntroLogo.vue · stores/layout.ts) ──
   title  : 페이지는 숨기고 히어로 제목([data-intro-hero])과 헤더 로고만 노출
   reveal : 나머지 요소 페이드인 */

html[data-intro='title'] .wrapper {
  visibility: hidden;
}

html[data-intro='title'] [data-intro-hero],
html[data-intro='title'] .header__logo {
  visibility: visible;
}

html[data-intro='reveal'] .header__inner > :not(.header__logo),
html[data-intro='reveal'] .float,
html[data-intro='reveal'] .chatbot,
html[data-intro='reveal'] .hero__mark,
html[data-intro='reveal'] .promo,
html[data-intro='reveal'] main:not(:has([data-intro-hero])) {
  animation: intro-page-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes intro-page-in {
  from {
    opacity: 0;
  }
}

/* 검색 결과로 이동했을 때 찾은 단어 강조 (assets/composables/useSearchJump.ts) */

mark.search-hit {
  border-radius: 4px;
  background: rgba(237, 28, 46, 0.18);
  box-shadow: 0 0 0 4px rgba(237, 28, 46, 0.18);
  color: inherit;
  animation: search-hit 1.2s ease-in-out 3;
}

@keyframes search-hit {
  50% {
    background: rgba(237, 28, 46, 0.38);
    box-shadow: 0 0 0 6px rgba(237, 28, 46, 0.28);
  }
}


/* ── layouts/partials/BrandLogo.vue ── */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  width: auto;
  height: 46px;
}
/* 다크·컬러 배경용 단색 화이트 (컬러웨이 2안) */
.logo--white img {
  filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
  .logo img {
    height: 34px;
  }
}

/* ── layouts/partials/AppHeader.vue ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.header.is-open,
.header.is-dark {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}
.header.is-dark-fill {
  background: rgba(27, 27, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.is-dark .gnb__link {
  color: rgba(255, 255, 255, 0.92);
}
.is-dark .gnb__link:hover,
.is-dark .gnb__link.is-active {
  color: #fff;
}
.is-dark .btn-circle {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
/* 레드 계열 히어로 위: 문의하기 버튼을 흰색으로 반전 */
.is-dark.is-on-brand .btn-quote {
  background: #fff;
  color: var(--brand);
}
/* 어두운 · 레드 히어로 위: 활성 언더라인을 흰색으로 (빨간 배경에 묻히지 않게) */
.is-dark .gnb__link::after {
  background: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--gutter);
}
.header__logo {
  flex-shrink: 0;
}
/* 첫 진입 인트로 로고가 날아와 앉을 때까지 자리만 유지 */
.header__logo.is-intro {
  visibility: hidden;
}

.gnb {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  --gnb-gap: 20px;
}
.gnb__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--gnb-gap);
  font-size: 16px;
  font-weight: 600;
  color: #45484e;
  white-space: nowrap;
  transition: color 0.2s;
}
/* 활성 메뉴 언더라인 */
.gnb__link::after {
  content: '';
  position: absolute;
  left: var(--gnb-gap);
  right: var(--gnb-gap);
  bottom: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.gnb__link:hover,
.gnb__link.is-active {
  color: var(--brand);
}
.gnb__link:hover::after,
.gnb__link.is-active::after {
  transform: scaleX(1);
}
.is-open .gnb {
  visibility: hidden;
}

.header__util {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
/* 양 끝 최대 곡률(필 형태) */
.btn-quote {
  display: inline-grid;
  place-items: center;
  height: 44px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s;
}
.btn-quote:hover {
  background: var(--brand-deep);
}
.is-open .btn-quote {
  background: #fff;
  color: var(--brand);
}
.btn-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: inherit;
}
.is-open .btn-circle {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.btn-menu {
  position: relative;
}
.btn-menu i {
  position: absolute;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.btn-menu i:first-child {
  top: 16px;
  width: 18px;
}
.btn-menu i:last-child {
  top: 24px;
  width: 11px;
  background: var(--brand);
}
.is-open .btn-menu i:first-child,
.is-open .btn-menu i:last-child {
  top: 20px;
  width: 18px;
  background: currentColor;
}
.is-open .btn-menu i:first-child {
  transform: rotate(45deg);
}
.is-open .btn-menu i:last-child {
  transform: rotate(-45deg);
}

@media (max-width: 1680px) {
  .gnb {
    --gnb-gap: 15px;
  }
  .gnb__link {
    font-size: 15px;
  }
}
@media (max-width: 1520px) {
  .gnb {
    --gnb-gap: 12px;
  }
}
@media (max-width: 1420px) {
  .gnb {
    display: none;
  }
}
@media (max-width: 768px) {
  .header__util {
    gap: 6px;
  }
  .btn-quote {
    padding: 0 16px;
    font-size: 14px;
  }
  /* 검색 버튼까지 4개가 들어가도록 375px 기준 로고 축소 */
  .header__logo img {
    height: 30px;
  }
}

/* ── layouts/partials/SiteMap.vue ── */
.sitemap {
  --sm-ease: cubic-bezier(0.4, 0, 0.3, 1);
  /* 원이 퍼지는 중심 = 헤더 우측 메뉴 버튼 */
  --mx: calc(100% - var(--gutter) - 22px);
  --my: calc(var(--header-h) / 2);
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  overflow-y: auto;
  background:
    url('../img/brand/symbol.webp') no-repeat right -80px bottom -120px / 520px auto,
    var(--grad-brand);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  clip-path: circle(0 at var(--mx) var(--my));
  transition:
    clip-path 0.8s var(--sm-ease),
    opacity 0.4s var(--sm-ease) 0.4s,
    visibility 0s 0.8s;
}
.sitemap.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: circle(150% at var(--mx) var(--my));
  transition:
    clip-path 0.8s var(--sm-ease),
    opacity 0.4s var(--sm-ease),
    visibility 0s;
}
.sitemap__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 20px;
  width: min(1560px, calc(100% - var(--gutter) * 2));
  margin: auto;
  padding: calc(var(--header-h) + 24px) 0 40px;
}
/* 목록 → 연락처 순차 페이드 */
.sitemap__nav,
.sitemap__info {
  opacity: 0;
  transition: opacity 0.2s var(--sm-ease);
}
.is-open .sitemap__nav {
  opacity: 1;
  transition: opacity 0.65s var(--sm-ease) 0.43s;
}
.is-open .sitemap__info {
  opacity: 1;
  transition: opacity 0.65s var(--sm-ease) 0.62s;
}

.sitemap__nav {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: start;
  column-gap: clamp(56px, 7vw, 140px);
  padding-left: clamp(24px, 6vw, 120px);
}
.sitemap__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.9svh, 26px);
}
.sitemap__item {
  position: relative;
  transition: transform 0.2s var(--sm-ease);
}
.sitemap__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: min(2.2vw, 3.6svh, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 0.2s var(--sm-ease);
}
/* 호버 시 왼쪽에 나타나는 점 */
.sitemap__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(16px, 1.6vw, 24px);
  height: clamp(16px, 1.6vw, 24px);
  margin-top: calc(-0.5 * clamp(16px, 1.6vw, 24px));
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(200%);
  transition:
    opacity 0.2s var(--sm-ease),
    transform 0.2s var(--sm-ease);
}
.sitemap__link.router-link-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
@media (hover: hover) {
  .sitemap__nav:has(.sitemap__item:hover) .sitemap__item:not(:hover) .sitemap__link {
    color: rgba(255, 255, 255, 0.34);
  }
  .sitemap__item:hover {
    transform: translateX(60px);
  }
  .sitemap__item:hover .sitemap__link::before {
    opacity: 1;
    transform: translateX(-200%);
  }
}

.sitemap__info {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6svh, 96px);
}
.sitemap__facts {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 24px);
}
.sitemap__facts dt {
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.sitemap__facts dd {
  margin-top: 4px;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
}
.sitemap__tel {
  font-family: var(--font-display);
  font-size: clamp(24px, 1.9vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sitemap__facts dd span {
  display: block;
  font-size: clamp(13px, 0.9vw, 15px);
  color: rgba(255, 255, 255, 0.78);
}
.sitemap__btns {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sitemap__btns a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
}
.sitemap__btns a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sitemap__btns svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sitemap__btns i {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .sitemap,
  .sitemap.is-open,
  .sitemap__nav,
  .sitemap__info,
  .is-open .sitemap__nav,
  .is-open .sitemap__info {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}
@media (max-width: 1100px) {
  .sitemap__info {
    grid-column: 8 / span 5;
  }
}
@media (max-width: 768px) {
  .sitemap {
    display: block;
    background:
      url('../img/brand/symbol.webp') no-repeat right -90px bottom -90px / 300px auto,
      var(--grad-brand);
  }
  /* 스크롤 시 메뉴가 투명 헤더(로고·버튼) 아래로 겹치지 않도록 상단 띠 */
  .sitemap::before {
    content: '';
    position: sticky;
    top: 0;
    z-index: 1;
    display: block;
    height: calc(var(--header-h) + 12px);
    margin-bottom: calc((var(--header-h) + 12px) * -1);
    background: linear-gradient(100deg, #860f18 0%, #a8111e 60%, #b9131f 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
    mask-image: linear-gradient(180deg, #000 78%, transparent);
  }
  .sitemap__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 48px;
    padding: calc(var(--header-h) + 28px) 0 56px;
  }
  .sitemap__nav,
  .sitemap__info {
    grid-column: 1;
  }
  .sitemap__nav {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding-left: 0;
  }
  /* 모바일 터치 영역 44px 확보 */
  .sitemap__list {
    gap: 0;
  }
  .sitemap__link {
    min-height: 44px;
    font-size: 22px;
  }
  .sitemap__info {
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* ── layouts/partials/AppFooter.vue ── */
.footer {
  position: relative;
  padding: 80px 0 64px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* 큰 한 줄 + 작은 두 줄 설명 */
.footer__msg-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.footer__msg-title em {
  font-style: normal;
  color: var(--brand);
}
.footer__msg-sub {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: #fff;
  word-break: keep-all;
}
.mo-br {
  display: none;
}
.footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.05em;
  transition: color 0.35s var(--ease);
}
.footer__cta-link:hover {
  color: var(--brand);
}
/* 얇은 원형 테두리 + 둥근 선 화살표 — 호버 시 레드로 채워지며 살짝 이동 */
.footer__cta-arrow {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.footer__cta-link:hover .footer__cta-arrow {
  border-color: var(--brand);
  background: var(--brand);
  transform: translateX(6px);
}

.footer__main {
  display: grid;
  grid-template-columns: 240px 1fr 440px;
  padding-top: 40px;
  font-size: 14px;
  line-height: 1.9;
  color: #b4b7bd;
}
.footer__copy {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6f7279;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.footer__services li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #b4b7bd;
}
.footer__links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #b4b7bd;
}
.footer__links li:first-child a {
  color: var(--gold);
  font-weight: 700;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__links a:hover {
  color: #fff;
}

@media (max-width: 1280px) {
  .footer__main {
    grid-template-columns: 240px 1fr;
    row-gap: 24px;
  }
  .footer__contact {
    grid-column: 2;
  }
}
@media (max-width: 768px) {
  .footer {
    padding: 56px 0 100px;
  }
  .footer__cta {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 36px;
  }
  .footer__msg-title {
    font-size: 26px;
  }
  .footer__msg-sub {
    margin-top: 10px;
    font-size: 15px;
  }
  .mo-br {
    display: inline;
  }
  .footer__cta-link {
    gap: 14px;
    font-size: 40px;
  }
  .footer__cta-arrow {
    width: 48px;
    height: 48px;
  }
  .footer__cta-arrow svg {
    width: 20px;
    height: 20px;
  }
  .footer__main {
    grid-template-columns: 1fr;
    font-size: 13px;
    line-height: 1.8;
  }
  .footer__contact {
    grid-column: auto;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── layouts/partials/FloatUtil.vue ── */
.gauge {
  position: fixed;
  top: 350px;
  right: 28px;
  z-index: 80;
  width: 3px;
  height: 200px;
  background: var(--line);
}
.gauge__bar {
  display: block;
  width: 100%;
  height: 30px;
  background: var(--brand);
}

.mbar {
  display: none;
}

/* 보안 점검 바로가기 — 왼쪽 아래, 흰 바탕 · 검정 테두리의 담백한 탭 */
.sec-fab {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}
.sec-fab:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.sec-fab__ico {
  flex-shrink: 0;
  color: var(--brand);
}
.sec-fab:hover .sec-fab__ico {
  color: #fff;
}
.sec-fab__go {
  margin-left: 2px;
  transition: transform 0.2s;
}
.sec-fab:hover .sec-fab__go {
  transform: translateX(3px);
}
.top {
  position: fixed;
  left: 28px;
  bottom: 92px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 52px;
  height: 52px;
  padding: 0;
  /* 다크 섹션 위에서도 보이도록 옅은 테두리 */
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 27, 27, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease),
    visibility 0.3s;
}
.top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.top:hover {
  background: var(--brand);
}

@media (max-width: 1280px) {
  .gauge {
    display: none;
  }
}
@media (max-width: 768px) {
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
  }
  .mbar li {
    flex: 1;
  }
  .mbar__link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 52px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
  }
  .mbar__link.is-brand {
    background: var(--brand);
  }
  /* 하단 고정 바 위 · 터치 영역 44px */
  /* 휴대폰: 보안 점검은 아이콘 + 짧은 글자, TOP은 그 위 */
  .sec-fab {
    left: 16px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
  .top {
    left: 16px;
    bottom: calc(124px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}

/* ── layouts/partials/IntroLogo.vue ── */
.intro {
  /* 제목 단계에서 .wrapper 가 숨겨져도 인트로 로고는 보이도록 */
  visibility: visible;
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro.is-in {
  pointer-events: auto;
}
/* 흰 배경 셔터 — 로고가 날아갈 때 위 · 아래로 갈라져 열림 */
.intro__shut {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #fff;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1) 0.1s;
}
/* 맞닿은 가장자리에 빨간 선 — 셔터가 갈라지면 선이 위 · 아래 끝으로 밀려나며 움직임이 보임 */
.intro__shut.is-top {
  top: 0;
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 16px 40px rgba(27, 27, 27, 0.08);
}
.intro__shut.is-bot {
  bottom: 0;
  border-top: 3px solid var(--brand);
  box-shadow: 0 -16px 40px rgba(27, 27, 27, 0.08);
}
/* 로고가 중앙에 있는 동안은 선을 감춤 — 날아가는 순간 가운데 선이 보이며 갈라짐 */
.intro.is-in .intro__shut {
  border-color: transparent;
  box-shadow: none;
}
.intro.is-fly .intro__shut.is-top,
.intro.is-out .intro__shut.is-top {
  transform: translateY(-100%);
}
.intro.is-fly .intro__shut.is-bot,
.intro.is-out .intro__shut.is-bot {
  transform: translateY(100%);
}

.intro__mark {
  position: relative;
  display: grid;
  place-items: center;
}
.intro__logo {
  position: relative;
  width: min(560px, 62vw);
  height: auto;
  /* 왼쪽부터 드러남 — 빨간 막대가 지나간 자리 */
  animation: intro-reveal 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.15s backwards;
  transition:
    transform 0.9s cubic-bezier(0.76, 0, 0.24, 1),
    filter 0.9s ease;
  will-change: transform;
}
@keyframes intro-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
/* 로고를 쓸고 지나가는 빨간 막대 */
.intro__wipe {
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: 0;
  width: 14%;
  background: var(--brand);
  transform: skewX(-12deg);
  opacity: 0;
  animation: intro-wipe 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}
@keyframes intro-wipe {
  0% {
    left: -14%;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
/* 로고 아래 로딩 선 */
.intro__load {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  width: 34%;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(27, 27, 27, 0.08);
  transform: translateX(-50%);
  animation: intro-fade 0.3s ease 0.8s backwards;
}
.intro__load i {
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-load 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.8s forwards;
}
@keyframes intro-load {
  to {
    transform: scaleX(1);
  }
}
@keyframes intro-fade {
  from {
    opacity: 0;
  }
}
.intro.is-fly .intro__load,
.intro.is-out .intro__load {
  opacity: 0;
  transition: opacity 0.2s;
}
.intro.is-out .intro__logo {
  opacity: 0;
  transition: opacity 0.2s;
}

@media (max-width: 768px) {
  .intro__logo {
    width: 72vw;
  }
}

/* ── layouts/partials/ChatBot.vue ── */
.chatbot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 95;
}

/* 런처 버튼 */
.cb-launch {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(237, 28, 46, 0.25);
  transition:
    transform 0.3s var(--ease),
    background 0.25s;
}
.cb-launch:hover {
  background: var(--brand-deep);
  transform: translateY(-3px);
}
/* 닫힌 상태: 원형 버튼 대신 3D 모니터 + 뒤에서 고개 내미는 로봇 */
.chatbot:not(.is-open) .cb-launch {
  width: 84px;
  height: 84px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.chatbot:not(.is-open) .cb-launch:hover {
  background: none;
}
.cb-peek {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
}
.cb-peek__monitor {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}
/* 로봇은 모니터 뒤 — 평소엔 눈만 빼꼼, 가끔 고개를 더 내밀었다 숨음 */
.cb-peek__robot {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 50px;
  height: auto;
  margin-left: -25px;
  transform: translateY(-12px) rotate(-6deg);
  animation: cb-peek 4.8s ease-in-out infinite;
}
@keyframes cb-peek {
  0%,
  18% {
    transform: translateY(-12px) rotate(-6deg);
  }
  30%,
  48% {
    transform: translateY(-36px) rotate(5deg);
  }
  56% {
    transform: translateY(-34px) rotate(-3deg);
  }
  66%,
  100% {
    transform: translateY(-12px) rotate(-6deg);
  }
}
.cb-launch:hover .cb-peek__robot {
  animation: none;
  transform: translateY(-40px) rotate(0deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* '상담문의' — 옆 말풍선 대신 모니터 화면 안에 글자로 */
.cb-launch__tip {
  position: absolute;
  left: 50%;
  top: 32%;
  z-index: 3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 90, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s;
}
.is-open .cb-launch__tip {
  opacity: 0;
}

/* 패널 */
.cb-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100vh - var(--header-h) - 140px));
  overflow: hidden;
  border-radius: var(--radius-eng);
  background: #f7f7f8;
  box-shadow: 0 30px 70px rgba(17, 17, 19, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: 100% 100%;
  transition:
    opacity 0.3s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.35s;
}
.is-open .cb-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.cb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 16px 18px;
  background: var(--ink);
  color: #fff;
}
.cb-head__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-eng);
  background: #fff url('../img/brand/symbol.webp') center / 70% no-repeat;
}
.cb-head__txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cb-head__txt b {
  font-size: 16px;
}
.cb-head__txt span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.cb-head__txt i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
}
.cb-head__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
}
.cb-head__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cb-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cb-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: cb-in 0.3s var(--ease) both;
}
@keyframes cb-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.cb-msg.is-user {
  align-self: flex-end;
  align-items: flex-end;
}
.cb-bubble {
  padding: 11px 14px;
  border-radius: 4px var(--radius-eng) var(--radius-eng) var(--radius-eng);
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 17, 19, 0.05);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 답변 주체 표시 */
.cb-by {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.cb-by.is-ai {
  background: var(--brand-soft);
  color: var(--brand);
}
.cb-by.is-agent {
  background: #e7f6ec;
  color: #1c8a4f;
}
.is-user .cb-bubble {
  border-radius: var(--radius-eng) 4px var(--radius-eng) var(--radius-eng);
  background: var(--brand);
  color: #fff;
}
.cb-msg:has(.lead) {
  max-width: 100%;
  width: 100%;
}
.cb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cb-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(237, 28, 46, 0.35);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  transition:
    background 0.2s,
    color 0.2s;
}
.cb-link:hover {
  background: var(--brand);
  color: #fff;
}
.cb-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}
.cb-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  animation: cb-dot 1s ease-in-out infinite;
}
.cb-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.cb-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes cb-dot {
  50% {
    opacity: 0.3;
    transform: translateY(-3px);
  }
}

/* 자주 묻는 질문 · 상담 신청 제안: 짧은 칩 */
.cb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cb-quick button,
.cb-cta {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.cb-quick button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.cb-quick button:disabled,
.cb-cta:disabled {
  opacity: 0.5;
}
.cb-msg:has(.cb-quick) {
  max-width: 100%;
}
.cb-cta {
  align-self: flex-start;
  margin-top: 8px;
  border-color: var(--brand);
  font-weight: 700;
  color: var(--brand);
}
.cb-cta:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
}
.cb-input {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
}
.cb-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 16px; /* iOS 자동 확대 방지 */
}
.cb-input input:focus {
  border-color: var(--brand);
  outline: none;
  background: #fff;
}
.cb-input button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background 0.2s;
}
.cb-input button:not(:disabled):hover {
  background: var(--brand);
}
.cb-input button:disabled {
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .cb-peek__robot {
    animation: none !important;
    transform: translateY(-30px);
  }
}

/* 모바일: 하단 고정 바 위 런처 · 열리면 풀스크린 시트 */
@media (max-width: 768px) {
  .chatbot.is-open {
    z-index: 120; /* 풀스크린 시트가 헤더 위로 */
  }
  .chatbot {
    right: 16px;
    bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .chatbot:not(.is-open) .cb-launch,
  .cb-peek {
    width: 64px;
    height: 64px;
  }
  .cb-peek__robot {
    width: 38px;
    margin-left: -19px;
  }
  .cb-launch__tip {
    font-size: 10.5px;
  }
  .is-open .cb-launch {
    display: none;
  }
  .cb-panel {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    transform: translateY(24px);
    transform-origin: 50% 100%;
  }
  .cb-head {
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .cb-quick button,
  .cb-cta {
    min-height: 44px;
  }
  .cb-input {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* ── layouts/partials/SiteCursor.vue ── */
.cur {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cur.is-shown {
  opacity: 1;
}
/* 위치만 잡는 칸 — 크기 변화는 안쪽 원(i)에서 */
.cur__pt {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 0;
  height: 0;
  will-change: transform;
}
.cur__pt i {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  scale: 0.16;
  transition:
    scale 0.3s var(--ease),
    opacity 0.2s,
    box-shadow 0.3s;
}
.cur__pt b {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

/* 링크 · 버튼 위 — 조금 커지고 흰 테두리 (빨간 버튼 위에서도 보이게) */
.is-link .cur__pt i {
  scale: 0.4;
  opacity: 0.9;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85);
}
/* 글자 표시 (사례 카드 등) */
.is-label .cur__pt i {
  scale: 1;
}
.is-label .cur__pt b {
  opacity: 1;
}
/* 입력칸 위 — 기본 글자 커서만 */
.is-text .cur__pt i {
  opacity: 0;
}
/* 누르는 동안 */
.is-down .cur__pt i {
  scale: 0.12;
}
.is-down.is-link .cur__pt i {
  scale: 0.4;
}
.is-down.is-label .cur__pt i {
  scale: 0.9;
}

/* ── layouts/partials/SiteCursor.vue (scoped 아닌 두 번째 style) ── */
/* 직접 만든 커서를 쓰는 동안 기본 화살표 · 손가락 커서는 숨김 (입력칸은 글자 커서 유지) */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}
html.has-cursor input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']),
html.has-cursor textarea,
html.has-cursor [contenteditable='true'] {
  cursor: text !important;
}

/* ── layouts/DefaultLayout.vue ── */
/* 기본 배경은 흰색 — 홈 'Why' 구간에서만 --page-bg 로 점차 어두워짐 */
.wrapper {
  background: var(--page-bg, #fff);
}
