/* 사이트 공통 디자인. output.css를 다시 빌드하지 않도록 분리했다. */
:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-deep: #1e3a8a;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.bg-gray-100,
body.bg-gray-50 {
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* 상단 메뉴 */
body > nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body > nav .container > div {
  padding-top: 10px;
  padding-bottom: 10px;
}

body > nav .container > div > div {
  align-items: center;
  column-gap: 2px;
}

.nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: #f1f5f9;
}

.nav-link:first-child {
  margin-right: 8px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-link.underline {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

/* 페이지 머리글 */
body > header:not(.site-hero) {
  padding: 56px 0;
  background:
    radial-gradient(800px 300px at 85% -40%, rgba(147, 197, 253, 0.35), transparent 70%),
    linear-gradient(120deg, var(--blue-deep), var(--blue));
}

body > header:not(.site-hero) h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

body > header:not(.site-hero) p {
  margin-top: 10px;
  color: #dbeafe;
  font-size: 1.0625rem;
}

/* 문의 영역과 바닥글 */
body > section.bg-blue-50 {
  padding: 64px 16px;
  background: var(--blue-soft);
  border-top: 1px solid #dbeafe;
}

body > section.bg-blue-50 h2 {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body > section.bg-blue-50 p {
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

body > section.bg-blue-50 a[href^="sms:"] {
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  font-size: 1.125rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.15s;
}

body > section.bg-blue-50 a[href^="sms:"]:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

body > footer {
  margin: 0;
  padding: 32px 0;
  background: var(--ink);
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 공통 본문 요소 */
.site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 16px 72px;
}

.site-main--narrow {
  max-width: 800px;
}

.site-heading {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
}

.site-subheading {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.0625rem;
  text-align: center;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.site-btn:hover {
  transform: translateY(-1px);
}

.site-btn--primary {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.site-btn--primary:hover {
  background: var(--blue-dark);
}

.site-btn--light {
  background: #fff;
  color: var(--blue-dark);
}

.site-btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.site-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 메인 페이지 */
.site-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(147, 197, 253, 0.35), transparent 70%),
    linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
}

.site-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 16px 104px;
}

.site-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.site-hero__lead {
  margin-top: 14px;
  color: #dbeafe;
  font-size: 1.25rem;
}

.site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.site-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.site-facts {
  position: relative;
  max-width: 1080px;
  margin: -52px auto 0;
  padding: 0 16px;
}

.site-facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.site-facts li {
  padding: 24px 16px;
  text-align: center;
}

.site-facts li + li {
  border-left: 1px solid var(--line);
}

.site-facts strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 소개·차별점 카드 */
.site-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.site-feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 1.5rem;
}

.site-feature h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.site-feature p {
  margin-bottom: 10px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.75;
}

.site-feature p:last-child {
  margin-bottom: 0;
}

.site-feature strong,
.site-article strong {
  color: var(--ink);
  font-weight: 700;
}

/* 요금 */
.site-section {
  margin-top: 72px;
}

.site-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.site-plan {
  position: relative;
  padding: 36px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.site-plan--best {
  border: 2px solid var(--blue);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16);
}

.site-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

.site-plan h3 {
  color: var(--body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.site-plan__price {
  margin-top: 12px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-plan__price small {
  margin-left: 2px;
  font-size: 1rem;
  font-weight: 700;
}

.site-plan__vat {
  color: var(--muted);
  font-size: 0.875rem;
}

.site-plan__monthly {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-note {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
}

.site-center {
  margin-top: 28px;
  text-align: center;
}

/* 글 중심 페이지 */
.site-article {
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.site-article h3 {
  margin: 56px 0 18px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: left;
}

.site-article h3:first-child {
  margin-top: 0;
}

.site-article h4 {
  margin: 40px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.site-article p {
  margin: 0 0 16px;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.site-article .bg-white {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.site-article .bg-white img {
  border-radius: 0;
  box-shadow: none;
}

.site-zones {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: 12px;
  border-spacing: 0;
  overflow: hidden;
}

.site-zones th,
.site-zones td {
  padding: 16px 18px;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: middle;
}

.site-zones tr + tr th,
.site-zones tr + tr td {
  border-top: 1px solid var(--line);
}

.site-zones th {
  width: 150px;
  font-weight: 700;
  white-space: nowrap;
}

.site-zones td {
  color: var(--body);
}

.site-zones .is-dense th { background: #fff7ed; color: #9a3412; }
.site-zones .is-growth th { background: var(--blue-soft); color: var(--blue-dark); }
.site-zones .is-nature th { background: #f0fdf4; color: #166534; }

/* 계약 */
.site-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  counter-reset: step;
}

.site-step {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.site-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.site-step h3 {
  margin-bottom: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
}

.site-step p {
  color: var(--body);
  line-height: 1.7;
}

.site-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 20px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-panel h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 1.0625rem;
}

.site-panel li + li {
  border-top: 1px solid var(--line);
}

.site-panel li strong {
  font-weight: 700;
}

.site-account {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-panel__phone {
  margin-top: 16px;
}

.site-panel a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-prose {
  margin-top: 32px;
}

.site-prose p {
  margin-bottom: 12px;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.85;
  text-align: center;
}

.site-apply {
  margin-top: 40px;
  padding: 44px 24px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff;
  text-align: center;
}

.site-apply h3 {
  margin-bottom: 20px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* FAQ */
.site-faqs {
  display: grid;
  gap: 12px;
}

.site-faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-faq[open] {
  border-color: var(--blue-line);
}

.site-faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.site-faq summary::-webkit-details-marker {
  display: none;
}

.site-faq__q {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-faq__title {
  flex: 1;
}

.site-faq__chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  transition: transform 0.2s;
}

.site-faq[open] .site-faq__chevron {
  transform: rotate(180deg);
}

.site-faq__body {
  padding: 0 22px 20px 66px;
}

.site-faq__body p {
  margin-bottom: 10px;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* 동영상 */
.site-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.site-video {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.site-video:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.site-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.site-video__caption {
  display: block;
  padding: 16px 18px;
  color: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

/* 사진 */
.gallery-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-section .bg-white {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gallery-section .bg-white:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow);
}

.gallery-section .gallery-img {
  height: 320px;
  background: var(--line);
  cursor: zoom-in;
}

.gallery-section .p-4 {
  padding: 14px 18px;
}

.gallery-section .p-4 h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* 위치 */
.site-location .bg-blue-100 {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.site-location h2 {
  letter-spacing: -0.025em;
}

.site-location .rounded-2xl {
  border: 1px solid var(--line);
  box-shadow: none;
}

.site-location .bg-gray-50 {
  background: var(--bg);
  border: 1px solid var(--line);
}

.site-location .grid {
  width: 100%;
}

.site-location h4.text-xl {
  font-size: 1.0625rem;
}

.site-location .grid a[title] {
  min-height: 46px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .site-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 16px 88px;
  }

  .site-steps,
  .site-plans {
    grid-template-columns: 1fr;
  }

  .site-facts ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-facts li:nth-child(3) {
    border-left: 0;
  }

  .site-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  /* 좌우 스와이프로 페이지를 넘기는 main.js와 충돌하지 않도록 메뉴는 줄바꿈으로 둔다. */
  body > nav {
    position: static;
  }

  .nav-link {
    padding: 5px 7px;
    font-size: 0.875rem;
  }

  .nav-link:first-child {
    font-size: 0.95rem;
    margin-right: 2px;
  }

  body > header:not(.site-hero) {
    padding: 40px 0;
  }

  .site-main {
    padding: 40px 16px 56px;
  }

  .site-features,
  .site-videos,
  .site-panel {
    grid-template-columns: 1fr;
  }

  .site-feature {
    padding: 22px;
  }

  .site-article {
    padding: 24px 20px;
  }

  .site-faq summary {
    padding: 16px;
    font-size: 1.0625rem;
  }

  .site-faq__body {
    padding: 0 16px 16px;
  }

  .site-zones th,
  .site-zones td {
    display: block;
    width: auto;
  }

  .site-zones tr + tr td {
    border-top: 0;
  }

  .site-hero__actions .site-btn {
    flex: 1 1 100%;
  }

  .gallery-section .gallery-img {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
