/* Lusite (루사이트) - 메인 사이트
   콘셉트: 라이트 테이블. 서늘한 회백색 위에 템플릿 '슬라이드'를 올려놓고 빛으로 비춰 본다.
   토큰: 색은 :root 변수만 쓴다. 모서리 규칙: 버튼·칩 = 완전한 알약, 카드 = 20~30px(한 겹), 카드 안 요소 = 12~22px, 입력칸 = 12px.
   카드 안에 카드를 겹치지 않는다(2026-10-26 'AI 티' 정리: 입력창·견적·문의 폼·결제 요약의 이중 베젤을 한 겹으로 걷어 냄).
   글로(0 오프셋 색 그림자)는 UI에 쓰지 않는다. 달·반딧불의 빛은 풍경이라 예외.
   배경: 메인은 낮·밤 풍경(.land, 고정 레이어) 위에 히어로와 판(.sheet)을 올린다. 테마는 html[data-theme] 하나로 바꾼다.
   함정(CLAUDE.md): GSAP이 움직이는 요소([data-intro], [data-reveal], .tcard, .steps__fill, .hero__inner, .land__clouds, .layer)에는
   CSS transition을 걸지 않는다. hover 전환은 안쪽 자식(.tcard__shell 등)에만 건다. */

:root {
  --bg: #eef1f4;
  --bg-2: #e3e7ec;
  --surface: #f9fafb;
  --surface-hi: #fdfdfe;
  --ink: #0f1216;
  --ink-2: #434a54;
  --ink-3: #5a616b;
  --line: rgba(15, 18, 22, 0.1);
  --line-2: rgba(15, 18, 22, 0.18);
  --accent: #2a33e0;
  --accent-hover: #1f27c4;
  --accent-text: #2a33e0;
  --accent-ink: #fdfdfe;
  --accent-soft: rgba(42, 51, 224, 0.09);
  --ink-on-soft: #3b4180; /* --accent-soft 바탕 위 보조 글(회색 대신 강조색 쪽으로 기운 글색, 7.6:1) */
  --danger: #b42318;
  --shell: rgba(15, 18, 22, 0.035);
  --shadow-tint: 25, 35, 70;
  --hi: rgba(255, 255, 255, 0.7);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%230f1216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); /* select 화살표(글자색 --ink와 같은 색) */

  --sheet: rgba(240, 244, 248, 0.94); /* 풍경 위에 뜬 판(메인) */
  --glass: rgba(249, 250, 251, 0.62); /* 풍경 위 작은 유리 알약(히어로 링크·점 내비) */

  /* 배경 풍경(메인 index). 하늘은 낮/밤 두 장을 겹쳐 투명도로 바꾸고, 언덕·나무·구름은 아래 토큰 색이 1초에 걸쳐 바뀐다 */
  --hill-far-a: #b2d2c6; --hill-far-b: #9fc4b0;
  --hill-midfar-a: #95c681; --hill-midfar-b: #72aa67;
  --hill-near-a: #72b259; --hill-near-b: #4f9246;
  --hill-fg-a: #4f9c45; --hill-fg-b: #367b37;
  --crest: rgba(255, 252, 228, 0.5);
  --tree: #2d6a3e; --tree-lit: #3f8b4d; --trunk: #6b4f3a;
  --tree-far: #4a8a59; --tree-far-lit: #5c9f66;
  --cloud: #fdfefe; --cloud-shade: #dae8f4;

  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-disp: "Unbounded", var(--f-sans);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(80px, 9vw, 136px);
  --nav-h: 64px;
}

/* 밤 테마. html[data-theme]는 <head> 인라인 스크립트가 그리기 전에 정한다(저장된 선택 > 시스템 설정, theme.js가 버튼으로 바꾼다).
   자바스크립트가 꺼져 있으면 낮 테마로 보인다. 밤 배경은 하늘과 어울리게 남색 기운을 넣었다. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #111830;
  --surface: #131b30;
  --surface-hi: #182139;
  --ink: #eef1f4;
  --ink-2: #b9c1d0;
  --ink-3: #9da6b8;
  --line: rgba(238, 241, 244, 0.1);
  --line-2: rgba(238, 241, 244, 0.2);
  --accent: #4f57ff;
  --accent-hover: #4148f0;
  --accent-text: #a0a5ff;
  --accent-ink: #fdfdfe;
  --accent-soft: rgba(110, 118, 255, 0.16);
  --ink-on-soft: #c4c8f2; /* 8.5:1 (#222a51 위) */
  --danger: #ff8f85;
  --shell: rgba(238, 241, 244, 0.04);
  --shadow-tint: 0, 0, 8;
  --hi: rgba(255, 255, 255, 0.06);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23eef1f4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --sheet: rgba(11, 16, 32, 0.92);
  --glass: rgba(19, 27, 48, 0.62);

  --hill-far-a: #1f3152; --hill-far-b: #1a2a48;
  --hill-midfar-a: #182a45; --hill-midfar-b: #14233c;
  --hill-near-a: #122139; --hill-near-b: #0f1b31;
  --hill-fg-a: #0d192d; --hill-fg-b: #0a1424;
  --crest: rgba(170, 195, 255, 0.22);
  --tree: #0a1425; --tree-lit: #13233d; --trunk: #0b1322;
  --tree-far: #142441; --tree-far-lit: #1a2d4f;
  --cloud: #26375f; --cloud-shade: #1c2a4c;
}

/* 테마를 바꾸는 동안(theme.js가 약 1.4초 붙인다)만 색 토큰 자체를 html 한 곳에서 천천히 바꾼다.
   요소마다 color 전환을 걸면 상속된 색이 단계마다 늦게 따라와 글자가 한동안 배경과 비슷해진다(헤드리스 전환 캡처에서 재현).
   그래서 @property로 등록한 토큰만 html에서 전환하고, 요소는 그 값을 그대로 물려받는다(transform·opacity와 무관해 GSAP과 충돌 없음).
   @property를 모르는 브라우저는 바로 바뀐다. reduced-motion이면 아래 전역 규칙이 전환을 끈다. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --surface-hi { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --ink-2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --ink-3 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --line { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --line-2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --accent-hover { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --accent-text { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --ink-on-soft { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --danger { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --shell { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --hi { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --sheet { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --glass { syntax: "<color>"; inherits: true; initial-value: transparent; }
html.theme-anim {
  transition: --bg 1s, --bg-2 1s, --surface 1s, --surface-hi 1s, --ink 1s, --ink-2 1s, --ink-3 1s, --line 1s, --line-2 1s, --accent 1s, --accent-hover 1s, --accent-text 1s, --accent-soft 1s, --ink-on-soft 1s, --danger 1s, --shell 1s, --hi 1s, --sheet 1s, --glass 1s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
input, textarea { caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
.nowrap { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
/* .tcard는 Flip 퇴장 연출 때문에 !important 없이 숨긴다(아래 .tcard[hidden]) */
[hidden]:not(.tcard) { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

section { padding-block: var(--sec); }

.h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 720;
  text-wrap: balance;
}
.lead { margin: 16px 0 0; font-size: clamp(1rem, 1.15vw, 1.125rem); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.gallery__more { display: flex; justify-content: center; margin-top: 36px; }
.gallery__more:has(> [hidden]) { display: none; }
.fineprint { margin: 28px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 650; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn:has(.btn__icon) { padding-right: 8px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn__icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.45s var(--ease);
}
.btn--ghost .btn__icon { background: var(--accent-soft); }
.btn__icon svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover .btn__icon { transform: translate(3px, -1px) scale(1.06); }

/* ---------- 내비 ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 12px; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), 1120px);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--hi), 0 14px 34px -22px rgba(var(--shadow-tint), 0.45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark-bg { fill: var(--ink); }
.brand__mark-l { fill: none; stroke: var(--bg); stroke-width: 3.2; }
.brand__mark-ray { stroke: var(--accent); stroke-width: 3.2; }
.brand__word { font-family: var(--f-disp); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.nav__links { margin-left: auto; display: flex; gap: 2px; }
.nav__links a {
  padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__links a:hover { background: var(--accent-soft); color: var(--ink); }
/* 보조 진입점(앱·윈도우 개발): 웹 CTA와 겹치지 않게 조용히, 구분선 하나로 떼어 둔다 */
.nav__links .nav__sub { position: relative; margin-left: 9px; color: var(--ink-3); }
.nav__links .nav__sub::before { content: ""; position: absolute; left: -5px; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: var(--line-2); }
.mmenu .mmenu__sub { margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--ink-2); }
.case__more { margin: 18px 0 0; }
.case__more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-underline-offset: 4px; }
.case__more a:hover { color: var(--ink); }
.case__more svg { width: 14px; height: 14px; fill: currentColor; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--accent-soft); cursor: pointer;
}
.nav__toggle-line {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.nav__toggle-line:nth-child(1) { top: 18px; }
.nav__toggle-line:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 45;
  padding: 104px var(--gutter) 40px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow-y: auto;
}
.mmenu nav { display: grid; gap: 4px; }
.mmenu a {
  display: block; padding: 12px 4px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.mmenu .mmenu__cta { margin-top: 20px; color: var(--accent-text); }

/* ---------- 낮·밤 테마 버튼 (모든 페이지 머리말) ---------- */
/* 해 아이콘(지금 낮) <-> 초승달(지금 밤). 단순 도형을 transform으로만 바꾼다 */
.theme-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px; padding: 0;
  border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--ink); cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.theme-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.theme-btn__icon { width: 22px; height: 22px; overflow: visible; transition: transform 0.2s var(--ease); }
.theme-btn:active .theme-btn__icon { transform: scale(0.9); }
.theme-btn__core { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform 0.7s var(--ease); }
.theme-btn__bite { transform: translate(8px, -8px); transition: transform 0.7s var(--ease); }
.theme-btn__rays {
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  transform-origin: 12px 12px; transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}
[data-theme="dark"] .theme-btn__core { transform: scale(1.55); }
[data-theme="dark"] .theme-btn__bite { transform: none; }
[data-theme="dark"] .theme-btn__rays { opacity: 0; transform: rotate(-60deg) scale(0.4); }
.pv__bar .theme-btn { width: 38px; height: 38px; margin-left: auto; }

/* ---------- 배경 움직임 멈춤 버튼 (index 머리말, 테마 버튼 옆) ----------
   자동으로 움직이는 배경을 멈추는 실제 컨트롤(WCAG 2.2.2). 일부러 조용하게: 배경 없는 작은 원, 회색 아이콘.
   aria-pressed="true"면 멈춘 상태. 아이콘은 멈춤(두 막대) <-> 재생(삼각형)을 transform·opacity로만 바꾼다 */
.motion-btn {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.motion-btn:hover { background: var(--accent-soft); color: var(--ink); }
.motion-btn__icon { width: 16px; height: 16px; overflow: visible; }
.motion-btn__bars, .motion-btn__play { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.motion-btn__play { opacity: 0; transform: scale(0.5); }
.motion-btn[aria-pressed="true"] .motion-btn__bars { opacity: 0; transform: scale(0.5); }
.motion-btn[aria-pressed="true"] .motion-btn__play { opacity: 1; transform: none; }
.motion-btn + .theme-btn { margin-left: 2px; }

/* ---------- 배경 풍경 (index, 고정 레이어) ----------
   하늘 낮/밤 두 장(투명도 교차), 별·달·해, 흘러가는 구름, 언덕 4겹과 침엽수. 계속 도는 움직임은 transform·opacity만 쓴다.
   .land__clouds와 .layer는 GSAP이 스크롤·커서 패럴랙스로 움직이므로 transition을 걸지 않는다. */
.land {
  position: fixed; left: 0; right: 0; top: 0; z-index: 0;
  height: 100vh; height: 100lvh; /* 모바일 주소창이 접혀도 풍경이 출렁이지 않게 가장 큰 높이로 고정 */
  overflow: hidden; pointer-events: none; contain: strict;
}
.land__defs { position: absolute; }
.land__sky { position: absolute; inset: 0; }
.land__sky--day { background: linear-gradient(180deg, #5b9ddf 0%, #87bfec 30%, #bcdcf3 56%, #e2f0f3 78%, #f2f4e6 100%); }
.land__sky--night {
  background: linear-gradient(180deg, #050a19 0%, #0b1632 36%, #192c57 66%, #2a4274 100%);
  opacity: 0; transition: opacity 1.1s cubic-bezier(0.45, 0, 0.2, 1);
}
[data-theme="dark"] .land__sky--night { opacity: 1; }
/* 바꾸는 동안 지평선에 노을(아침놀)이 한 번 스친다(land.js가 .is-passing을 붙인다) */
.land__dusk { background: linear-gradient(180deg, rgba(110, 90, 190, 0) 8%, rgba(246, 150, 128, 0.5) 56%, rgba(255, 192, 140, 0.78) 84%); opacity: 0; }
.land.is-passing .land__dusk { animation: duskPass 1.25s cubic-bezier(0.45, 0, 0.2, 1); }
@keyframes duskPass { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }

.land__stars { position: absolute; inset: 0 0 30%; overflow: hidden; opacity: 0; transition: opacity 0.5s ease; }
[data-theme="dark"] .land__stars { opacity: 1; transition: opacity 0.9s ease 0.35s; } /* 밤에는 하늘이 어두워진 뒤 늦게, 낮에는 바로 사라진다 */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #f3f1ff; }
.stars--b { animation: twinkle 3.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.25; } }
/* 별 일주: land.js가 화면 왼쪽 위 바깥의 천구 북극을 중심으로 별을 다시 뿌리고(.is-spin) 위치·크기·회전축을 인라인으로 준다.
   별 배치가 10도마다 되풀이되게 만들었으므로 0 -> -10도 회전을 끝없이 반복해도 이음매가 보이지 않는다(10도는 land.js SPIN_STEP과 같아야 한다).
   반시계 방향(실제 북쪽 하늘과 같은 방향)이라 화면의 별은 구름처럼 오른쪽(위)으로 흐른다. 한 바퀴 약 30분 */
:root { --sky-slow: 1; } /* 모션 줄이기에서는 3(3배 느리게). 멈추지는 않는다(오너 결정) */
.stars.is-spin { inset: auto; animation: spin calc(50s * var(--sky-slow)) linear infinite; }
.stars--b.is-spin { animation: spin calc(50s * var(--sky-slow)) linear infinite, twinkle 3.6s ease-in-out infinite alternate; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(-10deg); } }

.land__sun {
  position: absolute; top: 7%; right: 10%; width: clamp(150px, 19vw, 280px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fffdf2 0 16%, rgba(255, 247, 210, 0.8) 20%, rgba(255, 242, 196, 0.28) 40%, rgba(255, 242, 196, 0) 70%);
  transition: transform 1.2s var(--ease), opacity 0.8s ease;
}
[data-theme="dark"] .land__sun { transform: translateY(45vh); opacity: 0; }
.land__moon {
  position: absolute; top: 11%; left: 12%; width: clamp(44px, 4.4vw, 66px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef6 0%, #f1ecd4 55%, #dcd4b2 100%);
  box-shadow: 0 0 34px 8px rgba(240, 236, 210, 0.26), 0 0 120px 44px rgba(150, 176, 255, 0.12);
  transform: translateY(34vh); opacity: 0;
  transition: transform 1.4s var(--ease), opacity 0.9s ease 0.1s;
}
.land__moon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 63% 58%, rgba(160, 150, 112, 0.32) 0 9%, transparent 10%),
    radial-gradient(circle at 40% 72%, rgba(160, 150, 112, 0.26) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 30%, rgba(160, 150, 112, 0.22) 0 5%, transparent 6%);
}
[data-theme="dark"] .land__moon { transform: none; opacity: 1; }

.land__clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute; left: var(--x); top: var(--top); width: var(--w); height: auto; overflow: visible;
  /* 구름은 같은 속도로 흐르는 게 자연스러워 linear. 모두 왼쪽 -> 오른쪽, 화면 밖에서 시작하고 끝나서 다시 돌 때 끊기지 않는다.
     깊이별 속도(한 번 지나가는 시간): 먼 구름 240s, 중간 170s, 가까운 구름 110s(인라인 --dur). 위아래로는 translate로 아주 조금 떠오른다 */
  animation: drift calc(var(--dur) * var(--sky-slow)) linear calc(var(--delay) * var(--sky-slow)) infinite,
    bob var(--bd, 12s) ease-in-out var(--bl, 0s) infinite alternate;
}
.cloud--far { opacity: 0.72; }
@keyframes bob { from { translate: 0 -5px; } to { translate: 0 5px; } }
@keyframes drift {
  from { transform: translateX(calc(-1 * var(--x) - var(--w) - 2vw)); }
  to { transform: translateX(calc(102vw - var(--x))); }
}
.cloud__lit { fill: var(--cloud); transition: fill 1s ease; }
.cloud__shade { fill: var(--cloud-shade); transition: fill 1s ease; }

.layer { position: absolute; left: -3%; width: 106%; bottom: 0; } /* 좌우 여유: 커서 패럴랙스로 옆이 비지 않게 */
.layer > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer--far { height: 60%; }
.layer--midfar { height: 50%; }
.layer--near { height: 37%; }
.layer--fg { height: 22%; }
.st { transition: stop-color 1s ease; }
.st--far-a { stop-color: var(--hill-far-a); } .st--far-b { stop-color: var(--hill-far-b); }
.st--midfar-a { stop-color: var(--hill-midfar-a); } .st--midfar-b { stop-color: var(--hill-midfar-b); }
.st--near-a { stop-color: var(--hill-near-a); } .st--near-b { stop-color: var(--hill-near-b); }
.st--fg-a { stop-color: var(--hill-fg-a); } .st--fg-b { stop-color: var(--hill-fg-b); }
.crest { fill: none; stroke: var(--crest); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: stroke 1s ease; }
.layer--far .crest { stroke-width: 1; }
/* 해 쪽에서 비치는 낮빛(언덕 위에 얹는 옅은 따뜻한 빛). 밤에는 사라진다 */
.land__light {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 86% 14%, rgba(255, 243, 210, 0.42), rgba(255, 243, 210, 0) 62%);
  transition: opacity 1s ease;
}
[data-theme="dark"] .land__light { opacity: 0; }

/* 침엽수: 언덕 곡선 위 좌표(생성값)에 세우고, 밑동을 축으로 아주 조금 흔들린다 */
.tree {
  position: absolute; width: auto; aspect-ratio: 40 / 100; overflow: visible;
  translate: -50% 0; transform-origin: 50% 100%;
  animation: sway var(--sw) ease-in-out var(--sd) infinite alternate;
}
@keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
.tree__body { fill: var(--tree); stroke: var(--tree); stroke-width: 1.4; stroke-linejoin: round; transition: fill 1s ease, stroke 1s ease; }
.tree__lit { fill: var(--tree-lit); transition: fill 1s ease; }
.tree__trunk { fill: var(--trunk); transition: fill 1s ease; }
.tree--far .tree__body { fill: var(--tree-far); stroke: var(--tree-far); }
.tree--far .tree__lit { fill: var(--tree-far-lit); }

/* 밤에만 보이는 반딧불 */
.land__flies { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; opacity: 0; transition: opacity 0.4s ease; }
[data-theme="dark"] .land__flies { opacity: 1; transition: opacity 1s ease 0.4s; }
.land__flies i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe9a6;
  box-shadow: 0 0 8px 3px rgba(255, 216, 120, 0.55);
  animation: fly var(--fd) ease-in-out var(--fl) infinite alternate;
}
:root:not([data-theme="dark"]) .land__flies i { animation-play-state: paused; }
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translate(18px, -26px); opacity: 0.35; }
}
/* 탭이 숨겨지면 멈춘다(land.js) */
html.land-paused .land *, html.land-paused .land *::before { animation-play-state: paused !important; }
/* 배경 움직임 멈춤 버튼(.motion-btn, WCAG 2.2.2). 선택은 localStorage lusite-motion */
html.land-still .land *, html.land-still .land *::before { animation-play-state: paused !important; }

/* 풍경 위 콘텐츠: 히어로는 풍경 위에 바로, 나머지는 한 장의 판(.sheet) 위에 */
:root { --sheet-m: clamp(8px, 2vw, 32px); --sheet-r: clamp(24px, 3vw, 40px); }
.has-scene main, .has-scene .footer { position: relative; z-index: 1; }
.sheet {
  margin-inline: var(--sheet-m); border-radius: var(--sheet-r); background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line), 0 -40px 90px -50px rgba(var(--shadow-tint), 0.45);
}
.has-scene .footer {
  margin: 14px var(--sheet-m) var(--sheet-m); border-top: 0; border-radius: var(--sheet-r);
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 1. 히어로 ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-start; /* 가운데 정렬이면 추천 결과가 열릴 때 제목이 위로 튄다. 위 여백을 화면 높이에 비례시켜 가운데 느낌만 낸다 */
  padding: calc(var(--nav-h) + clamp(32px, 11vh, 120px)) 0 clamp(56px, 10vh, 120px);
  overflow: clip;
}
.hero__inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), 1080px); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.05rem, 4.5vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__sub { margin: 20px auto 0; max-width: 36em; font-size: clamp(1rem, 1.25vw, 1.15rem); color: color-mix(in srgb, var(--ink-2) 60%, var(--ink)); text-wrap: pretty; } /* 하늘 위 글이라 --ink-2보다 한 단계 진하게(낮 375px 실측 4.56:1 -> 여유 확보) */

/* JS가 인트로 시작 상태를 잡기 전까지만 숨긴다. JS가 실패하면 3초 뒤 저절로 보인다. */
html.js.intro-pending [data-intro] { opacity: 0; animation: introSafe 0.6s ease 3s forwards; }
@keyframes introSafe { to { opacity: 1; } }

/* 고민 입력창: 불투명 판 한 겹(예전 유리 껍데기 + 속판 이중 베젤은 카드 속 카드라 걷어 냄, 2026-10-26).
   .ask__shell은 모양 없는 묶음이고, 입력판(.ask__core)과 추천 결과(.ask__result)가 나란한 카드다.
   자바스크립트가 없으면 동작할 수 없으므로 보이지 않는다 */
.ask { display: none; width: min(100%, 720px); margin: clamp(24px, 4vh, 38px) 0 0; text-align: left; }
html.js .ask { display: block; }
.ask__core {
  padding: 18px 18px 16px 24px; border-radius: 30px; background: var(--surface-hi);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line), 0 40px 90px -40px rgba(var(--shadow-tint), 0.55);
  transition: box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .ask__core { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line-2), 0 40px 90px -40px rgba(0, 0, 8, 0.75); }
.ask__core:focus-within,
[data-theme="dark"] .ask__core:focus-within { box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 2px var(--accent), 0 40px 90px -40px rgba(var(--shadow-tint), 0.55); }
.ask__label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.ask__field { position: relative; margin-top: 4px; }
.ask__field textarea,
.ask__ghost { font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.5; letter-spacing: -0.01em; }
.ask__field textarea {
  display: block; width: 100%; min-height: calc(3em + 8px); max-height: 9em; padding: 4px 0; margin: 0;
  field-sizing: content; /* 지원 브라우저에서는 글이 길어지면 9em까지 늘어난다 */
  border: 0; background: transparent; resize: none; color: var(--ink);
}
.ask__field textarea:focus, .ask__field textarea:focus-visible { outline: none; } /* 속판 테두리(:focus-within)가 포커스 표시 */
.ask.is-ghosting .ask__field textarea::placeholder { color: transparent; }
.ask__ghost { position: absolute; left: 0; right: 0; top: 4px; margin: 0; color: var(--ink-3); pointer-events: none; opacity: 0; }
.ask.is-ghosting .ask__ghost { opacity: 1; }
.ask.is-ghosting .ask__field textarea:not(:placeholder-shown) + .ask__ghost { opacity: 0; } /* 이벤트 없이 값이 들어와도(뒤로 가기 복원 등) 바로 숨긴다 */
.ask__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.16em; background: var(--accent); animation: caret 0.9s steps(1) infinite; }
.ask__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 10px; }
.ask__hint { margin: 0; font-size: 13px; color: var(--ink-3); }
.ask__send { flex: none; height: 46px; padding-left: 20px; }
.ask__status { margin: 8px 0 0; font-size: 13px; font-weight: 650; color: var(--danger); }
.ask__status.is-ok { color: var(--accent-text); }
.ask__status:empty { display: none; }
.ask__result {
  margin-top: 10px; padding: 18px; border-radius: 26px; background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 70px -40px rgba(var(--shadow-tint), 0.5);
}
.ask__result-title { margin: 0 0 12px; font-size: 15px; font-weight: 720; letter-spacing: -0.015em; }
.ask__result-text { margin: -6px 0 12px; font-size: 14px; color: var(--ink-2); }
.ask__picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ask__picks[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ask__picks[data-n="1"] { grid-template-columns: minmax(0, 1fr); max-width: 240px; }
.ask__pick a { display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.ask__pick-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.ask__pick-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.ask__pick a:hover img { transform: scale(1.05); }
.ask__pick-cat { display: block; margin-top: 8px; font-size: 12px; font-weight: 650; color: var(--accent-text); }
.ask__pick-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ask__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero__links a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-size: 14px; font-weight: 650; color: var(--ink); text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
[data-theme="dark"] .hero__links a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.hero__links a:hover { background: var(--surface-hi); }

/* ---------- 2. 갤러리 ---------- */
.gallery { padding-bottom: clamp(48px, 5vw, 80px); }
.gallery__head { max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip__n { font-family: var(--f-disp); font-size: 11px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.tgrid {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.tcard { display: block; }
.tcard[hidden] { display: none; }
.tcard__link { display: block; color: inherit; text-decoration: none; border-radius: 22px; }
.tcard__link:focus-visible { outline-offset: 4px; }
.tcard__shell {
  padding: 6px; border-radius: 20px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -38px rgba(var(--shadow-tint), 0.5);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.tcard__link:hover .tcard__shell {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 36px 60px -36px rgba(var(--shadow-tint), 0.55);
}
.tcard__media { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.tcard__img, .tcard__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tcard__img { transition: transform 1.2s var(--ease); }
.tcard__link:hover .tcard__img { transform: scale(1.035); }
.tcard__frame { clip-path: inset(0 0 0 100%); transition: clip-path 0.75s var(--ease); }
.tcard__frame.is-on { clip-path: inset(0 0 0 0); }
.tcard__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 8px 6px; }
.tcard__cat { grid-column: 1; margin: 0; font-size: 13px; font-weight: 650; color: var(--accent-text); }
.tcard__name { grid-column: 1; margin: 2px 0 0; font-size: 18px; font-weight: 720; letter-spacing: -0.025em; line-height: 1.35; }
.tcard__mood { grid-column: 1; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tcard__go {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s var(--ease);
}
.tcard__go svg { width: 16px; height: 16px; fill: currentColor; }
.tcard__link:hover .tcard__go { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: translate(2px, -2px); }

/* ---------- 3. 이렇게 바뀝니다 ---------- */
.scene { padding-block: 0; }
.scene__pin { min-height: 100dvh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 40px) 40px; }
.scene__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.scene__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.scene__steps li {
  border-radius: 16px; color: var(--ink-3);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scene__steps li:hover { color: var(--ink-2); }
/* 단계 버튼: 줄 전체가 누름 영역 */
.scene__step {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; min-height: 44px;
  padding: 14px 16px; border: 0; border-radius: 16px; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.scene__steps li.is-active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.scene__num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--f-disp); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scene__steps li.is-active .scene__num { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.scene__steps strong { display: block; font-size: 17px; line-height: 1.4; }
.scene__desc { display: block; font-size: 14px; }
.scene__price { margin: 28px 0 0; }
.scene__price a {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-weight: 700; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid var(--line-2);
}
.scene__price a:hover { border-color: var(--ink); }
.scene__price-sep { font-weight: 500; color: var(--ink-2); }
.scene__price svg { width: 14px; height: 14px; fill: currentColor; }

.browser {
  margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 90px -50px rgba(var(--shadow-tint), 0.55);
}
.browser__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser__url {
  flex: 1; max-width: 300px; margin-inline: auto; height: 26px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-2); /* 주소 표시는 버튼처럼 보이지 않게 배경·알약 모양 없이 글자만 */
  overflow: hidden; white-space: nowrap;
}

/* 예시 미니 사이트: 템플릿 원본 팔레트(a) -> 고객 팔레트(b) */
/* a: 온결 템플릿 원본 팔레트(먹 바탕·아이보리·놋쇠), b: 예시 고객 팔레트 */
.scene__stage { --m-bg: #121315; --m-ink: #ece4d6; --m-accent: #c9a46a; --m-on: #0b0c0d; --m-soft: #1b1c1f; }
.scene__stage[data-palette="b"] { --m-bg: #edf3ec; --m-ink: #1d2a21; --m-accent: #2f6b45; --m-on: #fdfdfe; --m-soft: #d3e5d5; }
.mini {
  container-type: inline-size;
  padding: 16px 20px 24px;
  background: var(--m-bg); color: var(--m-ink);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.mini__nav { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mini__logo {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--m-accent); color: var(--m-on); font-weight: 800; font-size: 14px;
  transition: background-color 0.7s var(--ease);
}
.mini__brand { display: inline-flex; align-items: center; min-width: 8.5em; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.mini__caret { width: 2px; height: 1.05em; margin-left: 2px; background: currentColor; opacity: 0; }
.mini.is-typing .mini__caret { opacity: 1; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mini__links { margin-left: auto; display: flex; gap: 14px; color: color-mix(in srgb, var(--m-ink) 80%, var(--m-bg)); }
/* 예시 화면 속 버튼 두 개는 실제 링크다(온결 템플릿 미리보기로 이동) */
.mini__btn {
  flex: none; padding: 6px 13px; border-radius: 999px; background: var(--m-accent); color: var(--m-on); font-weight: 700; text-decoration: none;
  transition: background-color 0.7s var(--ease);
}
.mini__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; margin-top: 24px; }
.mini__title {
  display: grid; margin: 0;
  font-size: clamp(20px, 5.4cqi, 36px); font-weight: 800; line-height: 1.22; letter-spacing: -0.035em;
}
/* 두 문장을 같은 칸에 겹쳐 두어 높이가 긴 쪽에 맞춰진다(빈 칸 없이, 바뀔 때 흔들림 없이) */
.mini__t { grid-area: 1 / 1; align-self: end; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.mini__t--b { opacity: 0; transform: translateY(40%); color: var(--m-accent); }
.mini.is-copy .mini__t--a { opacity: 0; transform: translateY(-40%); }
.mini.is-copy .mini__t--b { opacity: 1; transform: none; }
.mini__body { margin: 12px 0 18px; font-size: 13px; color: color-mix(in srgb, var(--m-ink) 82%, var(--m-bg)); }
.mini__cta {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--m-ink); color: var(--m-bg);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.mini__photo { position: relative; aspect-ratio: 4 / 4.6; border-radius: 16px; overflow: hidden; background: var(--m-soft); transition: background-color 0.7s var(--ease); }
.mini__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini__img--b { clip-path: inset(100% 0 0 0); transition: clip-path 0.9s var(--ease); }
.mini.is-photo .mini__img--b { clip-path: inset(0 0 0 0); }
@container (max-width: 460px) {
  .mini__links { display: none; }
  .mini__btn { margin-left: auto; }
}
.scene__note { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--surface); }
.swatch { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.swatch__chip {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.7s var(--ease);
}

/* ---------- 4. 사례 ---------- */
.case__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.case__device { margin: 0; }
.case__img { width: 100%; height: auto; }
.stat { margin: 36px 0 28px; }
.stat__label { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.stat__value { margin: 6px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1; color: var(--ink); }
.stat__pre, .stat__unit { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; color: var(--ink-2); }
.stat__pre { margin-right: 0.3em; }
.stat__num {
  font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(4rem, 7vw, 6rem); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat__man { font-size: clamp(3rem, 5.3vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; margin-left: 0.04em; }
.stat__unit { margin-left: 0.25em; }
.stat__asof { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); }
.timeline li { display: grid; gap: 2px; padding-top: 14px; font-size: 15px; font-weight: 600; }
.timeline__date { font-family: var(--f-disp); font-size: 13px; font-weight: 500; color: var(--accent-text); }

/* ---------- 5. 가격 ---------- */
.pricing__head { max-width: 760px; }
.pricing__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 48px; }
.plans { display: grid; gap: 12px; }
.plan {
  position: relative; border-radius: 22px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.35s var(--ease);
}
.plan:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.plan:has(.plan__input:checked) { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 60px -44px rgba(var(--shadow-tint), 0.55); } /* 파란 그림자는 밤에 글로처럼 보여 바탕 톤 그림자로 */
.plan:has(.plan__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.plan__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "radio name price" "radio sum sum";
  gap: 4px 14px; align-items: center; padding: 22px 24px; cursor: pointer;
}
.plan__radio {
  grid-area: radio; align-self: start; margin-top: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-2);
  transition: box-shadow 0.3s var(--ease);
}
.plan__input:checked + .plan__head .plan__radio { box-shadow: inset 0 0 0 7px var(--accent); }
.plan__name { grid-area: name; font-size: 20px; font-weight: 720; letter-spacing: -0.02em; }
.plan__price { grid-area: price; font-size: 15px; color: var(--ink-2); white-space: nowrap; text-align: right; }
.plan__price b {
  margin-right: 2px; font-family: var(--f-disp); font-weight: 600; color: var(--ink);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.plan__sum { grid-area: sum; font-size: 15px; color: var(--ink-2); }
.plan__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.plan:has(.plan__input:checked) .plan__body { grid-template-rows: 1fr; }
@supports not selector(:has(*)) { .plan__body { grid-template-rows: 1fr; } }
.plan__inner { overflow: hidden; }
.plan__list {
  list-style: none; margin: 0; padding: 4px 24px 24px 60px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; font-size: 15px;
}
.plan__list li { position: relative; padding-left: 18px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 8px; height: 2px; border-radius: 2px; background: var(--accent); }
.plans__note { margin: 4px 6px 0; font-size: 13px; color: var(--ink-3); }

/* 견적 패널: 한 겹 카드(예전 회색 껍데기는 카드 속 카드라 걷어 냄). .quote는 sticky만 맡는다 */
.quote { position: sticky; top: calc(var(--nav-h) + 32px); }
.quote__core {
  padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: var(--surface-hi);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line), 0 30px 60px -44px rgba(var(--shadow-tint), 0.5);
}
.quote__title { margin: 0 0 18px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.care { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.care__legend { margin-bottom: 10px; padding: 0; font-size: 17px; font-weight: 720; }
.care__legend span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.care__opt { position: relative; display: block; cursor: pointer; }
.care__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.care__box {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.care__box strong { font-size: 15px; }
.care__box em { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--ink-2); }
.care__box > span { font-size: 13px; color: var(--ink-2); }
.care__opt:hover .care__box { box-shadow: inset 0 0 0 1px var(--line-2); }
.care__opt input:checked + .care__box { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
/* 강조색 바탕 위 보조 글은 회색(--ink-2) 대신 같은 색조로 기운 글색 */
.care__opt input:checked + .care__box em,
.care__opt input:checked + .care__box > span { color: var(--ink-on-soft); }
.care__opt input:focus-visible + .care__box { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 패키지 조건 때문에 고를 수 없는 관리 플랜(케어 플러스는 스탠다드 이상). 흐리게 하되 글자 대비는 지킨다(opacity 대신 색) */
.care__opt:has(input:disabled) { cursor: not-allowed; }
.care__opt input:disabled + .care__box,
.care__opt:hover input:disabled + .care__box { background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.care__opt input:disabled + .care__box em,
.care__opt input:disabled + .care__box > span { color: var(--ink-3); }
.care__box > .care__why { margin-top: 2px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.care__note { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.care__note:empty { display: none; }
.quote__rows { margin: 22px 0 0; display: grid; gap: 10px; }
.quote__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.quote__rows dt { color: var(--ink-2); }
.quote__rows dt span { margin-left: 4px; font-size: 12px; color: var(--ink-3); }
.quote__rows dd { margin: 0; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote__total { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote__total dt { color: var(--ink); font-weight: 650; }
.quote__total dd { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.35rem, 2.1vw, 1.8rem); letter-spacing: -0.04em; }
.quote__note { margin: 10px 0 20px; font-size: 13px; color: var(--ink-2); }
.quote__cta { width: 100%; justify-content: space-between; }

.terms { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; font-size: 15px; color: var(--ink-2); }
.terms li { display: flex; gap: 10px; }
.terms svg { flex: none; width: 16px; height: 16px; margin-top: 4px; fill: var(--accent-text); }

/* ---------- 6. 제작 과정 ---------- */
.steps { position: relative; margin-top: 56px; }
/* 선은 첫 번호 가운데에서 마지막(6번째 칸) 번호 가운데까지 */
.steps__rail { position: absolute; left: 20px; right: calc((100% - 120px) / 6 - 20px); top: 19px; height: 2px; background: var(--line); }
.steps__fill { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left center; }
.steps__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.step__num {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent);
  font-family: var(--f-disp); font-size: 13px; font-weight: 600; color: var(--accent-text);
}
.step--opt .step__num { box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-2); }
.step__title { margin: 18px 0 6px; font-size: 17px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.4; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.step__tag {
  display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; vertical-align: 2px;
  font-size: 12px; font-weight: 600; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---------- 6-1. 리뉴얼 소개 (자세한 내용은 renewal.html) ----------
   예전/리뉴얼 화면을 반씩 잘라 붙인 정지 화면. 움직이는 슬라이더는 renewal.html에만 있고, 여기 그림은 그 페이지로 가는 링크다(손잡이 없음) */
.rn-teaser { padding-top: 0; }
.rn-teaser__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rn-teaser__price { margin: 22px 0 26px; font-size: 16px; color: var(--ink-2); }
.rn-teaser__price b { font-family: var(--f-disp); font-weight: 600; font-size: 1.25em; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rn-teaser__media { margin: 0; }
.rn-teaser__link {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 90px -50px rgba(var(--shadow-tint), 0.55);
}
.rn-teaser__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.rn-teaser__img--before { clip-path: inset(0 50% 0 0); }
.rn-teaser__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--surface-hi); }
.rn-teaser__link:hover .rn-teaser__img { transform: scale(1.025); }
.rn-teaser__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rn-teaser__cap span:last-child { color: var(--accent-text); }

/* ---------- 7. FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--nav-h) + 48px); }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.qa:hover, .qa[open] { box-shadow: inset 0 0 0 1px var(--line-2); }
.qa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 18px; cursor: pointer;
  font-size: 17px; font-weight: 650; letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -2px; }
.qa__icon { flex: none; width: 16px; height: 16px; fill: currentColor; transform: rotate(45deg); transition: transform 0.4s var(--ease); }
.qa[open] .qa__icon { transform: rotate(0deg); }
.qa__a { padding: 0 22px 22px; max-width: 62ch; color: var(--ink-2); }
.qa__a p { margin: 0; }

/* ---------- 8. 문의 ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.channels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.channels li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 16px; }
.channels__k { width: 100%; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.channels a { text-underline-offset: 3px; }
.channels__ph { padding: 0 8px; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
/* .formshell은 모양 없는 묶음(등장 연출 대상). 폼 자체가 한 겹 카드다(예전 껍데기 + 속판 이중 베젤은 걷어 냄) */
.formshell { display: block; }
.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
  padding: clamp(22px, 3vw, 40px); border-radius: 26px; background: var(--surface-hi);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--line), 0 30px 60px -44px rgba(var(--shadow-tint), 0.45);
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: 14px; font-weight: 650; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } /* 번지는 후광 대신 2px 선명한 테두리 */
.field [aria-invalid="true"] { border-color: var(--danger); }

/* select: 브라우저 기본 모양 대신 다른 입력칸과 같은 모양 + 사이트 글자색 화살표 */
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: var(--chevron); background-repeat: no-repeat;
  background-position: right 14px center; background-size: 16px 16px;
}
.field select:hover:not(:disabled) { border-color: var(--ink-3); }
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field select option { color: var(--ink); background-color: var(--surface-hi); }
/* 지원 브라우저(맞춤 select)에서는 펼친 목록까지 사이트 톤으로. 지원하지 않으면 위의 기본 목록을 그대로 쓴다(JS 목록 없음) */
@supports (appearance: base-select) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select { display: flex; align-items: center; }
  .field select::picker-icon { display: none; } /* 화살표는 위 배경 이미지 하나만 */
  .field select::picker(select) {
    margin-top: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px;
    background: var(--surface-hi); color: var(--ink);
    box-shadow: 0 24px 48px -24px rgba(var(--shadow-tint), 0.5);
  }
  .field select option { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
  .field select option:hover, .field select option:focus-visible { background: var(--accent-soft); outline: none; }
  .field select option:checked { font-weight: 650; }
  .field select option::checkmark { color: var(--accent-text); }
}
.field__help { margin: 0; font-size: 13px; color: var(--ink-2); }
.field__err { margin: 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.field__err:empty { display: none; }
.consent__row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; cursor: pointer; }
.consent__row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.consent__more summary { width: fit-content; font-size: 13px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent__more p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__captcha:empty { display: none; }
.form__fail { flex: 1 1 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--danger); }
#f-send[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.form__pick { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; }
.form__pick a { margin-left: 8px; color: var(--ink-2); }
.form__done { flex: 1 1 260px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }

/* ---------- 9. 푸터 ---------- */
.footer { padding-block: 72px 32px; border-top: 1px solid var(--line); overflow: clip; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__note { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.bizinfo { margin-top: 28px; border-top: 1px solid var(--line); }
.bizinfo__sum {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0;
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ink-2);
}
.bizinfo__sum::-webkit-details-marker { display: none; }
.bizinfo__sum:hover { color: var(--ink); }
.bizinfo__icon { width: 12px; height: 12px; fill: currentColor; transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.bizinfo[open] .bizinfo__icon { transform: rotate(0deg); }
.bizinfo__list { margin: 4px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 12px 44px; font-size: 14px; }
.bizinfo__list div { display: grid; gap: 2px; }
.bizinfo__list dt { font-size: 12px; color: var(--ink-3); }
.bizinfo__list dd { margin: 0; color: var(--ink-2); }
.bizinfo__list a { color: inherit; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer__links a { color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__word {
  margin: 64px 0 0; white-space: nowrap;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(4rem, 16.5vw, 17rem);
  line-height: 0.82; letter-spacing: -0.04em; color: var(--ink);
}
.footer__copy { margin: 24px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 오른쪽 섹션 점 내비 (index) ---------- */
.dots {
  position: fixed; right: 10px; top: 50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 0; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); /* 풍경(초록 언덕) 위에서도 점이 보이게 */
  transform: translateY(-50%);
}
.dots__item {
  position: relative; display: grid; place-items: center;
  width: 24px; min-height: 24px; padding: 9px 0; border-radius: 999px; /* 누름 영역 24px, 보이는 점은 6px */
}
.dots__dot {
  display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3);
  transition: height 0.45s var(--ease), background-color 0.3s var(--ease);
}
.dots__item:hover .dots__dot { background: var(--ink); }
.dots__item[aria-current="true"] .dots__dot { height: 22px; background: var(--accent); }
.dots__tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 7px 11px; border-radius: 8px; background: var(--tip-bg); color: var(--tip-ink);
  box-shadow: var(--tip-shadow);
  font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(4px, -50%) scale(0.94); transform-origin: right center;
  transition: opacity 0.12s var(--ease), transform 0.16s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.dots__tip::after { /* 점 쪽을 가리키는 꼬리 */
  content: ""; position: absolute; left: 100%; top: 50%; margin-top: -5px;
  border: 5px solid transparent; border-left-color: var(--tip-bg);
}
.dots__item:hover .dots__tip, .dots__item:focus-visible .dots__tip { opacity: 1; transform: translate(0, -50%) scale(1); }
@media (max-width: 1023px) { .dots { display: none; } }

/* ---------- 말풍선 툴팁 (모든 페이지, theme.js가 data-tip으로 띄운다) ----------
   디스코드식: 진한 바탕, 굵은 짧은 글, 대상 쪽을 가리키는 꼬리, 짧게 튀어나오는 등장.
   낮·밤 모두 진한 말풍선을 쓰고, 밤에는 배경과 구분되게 가는 테두리를 더한다. */
:root {
  --tip-bg: #15181f; /* 낮: 밝은 바탕 위 진한 말풍선. 글 #f2f4f7과 16:1 */
  --tip-ink: #f2f4f7;
  --tip-shadow: 0 8px 24px -8px rgba(15, 18, 22, 0.45);
}
:root[data-theme="dark"] {
  --tip-bg: #03050b; /* 밤: 배경(#0b1020)보다 한 단계 더 어둡게 + 테두리 */
  --tip-ink: #f2f4f7;
  --tip-shadow: 0 0 0 1px rgba(238, 241, 244, 0.12), 0 10px 28px -8px rgba(0, 0, 0, 0.7);
}
.tip {
  position: fixed; left: 0; top: 0; z-index: 90;
  max-width: min(260px, calc(100vw - 16px));
  padding: 8px 12px; border-radius: 8px;
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--tip-shadow);
  font-family: var(--f-body); font-size: 14px; font-weight: 600; line-height: 1.35;
  word-break: keep-all; pointer-events: none;
  opacity: 0; transform: translateY(-4px) scale(0.94); transform-origin: var(--tip-x, 50%) top;
  transition: opacity 0.12s var(--ease), transform 0.16s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.tip[hidden] { display: none !important; }
.tip[data-side="top"] { transform: translateY(4px) scale(0.94); transform-origin: var(--tip-x, 50%) bottom; }
.tip.is-on { opacity: 1; transform: none; }
.tip::after { /* 꼬리: 대상 가운데(--tip-x)를 가리킨다 */
  content: ""; position: absolute; left: var(--tip-x, 50%); bottom: 100%; margin-left: -5px;
  border: 5px solid transparent; border-bottom-color: var(--tip-bg);
}
.tip[data-side="top"]::after { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: var(--tip-bg); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .nav__links a { padding: 9px 10px; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps__rail { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .nav__links { display: none; }
  .nav__bar .theme-btn { margin-left: auto; }
  .nav__bar .motion-btn:not([hidden]) { margin-left: auto; }
  .nav__bar .motion-btn:not([hidden]) + .theme-btn { margin-left: 2px; }
  .nav__cta { margin-left: 8px; }
  .nav__toggle { display: block; }
  .nav__bar { padding: 0 7px 0 16px; }

  .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 64px)); padding-bottom: 64px; }

  .scene__pin { padding-block: calc(var(--nav-h) + 28px) 20px; }
  .scene__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .scene__copy .h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .scene__copy .lead { display: none; }
  .scene__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
  .scene__step { flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; text-align: center; }
  .scene__steps strong { font-size: 14px; }
  .scene__desc { display: none; }
  .scene__price { margin-top: 14px; font-size: 14px; }
  .swatch { display: none; }

  .case__grid, .pricing__grid, .faq__grid, .contact__grid, .rn-teaser__grid { grid-template-columns: minmax(0, 1fr); }
  .quote, .faq__side { position: static; }
  .terms { grid-template-columns: minmax(0, 1fr); }

  .steps { margin-top: 40px; }
  .steps__rail { display: block; left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .steps__fill { transform-origin: center top; }
  .steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .step { position: relative; padding-left: 60px; min-height: 40px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step__title { margin-top: 6px; }

  .bizinfo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
}

@media (max-width: 640px) {
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .tcard__shell { padding: 4px; border-radius: 16px; }
  .tcard__media { border-radius: 12px; }
  .tcard__meta { display: block; padding: 10px 4px 0; }
  .tcard__cat { font-size: 12px; }
  .tcard__name { font-size: 15px; }
  .tcard__mood, .tcard__go { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .plan__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "radio name" "radio price" "radio sum"; }
  .plan__price { text-align: left; }
  .plan__list { grid-template-columns: minmax(0, 1fr); padding-left: 60px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .btn { height: 50px; }
  .ask__foot { flex-wrap: wrap; }
  .ask__hint { flex: 1 1 100%; }
  .ask__send { flex: 1 1 auto; }
  .ask__core { padding: 14px 14px 12px 16px; }
  .ask__picks { gap: 8px; }
  .ask__pick-name { font-size: 13px; }
  .timeline li { font-size: 14px; }
}

@media (max-width: 700px) {
  .layer { left: -65%; width: 230%; } /* 좁은 화면에서 언덕이 가파르게 찌그러지지 않게 가운데만 잘라 보여 준다 */
  .layer--far { height: 54%; }
  .layer--midfar { height: 45%; }
  .layer--near { height: 33%; }
  .layer--fg { height: 19%; }
  .land__sun { top: 6%; right: 2%; }
  .land__moon { top: 9%; left: 7%; }
}

@media (max-width: 380px) {
  .nav__cta { display: none; }
  .nav__toggle { margin-left: 8px; }
}

/* 모션 줄이기: CSS 전환만 끈다. JS 기능과 콘텐츠는 그대로 (CLAUDE.md: * { transition-duration } 금지) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .mini.is-typing .mini__caret { animation: none; }
  /* 풍경의 흐름·흔들림·반짝임과 노을 연출도 멈춘다(입력창 타이핑 같은 기능은 그대로) */
  .tree, .stars--b, .land__flies i, .land.is-passing .land__dusk, .ask__caret { animation: none; }
  /* 하늘 흐름(구름·별 일주)은 끄지 않고 3배 느리게만 한다(오너 결정). 멈추고 싶으면 머리말의 배경 움직임 버튼 */
  :root { --sky-slow: 3; }
  .cloud { animation: drift calc(var(--dur) * 3) linear calc(var(--delay) * 3) infinite; }
  .stars--b.is-spin { animation: spin calc(50s * var(--sky-slow)) linear infinite; }
}
