/* ==========================================================================
   얼굴에 적힌 팔자 · 웹사이트 스타일 (앱은 Flutter, 웹사이트는 이 HTML/CSS)
   ========================================================================== */

:root {
  --ink: #0f1b3d;
  --ink-2: #3b4766;
  --muted: #6b7690;
  --line: #e4e9f4;
  --bg: #f5f7fc;
  --blue: #3d6cf5;
  --blue-2: #6f9bff;
  --violet: #7b61ff;
  --navy: #0b1437;
  --navy-2: #16205a;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(30, 52, 120, 0.10);
  --container: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #e8efff 0, var(--bg) 520px) no-repeat, var(--bg);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
}

/* ── 상단 메뉴 ─────────────────────────────────────────────── */
.gnb {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 27, 61, 0.06);
}

.gnb-inner {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.gnb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}

.gnb-logo:hover {
  text-decoration: none;
}

.gnb-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.gnb-logo b {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.gnb-logo small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}

.gnb-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin-left: auto;
}

.gnb-menu a {
  position: relative;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.gnb-menu a:hover,
.gnb-menu a.active {
  color: var(--ink);
  text-decoration: none;
}

.gnb-menu a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.gnb-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.gnb-lang {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.gnb-cta,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gnb-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(61, 108, 245, 0.28);
}

.gnb-cta:hover,
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.btn-white {
  color: var(--blue);
  background: #fff;
}

/* 오른쪽에 떠 있는 앱 시작 버튼 */
.float-cta {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 58px;
  padding: 14px 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 12px 28px rgba(61, 108, 245, 0.35);
}

.float-cta:hover {
  text-decoration: none;
}

.float-cta svg {
  width: 22px;
  height: 22px;
}

/* ── 공통 섹션 ──────────────────────────────────────────────── */
.sec {
  padding: 96px 0;
}

.sec-head {
  margin-bottom: 40px;
}

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

.sec-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
}

.sec-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.sec-desc {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

.sec-head.center .sec-desc {
  margin-left: auto;
  margin-right: auto;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.more-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ── 히어로 ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(111, 155, 255, 0.35), transparent 70%),
    radial-gradient(500px 360px at 70% 85%, rgba(123, 97, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #eef3ff, #f7f9ff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.22;
  letter-spacing: -1.5px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.hero-desc {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-slide {
  display: none;
}

.hero-slide.on {
  display: block;
  animation: fadeUp 0.6s ease;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7d3f3;
  cursor: pointer;
  transition: width 0.25s ease;
}

.hero-dots button.on {
  width: 28px;
  background: var(--blue);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .halo {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d9e4ff 45%, #b9c9ff 75%);
  box-shadow: inset -30px -40px 80px rgba(123, 97, 255, 0.25), 0 40px 80px rgba(61, 108, 245, 0.18);
}

.hero-visual .mascot {
  position: relative;
  width: min(330px, 80%);
  filter: drop-shadow(0 30px 40px rgba(40, 60, 140, 0.25));
  animation: float 5s ease-in-out infinite;
}

.glass-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(30, 52, 120, 0.14);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
}

.glass-chip small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.glass-chip i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}

.chip-a {
  top: 14%;
  left: 2%;
}

.chip-b {
  bottom: 14%;
  right: 0;
  animation-delay: -2.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── 소개: + 로 이어진 그라데이션 카드 ───────────────────────── */
.trio {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}

.trio-plus {
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 6px 16px rgba(30, 52, 120, 0.12);
}

.trio-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #eaf0ff);
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.trio-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

.trio-body {
  padding: 26px 26px 22px;
  flex: 1;
}

.trio-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
}

.trio-icon svg {
  width: 24px;
  height: 24px;
}

.trio-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.trio-card .en {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.trio-card p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

.trio-foot {
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.mini-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-card b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.mini-card span {
  font-size: 14px;
  color: var(--muted);
}

/* ── 남색 밴드: 서비스 탭 + 카드 ─────────────────────────────── */
.band-dark {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  color: #fff;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(111, 155, 255, 0.35), transparent 70%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
}

.band-dark .sec-title {
  color: #fff;
}

.band-dark .sec-desc {
  color: rgba(255, 255, 255, 0.72);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  margin: 8px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tabs button {
  position: relative;
  padding: 14px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.tabs button.on {
  color: #fff;
}

.tabs button.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
}

.stage {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 22px;
}

.stage-side {
  height: 220px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  text-align: center;
}

.stage-main {
  position: relative;
  min-height: 300px;
  padding: 34px 34px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, #5b84ff, #7b61ff);
  box-shadow: 0 30px 60px rgba(10, 20, 80, 0.45);
  overflow: hidden;
}

.stage-main::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15) 60%, transparent 70%);
}

.stage-main h3 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.stage-main p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  max-width: 460px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.stage-main .btn {
  position: relative;
  z-index: 1;
}

/* ── 가이드(소식형) ─────────────────────────────────────────── */
.news {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.news-feature {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.news-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 55, 0) 30%, rgba(11, 20, 55, 0.85));
}

.news-feature div {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
}

.news-feature small {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.news-feature h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.35;
}

.news-feature:hover {
  text-decoration: none;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 20px 4px;
  color: var(--ink);
}

.news-list a:hover {
  text-decoration: none;
}

.news-list a:hover b {
  color: var(--blue);
}

.news-list .cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.news-list b {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.news-list span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* ── 12별자리 ──────────────────────────────────────────────── */
.zodiac {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zodiac a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.zodiac a:hover {
  text-decoration: none;
  border-color: var(--blue-2);
  box-shadow: 0 10px 24px rgba(61, 108, 245, 0.12);
}

.zodiac .sym {
  font-size: 26px;
  line-height: 1.2;
  color: var(--violet);
}

.zodiac small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ── FAQ (펼치기) ───────────────────────────────────────────── */
.qna {
  max-width: 860px;
  margin: 0 auto;
}

.qna details {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.qna summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.qna summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
}

.qna details[open] summary::after {
  content: '−';
}

.qna details p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--ink-2);
}

/* ── 하단 CTA ──────────────────────────────────────────────── */
.cta-band {
  padding: 0 0 96px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 26px 60px rgba(61, 108, 245, 0.3);
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.6px;
}

.cta-box p {
  margin: 10px 0 26px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-box::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

/* ── 앱 설치 안내 (모든 페이지 하단) ──────────────────────────── */
.app-dl {
  padding: 8px 0 56px;
}

.app-dl[hidden] {
  display: none;
}

.app-dl-box {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.app-dl-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.app-dl-text {
  flex: 1;
  min-width: 0;
}

.app-dl-text h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.app-dl-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.store-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  color: #fff;
  background: #111;
  transition: transform 0.15s ease;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.store-btn svg {
  width: 26px;
  height: 26px;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn small {
  font-size: 11px;
  opacity: 0.85;
}

.store-btn b {
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .app-dl-box {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 20px;
  }

  .app-dl-icon {
    width: 52px;
    height: 52px;
  }

  .app-dl-text {
    flex-basis: calc(100% - 68px);
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── 광고 ──────────────────────────────────────────────────── */
.ad-unit {
  margin: 36px auto;
  min-height: 90px;
}

.ad-wrap {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
}

/* ── 서비스 페이지 ─────────────────────────────────────────── */
.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1.2px;
  line-height: 1.25;
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
}

.feature-row.flip {
  grid-template-columns: 1.15fr 0.85fr;
}

.feature-row.flip .feature-media {
  order: 2;
}

.feature-media {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #e6edff);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media.contain img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.feature-num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue);
}

.feature-text h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.6px;
}

.feature-text p,
.feature-text li {
  color: var(--ink-2);
}

.feature-text ul {
  padding-left: 20px;
}

/* ── 문서형 페이지 (가이드, 약관 등) ──────────────────────── */
main.content {
  width: min(860px, 100% - 32px);
  margin: 40px auto 96px;
  padding: 52px clamp(22px, 5vw, 64px);
  background: #fff;
  border-radius: 28px;
  border: 1px solid #fff;
  box-shadow: var(--shadow);
}

main.content h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.9px;
}

main.content h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  letter-spacing: -0.5px;
}

main.content h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

main.content p {
  margin: 0 0 16px;
  font-size: 16.5px;
  color: #26314f;
}

main.content ul,
main.content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

main.content li {
  margin-bottom: 8px;
  color: #26314f;
}

main.content .lead {
  font-size: 18px;
  color: var(--ink-2);
  padding-left: 18px;
  border-left: 3px solid var(--blue-2);
}

.breadcrumb {
  margin: 0 0 18px !important;
  font-size: 14px !important;
}

.article-meta,
.doc-meta {
  font-size: 14px !important;
  color: var(--muted) !important;
}

.app-cta {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.app-cta p {
  color: #fff !important;
  margin-bottom: 8px !important;
}

.app-cta a {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.app-cta a:hover {
  text-decoration: none;
}

.related {
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--bg);
}

.related h2 {
  margin: 0 0 10px !important;
  font-size: 18px !important;
}

.related ul {
  margin: 0 !important;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none;
}

.card-grid li {
  margin: 0 !important;
}

.card-grid a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

.card-grid a:hover {
  border-color: var(--blue-2);
  text-decoration: none;
}

.card-grid small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.faq dt {
  margin-top: 22px;
  font-weight: 700;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--ink-2);
}

/* 개인정보처리방침·이용약관 언어 전환 */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.lang-switch a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
}

.lang-switch a:hover {
  text-decoration: none;
  border-color: var(--blue);
}

.lang-switch a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.lang-section + .lang-section {
  margin-top: 56px;
}

/* ── 바닥글 ────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 36px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer b.brand {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  color: #fff;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #fff;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

/* ── 반응형 ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .gnb-inner {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 0;
  }

  /* 메뉴는 숨기지 않고 아래 줄로 내린다 */
  .gnb-menu {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 2px 18px;
  }

  .gnb-menu a {
    padding: 8px 0;
  }

  .gnb-menu a.active::after {
    bottom: 2px;
  }

  .gnb-side {
    margin-left: auto;
  }

  .hero-inner,
  .news,
  .feature-row,
  .feature-row.flip {
    grid-template-columns: 1fr;
  }

  .feature-row.flip .feature-media {
    order: 0;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual .halo {
    width: 300px;
    height: 300px;
  }

  .trio {
    grid-template-columns: 1fr;
  }

  .trio-plus {
    justify-self: center;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .stage-side {
    display: none;
  }

  .zodiac {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .float-cta {
    top: auto;
    bottom: 18px;
    right: 16px;
    transform: none;
  }

  .sec {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .gnb-logo small {
    display: none;
  }

  .gnb-lang {
    padding: 6px 4px;
  }

  .gnb-cta {
    padding: 9px 14px;
    font-size: 14px;
  }

  .news-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 26px;
  }
}

/* ── 글 머리 작성 정보 ─────────────────────────────────────────── */
.byline,
main.content p.byline {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.article-cta {
  margin: 36px 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #eef3ff;
  font-weight: 600;
}

/* ── 공개 도구 (출생 차트 계산기) ─────────────────────────────── */
.tool-box {
  margin: 24px 0 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.tool-form label {
  display: block;
  margin-bottom: 14px;
}

.tool-form label > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tool-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.tool-input:disabled {
  background: var(--bg);
  color: var(--muted);
}

.tool-form label.tool-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.tool-cities {
  max-height: 260px;
  overflow-y: auto;
  margin: -6px 0 10px;
  border-radius: 12px;
}

.tool-cities button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tool-cities button:hover {
  background: #f3f6fd;
}

.tool-cities small {
  color: var(--muted);
}

.tool-picked {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.tool-picked.on {
  color: var(--blue);
  font-weight: 700;
}

.tool-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.tool-error {
  margin: 12px 0 0;
  color: #e14b4b;
  font-size: 14px;
}

.chart-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.chart-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbff;
}

.chart-card h3 {
  margin: 2px 0 4px;
  font-size: 22px;
}

.chart-card p {
  margin: 6px 0;
  font-size: 14px;
}

.chart-kicker {
  color: var(--blue);
  font-size: 13px !important;
  font-weight: 700;
}

.chart-meta,
.chart-note {
  color: var(--muted);
  font-size: 13px !important;
}

.muted-card {
  color: var(--muted);
}

.chart-table-title {
  margin: 28px 0 10px;
}

.table-wrap {
  overflow-x: auto;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.chart-table th,
.chart-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.chart-table th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .tool-box {
    padding: 18px;
  }

  .tool-grid,
  .chart-cards {
    grid-template-columns: 1fr;
  }
}

/* ── 404 ─────────────────────────────────────────────────────────── */
.notfound {
  padding: 40px 0 20px;
  text-align: center;
}

.notfound .code {
  margin: 0;
  color: var(--blue);
  font-size: 56px;
  font-weight: 800;
}
