/* 해피운세 메인(랜딩) — 디자인 원본(1440 / 콘텐츠 1200)을 그대로 두고 폭별로만 다시 배치한다.
   인라인 스타일이 기준이라, 폭별 재배치는 !important 로 덮는다(데스크톱 1200↑ 는 원본 그대로). */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hu-bg); }
.lp { --gx: max(24px, calc((100vw - 1200px) / 2)); background: var(--hu-bg); color: var(--hu-ink); font-family: var(--hu-font); word-break: keep-all; overflow-x: hidden; }
.lp a { color: var(--hu-primary); }
.lp a:hover { color: var(--hu-primary-ink); }
.lp .ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-sec { height: var(--h, auto); scroll-margin-top: 84px; }
.lp-header { position: sticky; top: 0; z-index: 20; }
.lp a:focus-visible, .lp button:focus-visible { outline: 3px solid rgba(201, 72, 31, 0.45); outline-offset: 3px; }
.lp img { -webkit-user-drag: none; }
/* 1440 무대(히어로·매일 알림): 넓은 화면은 가운데, 좁은 데스크톱은 왼쪽 여백 24px 확보 */
.lp-stage { position: absolute; top: 0; bottom: 0; width: 1440px; left: max(calc(50% - 720px), -96px); }
#top { overflow: hidden; }
#s10 button[disabled] { cursor: default; }

/* ---------- 태블릿 · 작은 데스크톱 (1199 이하) ---------- */
@media (max-width: 1199px) {
  .lp { --gx: 40px; }
  .lp-sec { height: auto !important; }
  .lp-header { height: 68px !important; }
  .lp-nav { display: none !important; }
  .lp h1 { font-size: 52px !important; }
  .lp h2 { font-size: 38px !important; }
  .lp-deco, .lp-char { display: none !important; }

  /* 두 단 → 한 단 */
  .lp-2col { flex-direction: column !important; align-items: stretch !important; gap: 44px !important; padding-top: 80px !important; padding-bottom: 88px !important; }
  .lp-2col > * { width: 100% !important; max-width: 720px !important; margin-left: auto !important; margin-right: auto !important; }
  #s06 > :last-child, #s10 > :last-child { order: -1; }
  #s13 { padding-bottom: 80px !important; }
  #s02, #s05, #s09, #s12, .lp-sec:not([id]):not(.lp-header) { padding-bottom: 80px !important; }
  #s02, #s05, #s09, #s12 { padding-top: 80px !important; }
  .lp-headrow { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
  .lp-headrow p { text-align: left !important; }

  /* 히어로: 문구 → 버튼 → 폰 목업 순서로 */
  .lp-stage { position: relative !important; left: auto !important; width: auto !important; padding: 56px var(--gx) 170px; box-sizing: border-box; }
  .lp-hero-copy { position: static !important; width: 100% !important; max-width: 640px !important; margin: 0 auto; }
  .lp-phone { position: relative !important; left: auto !important; top: auto !important; margin: 48px auto 0; }
  .lp-mtn { z-index: 0; }
  .lp-stage { z-index: 1; }

  /* 매일 알림 */
  .lp-stage7 { padding: 80px var(--gx) 230px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
  .lp-s7-copy, .lp-s7-card { position: static !important; width: 100% !important; }
  .lp-s7-copy { max-width: 640px !important; }
  .lp-s7-card { max-width: 440px !important; }

  /* 마지막 CTA */
  .lp-cta { position: relative !important; top: auto !important; padding: 80px var(--gx) 200px; z-index: 1; }
  .lp-s14row { left: 16px !important; right: 16px !important; }
  .lp-spacer { display: none !important; }
  .lp-s14row img { width: 64px !important; height: 64px !important; }

  /* 격자 */
  .lp-g12 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 18px !important; }
  .lp-g6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lp-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #s02 .lp-g3 { row-gap: 64px !important; }
  .lp-stackrow > :first-child { width: 42% !important; flex: none; }
  footer.lp-sec { flex-direction: column; gap: 24px !important; padding-top: 40px !important; padding-bottom: 40px !important; }
}

/* ---------- 휴대폰 (767 이하) ---------- */
@media (max-width: 767px) {
  .lp { --gx: 20px; }
  .lp h1 { font-size: 40px !important; }
  .lp h2 { font-size: 30px !important; line-height: 1.38 !important; }
  .lp h3 { font-size: 22px !important; }
  .lp-header { padding: 0 12px 0 16px !important; }
  .lp-header svg { width: 32px !important; height: 32px !important; }
  .lp-header span { font-size: 21px !important; }
  .lp-header a[data-hu="login"] { padding: 0 10px !important; font-size: 15px !important; }
  .lp-header a:last-child { height: 44px !important; padding: 0 16px !important; font-size: 15px !important; }

  .lp-stage { padding: 36px var(--gx) 140px; }
  .lp-hero-copy { gap: 18px !important; }
  .lp-hero-copy p { font-size: 17px !important; }
  .lp-hero-copy p br { display: none; }
  .lp-hero-cta { width: 100% !important; max-width: none !important; }
  .lp-hero-cta a { height: 58px !important; font-size: 17px !important; }
  .lp-phone { transform: scale(0.92); transform-origin: top center; margin-bottom: -52px; }

  .lp-2col { padding-top: 64px !important; padding-bottom: 72px !important; gap: 36px !important; }
  #s02, #s05, #s09, #s12 { padding-top: 64px !important; padding-bottom: 64px !important; }
  .lp-sec:not([id]):not(.lp-header) { padding-top: 48px !important; padding-bottom: 56px !important; }
  #s02 { gap: 64px !important; }
  #s05, #s09, #s12 { gap: 32px !important; }

  .lp-g12 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lp-g12 img { width: 72px !important; height: 72px !important; }
  .lp-g6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lp-g3 { grid-template-columns: minmax(0, 1fr) !important; }
  #s02 .lp-g3 { row-gap: 60px !important; }
  #s11 .lp-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lp-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  form .lp-g2, #s12 .lp-g2 { grid-template-columns: minmax(0, 1fr) !important; }
  #s02 .lp-g3 > div, #s05 .lp-g3 > div { padding: 26px 22px !important; }

  /* 카드 여백 */
  #s03 .lp-2col > div, #s03 > div:last-child { padding: 18px !important; border-radius: 28px !important; }
  #s03 > div:last-child p { font-size: 19px !important; }
  #s04 > div:last-child > div:last-child { padding: 22px !important; }
  #s04 > div:last-child p { font-size: 19px !important; }
  #s04 > div:last-child > div:last-child > div:last-child { padding-left: 0 !important; }
  #s06 > div:first-child > div:nth-child(2) { padding: 18px !important; }
  #s08 form { padding: 22px !important; }
  #s10 > div:first-child { padding: 16px 12px !important; }
  .lp-stackrow { flex-direction: column !important; }
  .lp-stackrow > :first-child { width: auto !important; padding: 28px !important; }
  .lp-stackrow > :last-child { padding: 28px !important; }
  #s12 > div:last-child { margin: 0 !important; }
  #s13 > div:last-child button { min-height: 64px !important; padding: 12px 18px !important; font-size: 17px !important; }

  .lp-stage7 { padding: 64px var(--gx) 200px; }
  .lp-s7-copy p br { display: none; }
  .lp-s7-copy > div:last-child { flex-wrap: wrap; }

  .lp-cta { padding: 64px var(--gx) 170px; }
  .lp-cta a { padding: 0 36px !important; height: 62px !important; font-size: 19px !important; }
  .lp-s14row img { width: 52px !important; height: 52px !important; }
  .lp-s14row img:nth-of-type(n+7) { display: none !important; }
  .lp-s14sun { left: calc(50% - 150px) !important; width: 300px !important; height: 150px !important; }
  .lp div[style*="font-family: 'Jua'"][style*="white-space: nowrap"] { white-space: normal !important; }
  #s03 svg[viewBox="0 0 60 60"] { width: 64px !important; height: 64px !important; top: -8px !important; }
  #s10 > div:first-child > div:first-child { flex-wrap: wrap; gap: 8px; }
}
footer.lp-sec { height: auto !important; min-height: var(--h, 0); }
@media (max-width: 767px) { footer.lp-sec nav { flex-wrap: wrap; gap: 14px 22px !important; } }

/* 2026-10-03 Pretendard: 옛 Jua 자리 */
.lp [style*="font-family: 'Jua'"] { font-family: var(--hu-font) !important; }
