/* ============================================================
   HG Stock Insight - 모바일 우선 랜딩 페이지 스타일
   Google Ads 정책 준수, 고전환율 디자인
   ============================================================ */

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

:root {
  --c-primary: #0b3d91;
  --c-primary-dark: #072a64;
  --c-primary-light: #e8f0fc;
  --c-accent: #e63946;
  --c-text: #1a1a1a;
  --c-text-light: #555;
  --c-text-muted: #888;
  --c-bg: #ffffff;
  --c-bg-alt: #f8f9fa;
  --c-border: #e0e0e0;
  --c-success: #1d7a3c;
  --c-warning: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --sh: 0 4px 24px rgba(0,0,0,0.08);
  --sh-soft: 0 2px 8px rgba(0,0,0,0.05);
  --sh-lg: 0 10px 40px rgba(0,0,0,0.1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font); line-height: 1.6; color: var(--c-text); background: var(--c-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.hg-container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* === 버튼 === */
.hg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform .1s, background .2s; border: 2px solid transparent;
}
.hg-btn:active { transform: translateY(1px); }
.hg-btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(11,61,145,.3); }
.hg-btn--primary:hover { background: var(--c-primary-dark); }
.hg-btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.hg-btn--lg { padding: 18px 32px; font-size: 1.1rem; }
.hg-btn--block { width: 100%; }

/* === 헤더 === */
.hg-header { position: sticky; top: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); z-index: 50; }
.hg-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.hg-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); }
.hg-logo__mark { width: 38px; height: 38px; background: var(--c-primary); color: #fff; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.hg-logo__text strong { font-size: .95rem; display: block; }
.hg-nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 12px; min-width: 44px; min-height: 44px; background: none; border: none; cursor: pointer; justify-content: center; }
.hg-nav-toggle span { width: 22px; height: 2px; background: var(--c-text); }
.hg-nav { position: fixed; top: 66px; right: 0; width: 85%; max-width: 300px; height: calc(100vh - 66px); background: #fff; border-left: 1px solid var(--c-border); transition: transform .3s ease; padding: 24px; transform: translateX(100%); visibility: hidden; }
.hg-nav.is-open { transform: translateX(0); visibility: visible; }
.hg-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hg-nav a { display: block; padding: 14px 0; font-size: 1.05rem; text-decoration: none; color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.hg-nav__cta { margin-top: 12px; text-align: center; background: var(--c-primary); color: #fff !important; border-radius: 10px; padding: 16px !important; border: none !important; }

/* === 히어로 === */
.hg-hero { padding: 28px 0 36px; background: linear-gradient(180deg, var(--c-primary-light) 0%, #fff 100%); }
.hg-eyebrow { display: inline-block; color: var(--c-primary); font-weight: 600; font-size: .85rem; margin-bottom: 12px; background: #fff; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--c-primary-light); }
.hg-hero__title { font-size: 1.9rem; line-height: 1.3; margin-bottom: 14px; font-weight: 800; letter-spacing: -.5px; }
.hg-hero__desc { color: var(--c-text-light); font-size: 1rem; margin-bottom: 18px; }
.hg-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hg-hero__badge { background: #fff; border: 1px solid var(--c-border); padding: 5px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; color: var(--c-success); }
.hg-hero__media { margin: 20px 0; max-width: 260px; }
.hg-hero__media img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.hg-hero__cta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hg-hero__cta .hg-btn--ghost { order: 2; }

/* === 정보 안내 배너 (Google Ads 정책 준수: 허위 긴박감 표현 제거, 중성적 정보 전달) === */
.hg-urgency {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: linear-gradient(90deg, var(--c-primary-light) 0%, #f0f7ff 100%);
  border: 1px solid var(--c-primary-light);
  border-left: 4px solid var(--c-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 4px 0 18px;
  font-size: .88rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(11,61,145,.06);
}
.hg-urgency__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(11,61,145,.6);
  animation: hgUrgencyPulse 1.6s infinite;
}
.hg-urgency__update { color: var(--c-primary-dark); font-weight: 700; }
.hg-urgency__dot    { color: var(--c-primary); opacity: .6; }
.hg-urgency__scarcity { color: var(--c-text-light); font-weight: 600; }
.hg-urgency--contact { margin: 0 0 20px; }
@keyframes hgUrgencyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(11,61,145,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(11,61,145,0); }
  100% { box-shadow: 0 0 0 0 rgba(11,61,145,0); }
}
.hg-hero__socialproof { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--sh-soft); }
.hg-hero__avatars { display: flex; }
.hg-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; border: 2px solid #fff; margin-left: -10px; }
.hg-avatar:first-child { margin-left: 0; }
.hg-avatar--sm { width: 30px; height: 30px; font-size: .75rem; }
.hg-hero__socialtext { font-size: .9rem; color: var(--c-text-light); }
.hg-hero__socialtext strong { color: var(--c-text); }

/* === 통계 === */
.hg-stats { background: var(--c-primary); color: #fff; padding: 32px 0; }
.hg-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.hg-stats__item { display: flex; flex-direction: column; gap: 4px; }
.hg-stats__num { font-size: 1.8rem; font-weight: 800; }
.hg-stats__label { font-size: .85rem; color: rgba(255,255,255,.8); }

/* === 섹션 === */
.hg-section { padding: 48px 0; }
.hg-section--alt { background: var(--c-bg-alt); }
.hg-section__title { font-size: 1.6rem; margin-bottom: 10px; font-weight: 800; letter-spacing: -.5px; }
.hg-section__lead { color: var(--c-text-light); font-size: .98rem; margin-bottom: 28px; }

/* === 특징 === */
.hg-features { list-style: none; display: grid; gap: 14px; }
.hg-features li { background: #fff; padding: 18px; border-radius: var(--r); box-shadow: var(--sh-soft); display: flex; gap: 14px; align-items: flex-start; }
.hg-features__ico { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.hg-features h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hg-features p { font-size: .92rem; color: var(--c-text-light); }

/* === 에디터 === */
.hg-analyst { display: grid; gap: 24px; }
.hg-analyst__media img { border-radius: var(--r-lg); box-shadow: var(--sh); aspect-ratio: 1; object-fit: cover; }
.hg-analyst__name { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.hg-analyst__role { color: var(--c-primary); font-weight: 600; margin-bottom: 12px; font-size: .95rem; }
.hg-analyst__bio { color: var(--c-text-light); line-height: 1.8; font-size: .95rem; }
.hg-analyst__creds { list-style: none; margin: 16px 0; display: grid; gap: 8px; }
.hg-analyst__creds li { background: #fff; padding: 10px 14px; border-radius: 8px; font-size: .92rem; border-left: 3px solid var(--c-primary); }
.hg-note { margin-top: 16px; font-size: .82rem; color: #666; background: #f1f3f5; padding: 12px; border-radius: 8px; }

/* === 콘텐츠 카드 === */
.hg-pillars { display: grid; gap: 14px; }
.hg-card { background: #fff; padding: 20px; border-radius: var(--r); border: 1px solid var(--c-border); }
.hg-card__ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.5rem; }
.hg-card__ico--blue { background: #dbeafe; }
.hg-card__ico--green { background: #d1fae5; }
.hg-card__ico--orange { background: #fed7aa; }
.hg-card__ico--purple { background: #ede9fe; }
.hg-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.hg-card p { color: var(--c-text-light); font-size: .92rem; }

/* === 이용방법 === */
.hg-steps { display: grid; gap: 16px; }
.hg-step { background: #fff; padding: 22px; border-radius: var(--r); text-align: center; box-shadow: var(--sh-soft); }
.hg-step__num { width: 44px; height: 44px; background: var(--c-primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 14px; }
.hg-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hg-step p { color: var(--c-text-light); font-size: .92rem; }
.hg-step__arrow { text-align: center; font-size: 1.3rem; color: var(--c-text-muted); }

/* === 갤러리 === */
.hg-gallery { margin-top: 20px; }
.hg-gallery img { border-radius: var(--r); box-shadow: var(--sh); width: 100%; }
.hg-gallery figcaption { text-align: center; margin-top: 10px; color: var(--c-text-light); font-size: .88rem; }

/* === 독자후기 === */
.hg-testi { display: grid; gap: 14px; }
.hg-testi__card { background: #fff; padding: 22px; border-radius: var(--r); box-shadow: var(--sh-soft); }
.hg-testi__stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 10px; }
.hg-testi__card blockquote { font-size: .98rem; line-height: 1.7; margin-bottom: 14px; }
.hg-testi__card figcaption { display: flex; align-items: center; gap: 10px; }
.hg-testi__card figcaption strong { font-size: .92rem; }
.hg-testi__card figcaption em { font-size: .82rem; color: var(--c-text-light); font-style: normal; }

/* === FAQ === */
.hg-faq { display: grid; gap: 10px; }
.hg-faq details { border: 1px solid var(--c-border); border-radius: 8px; background: #fff; overflow: hidden; }
.hg-faq summary { padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hg-faq summary::-webkit-details-marker { display: none; }
.hg-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--c-primary); }
.hg-faq details[open] summary::after { content: '−'; }
.hg-faq p { padding: 0 18px 18px; color: var(--c-text-light); font-size: .92rem; }

/* === 위험 고지 === */
.hg-risk { background: #fef2f2; border-top: 4px solid var(--c-accent); border-bottom: 4px solid var(--c-accent); padding: 36px 0; }
.hg-risk__title { font-size: 1.2rem; color: #991b1b; margin-bottom: 10px; font-weight: 700; }
.hg-risk__body { color: #450a0a; line-height: 1.8; font-size: .9rem; }

/* === 구독 === */
.hg-contact-cta { background: linear-gradient(180deg, #fff 0%, var(--c-primary-light) 100%); }
.hg-contact { max-width: 520px; margin: 0 auto; }
.hg-form { background: #fff; padding: 24px; border-radius: var(--r); border: 1px solid var(--c-border); box-shadow: var(--sh); }
.hg-form__row { margin-bottom: 16px; }
.hg-form__label { display: block; margin-bottom: 8px; font-weight: 600; }
.hg-form__input { width: 100%; padding: 14px 16px; border: 2px solid var(--c-border); border-radius: 8px; font-size: 1rem; }
.hg-form__input:focus { outline: none; border-color: var(--c-primary); }
.hg-form__check { display: flex; gap: 8px; margin-bottom: 18px; font-size: .9rem; color: var(--c-text-light); }
.hg-form__check input { margin-top: 4px; }
.hg-form__trust { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; font-size: .82rem; color: var(--c-success); font-weight: 600; }
.hg-form__note { font-size: .82rem; color: var(--c-text-light); margin-top: 10px; text-align: center; }
.hg-form__msg { text-align: center; padding: 12px; border-radius: 8px; margin-top: 10px; }

/* === 푸터 === */
.hg-footer { background: #111827; color: #d1d5db; padding: 36px 0 28px; }
.hg-footer__grid { display: grid; gap: 20px; margin-bottom: 28px; }
.hg-footer .hg-logo { color: #fff; }
.hg-footer .hg-logo__mark { background: #fff; color: var(--c-primary); }
.hg-footer__desc { margin-top: 8px; color: #9ca3af; font-size: .88rem; }
.hg-footer__links { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.hg-footer__links a { color: #d1d5db; text-decoration: none; font-size: .88rem; }
.hg-footer__links a:hover { color: #fff; }
.hg-footer__legal { border-top: 1px solid #374151; padding-top: 20px; font-size: .82rem; color: #6b7280; }
.hg-footer__disclaimer { margin-top: 8px; line-height: 1.6; }

/* === 스킵 링크 === */
.hg-skiplink { position: absolute; top: -40px; left: 0; background: var(--c-primary); color: #fff; padding: 8px 16px; z-index: 100; }
.hg-skiplink:focus { top: 0; }

/* === 모바일 하단 고정 CTA === */
.hg-mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  background: var(--c-primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11,61,145,.38), 0 2px 6px rgba(0,0,0,.12);
  animation: hgCtaPulse 2.4s ease-in-out infinite;
}
.hg-mobile-cta:active { transform: scale(.98); }
.hg-mobile-cta__arrow { font-size: 1.15rem; line-height: 1; }
@keyframes hgCtaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(11,61,145,.38), 0 2px 6px rgba(0,0,0,.12); }
  50%      { box-shadow: 0 12px 32px rgba(11,61,145,.55), 0 4px 10px rgba(0,0,0,.18); }
}
/* 쿠키 배너 노출 시 상단으로 밀기 */
body:has(.hg-cookie:not([hidden])) .hg-mobile-cta { bottom: 92px; }

/* 폼 "선택" 표기 */
.hg-form__optional { color: var(--c-text-light); font-weight: 400; font-size: .82rem; margin-left: 4px; }

/* 링크형 제출 버튼 시각 대칭 */
a.hg-btn { text-decoration: none; text-align: center; }

/* ============================================================
   컴플라이언스 강화 요소 (Google Ads 정책 준수 강화)
   ============================================================ */

/* 최상단 컴플라이언스 스트립 - 헤더 위에 항상 고정, 법적 근거 명시 */
.hg-compliance-strip {
  background: #0b3d91;
  color: #ffffff;
  font-size: .78rem;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.hg-compliance-strip__inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hg-compliance-strip__ico {
  font-size: .95rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.hg-compliance-strip__text {
  flex: 1;
}
.hg-compliance-strip strong { font-weight: 700; }

/* 히어로 CTA 아래 눈에 띄는 면책 배지 - 노란 경고 톤 */
.hg-hero__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.55;
  color: #78350f;
}
.hg-hero__disclaimer-ico {
  font-size: 1rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.hg-hero__disclaimer-text { flex: 1; }
.hg-hero__disclaimer-text strong {
  display: block;
  color: #92400e;
  font-weight: 800;
  margin-bottom: 4px;
  font-size: .88rem;
}

/* CTA 버튼 아래 투명성 힌트 (사용자에게 클릭 후 어디로 가는지 안내) */
.hg-cta-hint {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 10px 0 4px;
  font-size: .78rem;
  color: var(--c-text-light);
  line-height: 1.5;
}
.hg-cta-hint__ico {
  color: var(--c-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.hg-cta-hint--center {
  justify-content: center;
  text-align: center;
  margin: 12px auto 8px;
}

/* 푸터 최종 업데이트 라벨 - 투명성 신호 */
.hg-footer__updated {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: .78rem;
}
.hg-footer__updated time { font-variant-numeric: tabular-nums; }

/* === 태블릿 (768px+) === */
@media (min-width: 768px) {
  .hg-container { max-width: 960px; padding: 0 24px; }
  .hg-hero { padding: 56px 0 48px; }
  .hg-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .hg-hero__title { font-size: 2.6rem; }
  .hg-hero__cta { flex-direction: row; }
  .hg-hero__cta .hg-btn--ghost { order: 0; }
  .hg-hero__media { max-width: none; margin: 24px 0 0; }
  .hg-mobile-cta { display: none; }
  .hg-nav-toggle { display: none; }
  .hg-nav { position: static; width: auto; max-width: none; height: auto; background: none; border: none; padding: 0; }
  .hg-nav ul { flex-direction: row; gap: 24px; align-items: center; }
  .hg-nav a { padding: 0; border: none; font-size: .95rem; }
  .hg-nav__cta { margin-top: 0; }
  .hg-stats__grid { grid-template-columns: repeat(4, 1fr); }
  .hg-analyst { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 36px; }
  .hg-pillars { grid-template-columns: repeat(2, 1fr); }
  .hg-features { grid-template-columns: repeat(2, 1fr); }
  .hg-steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
  .hg-testi { grid-template-columns: repeat(3, 1fr); }
  .hg-footer__grid { grid-template-columns: 1fr auto; align-items: center; }
}

/* === 데스크톱 (1024px+) === */
@media (min-width: 1024px) {
  .hg-container { max-width: 1120px; }
  .hg-hero__title { font-size: 3rem; }
  .hg-pillars { grid-template-columns: repeat(4, 1fr); }
  .hg-section__title { font-size: 2rem; }
}
