/* ==========================================================================
   invite (초대받은 파트너사 소개 페이지) — style.css
   features/invitee-intro/requirements.md 기준 구현
   ========================================================================== */

:root {
  --gray04: #8d96a1;
  --gray06: #556372;
  --gray08: #3c4651;
  --gray10: #242a30;
  --gray10-rgb: 36, 42, 48;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --primary: #664bf4;
  --primary-rgb: 102, 75, 244;
  --header-height: 70px; /* 사이트 공통 .gnb 실제 높이(docs/assets/gnb-footer.css)와 동일하게 유지 */
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: var(--gray10);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

@media screen and (max-width: 768px) {
  .inv-only-desktop {
    display: none;
  }
}

/* ==========================================================================
   공통 섹션 레이아웃
   ========================================================================== */

.invite {
  overflow-x: clip;
}

.inv-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px;
}

.inv-section__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.inv-section__title--with-subtitle {
  margin-bottom: 16px;
}

.inv-section__subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(var(--gray10-rgb), 0.6);
  text-align: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.inv-hero {
  position: relative;
  padding: calc(var(--header-height) + 72px) 24px 104px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 86% 14%, rgba(102, 75, 244, 0.14) 0%, rgba(102, 75, 244, 0) 56%),
    radial-gradient(90% 130% at 6% 96%, rgba(47, 164, 255, 0.1) 0%, rgba(47, 164, 255, 0) 52%),
    linear-gradient(102deg, #fdfdfe 0%, #f6f4fe 52%, #eeeafd 100%);
}

.inv-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.inv-hero__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.inv-hero__desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(var(--gray10-rgb), 0.76);
  margin-bottom: 36px;
}

/* 초대한 회사 ↔ Joint ↔ 초대받은 회사 관계 다이어그램 — 히어로에서 타이틀 다음으로 눈에 띄는 요소 */
.inv-diagram {
  position: relative;
  margin: 12px auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 28px 48px;
  border-radius: 32px;
  /* 배경 글로우는 이 박스 안에서만 그려지므로, 모서리에 닿기 전에 완전히 투명해져야 한다.
     이전 값(중심 50% 30% / 세로 반지름 100%)은 위쪽 모서리에 아직 7%쯤 남은 상태로 잘려
     설명 문구 바로 아래에 가로 경계선이 생겼다.
     중심을 박스 한가운데로 옮기고, 페이드가 끝나는 지점(78% x 62% = 48.4%)을
     가장 가까운 모서리까지의 거리(50%)보다 안쪽에 두어 잘릴 일이 없게 한다. */
  background: radial-gradient(
    62% 62% at 50% 50%,
    rgba(var(--primary-rgb), 0.13) 0%,
    rgba(var(--primary-rgb), 0.05) 44%,
    rgba(var(--primary-rgb), 0) 78%
  );
}

.inv-diagram__company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 188px;
  padding: 24px 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6),
    0 12px 28px rgba(var(--gray10-rgb), 0.1);
}

/* 이 페이지의 타겟인 '초대받은 회사'를 시각적으로 더 강조 */
.inv-diagram__company--highlight {
  background: var(--white);
  box-shadow:
    0 0 0 2px var(--primary),
    0 16px 32px rgba(var(--primary-rgb), 0.24);
}

.inv-diagram__company--highlight .inv-diagram__company-icon {
  background: var(--primary);
  color: var(--white);
}

.inv-diagram__company--highlight .inv-diagram__company-role {
  color: var(--primary);
}

.inv-diagram__company-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 26px;
}

.inv-diagram__company-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.inv-diagram__company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray08);
}

.inv-diagram__company-role {
  font-size: 12px;
  font-weight: 600;
  color: rgba(var(--gray10-rgb), 0.5);
}

.inv-diagram__link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inv-diagram__line {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), 0.1),
    rgba(var(--primary-rgb), 0.9),
    rgba(var(--primary-rgb), 0.1)
  );
  background-size: 220% 100%;
  animation: inv-flow 2.6s linear infinite;
}

.inv-diagram__line--reverse {
  animation-direction: reverse;
}

@keyframes inv-flow {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

.inv-diagram__logo-group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-diagram__logo-caption {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(var(--gray10-rgb), 0.55);
  text-align: center;
  white-space: nowrap;
}

.inv-diagram__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6),
    0 10px 28px rgba(var(--primary-rgb), 0.3);
}

.inv-diagram__logo::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.16);
  animation: inv-pulse 2.4s ease-out infinite;
}

@keyframes inv-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.inv-diagram__logo img {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .inv-diagram__line,
  .inv-diagram__logo::before {
    animation: none;
  }
}

@media screen and (max-width: 480px) {
  .inv-hero__title {
    font-size: 32px;
  }

  .inv-diagram {
    gap: 8px;
    padding: 28px 16px 48px;
  }

  .inv-diagram__company {
    width: 128px;
    padding: 20px 10px;
    gap: 10px;
  }

  .inv-diagram__company-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .inv-diagram__company-name {
    font-size: 13px;
  }

  .inv-diagram__company-role {
    font-size: 11px;
  }

  .inv-diagram__line {
    width: 24px;
  }

  .inv-diagram__logo {
    width: 64px;
    height: 64px;
  }

  .inv-diagram__logo img {
    width: 32px;
    height: 32px;
  }

  .inv-diagram__logo-caption {
    font-size: 11px;
    white-space: normal;
    width: 90px;
  }
}

/* ==========================================================================
   인용구
   ========================================================================== */

.inv-quote {
  padding: 96px 24px;
  text-align: center;
  background: var(--gray10);
}

.inv-quote blockquote {
  max-width: 720px;
  margin: 0 auto;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--white);
}

.inv-quote__desc {
  max-width: 740px;
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.64);
}

@media screen and (max-width: 480px) {
  .inv-quote blockquote {
    font-size: 20px;
  }
}

/* ==========================================================================
   4대 가치 카드
   ========================================================================== */

.inv-value-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.inv-value-card {
  position: relative;
  isolation: isolate;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.inv-value-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6),
    0 16px 28px -14px rgba(var(--gray10-rgb), 0.35);
}

/* 카드 테두리를 따라 은은하게 도는 보라 그라데이션 링 — hero-tag(docs/index.html)와 동일 기법, hover 시에만 노출 */
@property --inv-card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.inv-value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--inv-card-angle),
    rgba(var(--primary-rgb), 0) 0deg,
    rgba(var(--primary-rgb), 0) 200deg,
    rgba(139, 123, 255, 0.4) 260deg,
    rgba(var(--primary-rgb), 0.95) 320deg,
    rgba(155, 140, 255, 0.9) 350deg,
    rgba(var(--primary-rgb), 0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  animation: inv-card-spin 3.2s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.inv-value-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes inv-card-spin {
  to {
    --inv-card-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inv-value-card::before {
    animation: none;
  }
}

.inv-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 20px;
}

.inv-value-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.inv-value-card__highlight {
  transition:
    color 0.2s ease,
    font-weight 0.2s ease;
}

.inv-value-card:hover .inv-value-card__highlight {
  color: var(--primary);
  font-weight: 800;
}

.inv-value-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(var(--gray10-rgb), 0.6);
}

@media screen and (max-width: 560px) {
  .inv-value-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   온보딩 3단계
   ========================================================================== */

/* 위 4대 가치 섹션과의 경계가 흐려 보이지 않도록 은은한 배경으로 구분 */
#onboarding {
  position: relative;
}

#onboarding::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f8f7fd;
  z-index: -1;
}

.inv-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.inv-step {
  padding: 20px 20px 28px;
  border-radius: 20px;
  background: var(--white);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6),
    0 4px 16px rgba(var(--gray10-rgb), 0.05);
}

/* 온보딩 단계별 실제 화면 캡처 — 화면 속 장면을 보는 듯한 연한 테두리로 감싼다.
   원본 세 장의 비율이 1.61 / 1.40 / 1.03으로 제각각이라 cover로 채우면 장마다
   잘리는 방향과 양이 달라 서로 어긋나 보인다. 한 프레임 안에서 셋 다 온전히
   보이도록 contain으로 통일하고, 남는 자리는 프레임 안쪽 패딩이 받아낸다. */
.inv-step__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  margin-bottom: 24px;
  padding: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f5fa;
  box-shadow: 0 0 0 1px rgba(var(--gray10-rgb), 0.08);
}

.inv-step__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.inv-step__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.inv-step__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.inv-step__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(var(--gray10-rgb), 0.6);
}

@media screen and (max-width: 768px) {
  .inv-steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AI 연동
   ========================================================================== */

.inv-ai {
  background: rgba(var(--primary-rgb), 0.03);
  max-width: none;
  padding: 96px 24px;
}

.inv-ai > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.inv-ai__eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.inv-ai__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* 아래 .mcp-stage/.claude/.cl-* 는 메인 랜딩(docs/index.html) AI·MCP 섹션의
   우측 Claude 대화 목업을 그대로 재사용한 것 — 클래스명·수치를 원본과 동일하게 유지 */
.inv-ai__stage-col {
  display: flex;
  flex-direction: column;
}

.mcp-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 36px;
  border-radius: 20px;
  background: #f4f3f7;
}

.mcp-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

.mcp-stage > * {
  position: relative;
  z-index: 1;
}

.claude {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(36, 42, 48, 0.12),
    0 0 0 1px rgba(36, 42, 48, 0.05);
}

.cl-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 6px;
}

.cl-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 15px;
  border-radius: 14px;
  background: #f0eee6;
  color: #2b2b28;
  font-size: 14px;
  line-height: 1.5;
}

.cl-ai {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cl-logo {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  transform-origin: 50% 50%;
  animation: cl-logo-spin 9s linear infinite;
}

@keyframes cl-logo-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-logo {
    animation: none;
  }
}

.cl-p {
  font-size: 14px;
  line-height: 1.65;
  color: #2b2b28;
}

.cl-p code,
.cl-ul code {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #b84a3a;
  background: #f6ece9;
  padding: 1px 5px;
  border-radius: 5px;
}

.cl-ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 18px;
  margin: 0;
}

.cl-ul li {
  font-size: 14px;
  line-height: 1.6;
  color: #2b2b28;
}

.cl-ul li b {
  font-weight: 600;
}

.cl-em {
  color: #b84a3a;
  font-weight: 600;
}

.cl-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 16px 16px;
  padding: 11px 14px;
  border: 1px solid #e6e4dc;
  border-radius: 14px;
}

.cl-input .cl-plus {
  color: #8a887f;
  font-size: 15px;
}

.cl-ph {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 21px;
  color: #a8a69c;
  font-size: 14px;
}

.cl-type {
  color: #2b2b28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.cl-caret {
  display: inline-block;
  width: 1.5px;
  height: 15px;
  margin-left: 1px;
  background: #2b2b28;
  animation: cl-blink 1.05s step-end infinite;
}

@keyframes cl-blink {
  50% {
    opacity: 0;
  }
}

.cl-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b6960;
}

.cl-model i {
  font-size: 9px;
}

.cl-input .cl-mic {
  color: #8a887f;
  font-size: 14px;
}

@media screen and (max-width: 480px) {
  .mcp-stage {
    min-height: 360px;
    padding: 20px;
  }
}

.inv-ai__tools {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.inv-ai__tool-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray06);
  margin-bottom: 14px;
}

.inv-ai__tool-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inv-ai__tool-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  box-shadow:
    0 0 0 0.5px #e4e5e9,
    0 0 0 1px rgba(228, 229, 233, 0.6);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray08);
}

.inv-ai__tool-list i {
  color: var(--primary);
}

/* 활용 가능 도구 — MCP로 실제 할 수 있는 일을 한 줄로 함께 보여준다 */
.inv-ai__tool-list--detailed {
  flex-direction: column;
  gap: 8px;
}

.inv-ai__tool-list--detailed li {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
}

.inv-ai__tool-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 80px; /* 가장 긴 'Calendar' 기준 — 모든 행의 설명 텍스트 시작 위치를 맞춘다 */
}

.inv-ai__tool-example {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(var(--gray10-rgb), 0.55);
}

@media screen and (max-width: 900px) {
  .inv-ai__layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   비용 안내
   ========================================================================== */

.inv-free {
  text-align: center;
}

.inv-free__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.inv-free__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.inv-free__desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(var(--gray10-rgb), 0.6);
}

/* ==========================================================================
   FAQ — user-guide FR-5 아코디언 인터랙션 재사용, 문항 스타일은 메인 랜딩
   (docs/index.html .faq-q/.faq-a)과 동일하게 맞춤. 위 비용 안내 섹션과의
   경계가 흐려 보이지 않도록 상단 구분선 추가
   ========================================================================== */

/* 홈(docs/index.html)의 .faq-grid와 같은 구성 — 좌측 타이틀 / 우측 점선 아코디언.
   섹션 자체를 그리드로 써서 별도 래퍼 없이 4:8 두 열을 만든다. */
#faq {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid rgba(var(--gray10-rgb), 0.08);
}

.inv-faq-title {
  padding-left: 24px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -1px;
  color: var(--gray10);
  text-align: left;
}

.ug-faq-list {
  display: flex;
  flex-direction: column;
}

.ug-faq-item + .ug-faq-item {
  border-top: 1px dotted rgba(var(--gray10-rgb), 0.25);
}

.ug-faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.ug-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 26px 4px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  text-align: left;
  color: var(--gray10);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ug-faq-question:hover {
  color: rgba(var(--gray10-rgb), 0.62);
}

.ug-faq-question[aria-expanded='true'],
.ug-faq-question[aria-expanded='true']:hover {
  color: var(--gray10);
}

.ug-faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.ug-faq-question__label {
  display: flex;
  min-width: 0;
}

.ug-faq-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(var(--gray10-rgb), 0.45);
  transition:
    transform 0.25s ease,
    color 0.2s ease;
}

.ug-faq-question:hover .ug-faq-icon {
  color: rgba(var(--gray10-rgb), 0.62);
}

.ug-faq-question[aria-expanded='true'] .ug-faq-icon,
.ug-faq-question[aria-expanded='true']:hover .ug-faq-icon {
  color: var(--primary);
  transform: rotate(180deg);
}

/* 하단 여백은 컨테이너가 아니라 <p>에 둔다 — max-height가 0일 때 완전히 접히도록. */
.ug-faq-answer {
  overflow: hidden;
  max-height: 0;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(var(--gray10-rgb), 0.6);
  transition: max-height 0.3s ease;
}

.ug-faq-answer p {
  max-width: 680px;
  margin: 0;
  padding-bottom: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .ug-faq-answer {
    transition: none;
  }
}

/* 홈과 같은 지점에서 한 열로 떨어진다 */
@media screen and (max-width: 1000px) {
  #faq {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inv-faq-title {
    padding-left: 0;
    font-size: 30px;
    margin-bottom: 12px;
  }

  .ug-faq-question {
    font-size: 17px;
    padding: 20px 2px;
  }
}

/* ==========================================================================
   최종 CTA
   ========================================================================== */

/* 바로 위 FAQ(흰 배경)와 뚜렷이 구분되도록 보라 그라데이션 배너로 마무리 */
.inv-final-cta {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 128px 24px;
  color: var(--white);
}

.inv-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(135deg, #7c67f6 0%, #664bf4 48%, #4f37d8 100%);
}

.inv-final-cta__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 14px;
}

.inv-final-cta__desc {
  max-width: 480px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

@media screen and (max-width: 768px) {
  .inv-section {
    padding: 80px 20px;
  }

  .inv-section__title {
    font-size: 22px;
  }
}

/* ==========================================================================
   푸터 경계
   ========================================================================== */

/* 최종 CTA가 보라 그라데이션 풀블리드라 검정 푸터에 그대로 맞닿는다.
   이때 공통 푸터의 밝은 상단 테두리(gnb-footer.css의 --jn-line #eeedec)가
   섹션 구분선이 아니라 흰 라인처럼 보이므로 지운다.
   홈(docs/index.html)에서 CTA 배너가 푸터에 맞닿는 좁은 화면에 border-top을
   없앤 것과 같은 이유다.
   gnb-footer.css가 이 파일보다 뒤에 로드되므로 특이도를 한 단계 높여 덮어쓴다. */
body footer.dark-zone {
  border-top: none;
}
