/* =========================================================
   스타봉 사이트 공통 스타일 (모든 페이지)
   - 기준 화면: ChatGPT 시안 1024px. 768~1023px는 head 스크립트가 1024px 화면을 비율대로 축소.
   - 767px 이하: 모바일 흐름형 배치.
   - 페이지별 스타일: home.css(홈) · detail.css(서비스 상세) · sub.css(소개·문의) · legal.css(약관)
   ========================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
  --ink: #00091b;            /* 제목·강한 글자 */
  --text: #1b2232;           /* 본문 글자 */
  --blue: #0f6ef0;           /* 메뉴·포커스 */
  --blue-text: #2f84ee;      /* 제목 강조 단어 */
  --link: #1c66e0;           /* 링크 글자 */
  --green: #43a047;
  --footer: #202a4d;
  --line: #9aa3ad;           /* 세로 구분선 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --page-w: 1024px;          /* 콘텐츠 최대 폭 */
  --title: 66px;             /* 페이지 제목(h1) */
  --title-m: clamp(30px, 6.4vw, 60px);
  --hero-h: 230px;           /* 홈·소개·문의 상단 하늘 영역 */
  --footer-h: 87px;
  --footer-fs: 24px;
}

/* ---------- 기본 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: #fbfcfe; color: var(--text); font: 17px/1.5 var(--font); word-break: keep-all; overflow-wrap: break-word; letter-spacing: -0.02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--page-w); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- 머리글 ---------- */
.site-header { background: #fcfcfc; }
.site-header .wrap { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px 0 52px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 45px; letter-spacing: -0.05em; white-space: nowrap; }
.logo img { width: 62px; height: 62px; margin-left: -6px; }
.nav { display: flex; gap: 20px; margin-right: -12px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 64px; padding: 0 22px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 23.5px; }
.nav a.is-active { background: var(--blue); color: #fff; min-width: 110px; }
.nav a:not(.is-active):hover { background: #eef3fb; }

/* ---------- 하늘 배경 ---------- */
.sky {
  background:
    radial-gradient(70px 34px at 2% 52%, #fff 60%, transparent 62%),
    radial-gradient(54px 30px at 6% 60%, #fff 60%, transparent 62%),
    radial-gradient(90px 36px at 12% 70%, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(60px 30px at 97% 40%, #fff 60%, transparent 62%),
    radial-gradient(80px 34px at 92% 64%, rgba(255,255,255,.95) 60%, transparent 62%),
    radial-gradient(110px 40px at 85% 74%, rgba(255,255,255,.9) 60%, transparent 62%),
    linear-gradient(180deg, #a0d8fb 0%, #d4edfd 30%, #eef7fd 55%, #e8f6fd 100%);
}
/* 부드러운 구름 (소개·문의·약관) */
.sky.sky--soft {
  background:
    radial-gradient(120px 46px at 3% 30%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(170px 60px at 8% 78%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(150px 50px at 25% 92%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(110px 48px at 98% 22%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(150px 56px at 97% 60%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(200px 60px at 70% 100%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, #8cc9f7 0%, #b9def9 35%, #def0fc 70%, #edf7fd 100%);
}

/* ---------- 페이지 제목(h1) — 모든 페이지 같은 크기 ---------- */
main h1 { margin: 0; font-size: var(--title); line-height: 1.1; font-weight: 900; letter-spacing: -0.06em; color: var(--ink); white-space: nowrap; }
html[lang="en"] main h1 { letter-spacing: -0.04em; }
.hl { position: relative; display: inline-block; }
.swash { position: absolute; left: -6px; right: -4px; bottom: -22px; height: 22px; }
.sparkle { position: absolute; pointer-events: none; }

/* ---------- 상단 하늘 영역: 제목 + 별 (홈·소개·문의) ---------- */
.hero { position: relative; height: var(--hero-h); }
.hero .wrap { position: relative; height: 100%; }
.hero h1 { position: absolute; left: 92px; top: 62px; }
.hero h1 em { position: relative; font-style: normal; color: var(--blue-text); }
.hero-star { position: absolute; left: 726px; top: 12px; width: 222px; height: 222px; }
.hero .sparkle { left: 700px; top: 22px; width: 60px; height: 60px; }

/* ---------- 버튼·배지·체크 목록 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; width: 332px; max-width: 100%; border-radius: 999px; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; color: #fff; }
.btn svg { width: 24px; height: 24px; }
.btn--blue { background: linear-gradient(180deg, #2380f3 0%, #0464ee 100%); box-shadow: 0 4px 10px rgba(4, 100, 238, .25); }
.btn--blue:hover { background: linear-gradient(180deg, #1a72e0 0%, #0356d0 100%); }
.pill-green { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 16px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 19.5px; font-weight: 500; color: var(--text); letter-spacing: -0.04em; white-space: nowrap; }
.checks svg { width: 30px; height: 30px; flex: none; }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--footer); color: #fff; }
.site-footer .wrap { height: var(--footer-h); display: flex; align-items: center; justify-content: center; gap: 28px; font-size: var(--footer-fs); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- 767px 이하: 모바일 ---------- */
@media (max-width: 767px) {
  .site-header .wrap { padding: 0 16px; }
  .logo { font-size: 40px; gap: 4px; }
  .nav a { font-size: 21px; }
  main h1 { font-size: var(--title-m); white-space: normal; }
  .hero { height: auto; padding: 24px 16px 54px; }
  .hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .hero h1, .hero-star, .hero .sparkle { position: static; }
  .hero-star { width: clamp(96px, 20vw, 200px); height: auto; }
  .hero .sparkle { display: none; }
  .btn { width: 100%; }
  .checks { flex-basis: 100%; }
  .checks li { white-space: normal; font-size: 18px; gap: 12px; }
  .site-footer .wrap { height: 60px; padding: 0 16px; flex-wrap: wrap; gap: 6px 14px; font-size: 17px; }
}
@media (max-width: 600px) {
  .logo { font-size: 28px; }
  .logo img { width: 44px; height: 44px; }
  .nav { gap: 2px; margin-right: 0; }
  .nav a { font-size: 16px; padding: 0 12px; min-width: 0; height: 40px; }
  .nav a.is-active { min-width: 0; }
  html[lang="en"] .site-header .wrap { padding: 0 10px; }
  html[lang="en"] .site-header .logo { font-size: 23px; gap: 2px; }
  html[lang="en"] .logo img { width: 40px; height: 40px; }
  html[lang="en"] .nav { gap: 4px; }
  html[lang="en"] .nav a { padding: 0 10px; min-width: 0; font-size: 16px; }
  html[lang="en"] .site-header .nav a.is-active { min-width: 0; padding: 0 12px; }
}
@media (max-width: 380px) {
  html[lang="en"] .logo img { width: 32px; height: 32px; }
  html[lang="en"] .nav { gap: 0; }
  html[lang="en"] .nav a { padding: 0 6px; font-size: 14px; }
}

/* ---------- 좁은 화면 보정 (배율별 검수 결과) ---------- */
.nw { white-space: nowrap; }
.btn { white-space: nowrap; }
@media (max-width: 767px) {
  html[lang="en"] .btn { font-size: clamp(18px, 6vw, 26px); }
}
@media (max-width: 430px) {
  html[lang="en"] .site-header .logo { font-size: 20px; }
  html[lang="en"] .logo img { width: 34px; height: 34px; margin-left: -4px; }
  html[lang="en"] .nav { gap: 2px; }
  html[lang="en"] .nav a { padding: 0 8px; font-size: 14px; height: 36px; }
  html[lang="en"] .site-header .nav a.is-active { padding: 0 10px; }
}
/* 아주 좁은 영어 화면: 로고는 별 아이콘만 (이름은 aria-label로 유지) */
@media (max-width: 360px) {
  html[lang="en"] .site-header .logo { font-size: 0; }
}

/* ---------- 문의 팝업 (ChatGPT 문의 팝업 시안, 폭 818) ---------- */
html.cf-open, html.cf-open body { overflow: hidden; }
.cf { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cf[hidden] { display: none; }
.cf__backdrop { position: absolute; inset: 0; background: rgba(66, 78, 106, .74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cf__box { position: relative; width: 818px; max-width: 100%; max-height: 100%; overflow: auto; overscroll-behavior: contain; border: 3px solid #fff; border-radius: 34px; background: #fff; box-shadow: 0 18px 50px rgba(10, 25, 60, .28); }
.cf__head { position: relative; height: 145px; background: #d6ebfc center top / 100% 100% no-repeat; }
.cf__tile { position: absolute; left: 49px; top: 33px; width: 97px; height: 95px; max-width: none; }
.cf__sep { position: absolute; left: 159px; top: 43px; width: 2px; height: 72px; background: #9fb0c4; }
.cf__title { position: absolute; left: 184px; top: 44px; margin: 0; font-size: 51px; line-height: 1.2; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.cf__x { position: absolute; right: 30px; top: 22px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #1e2a3a; cursor: pointer; }
.cf__x svg { width: 32px; height: 32px; }
.cf__x:hover { background: rgba(255,255,255,.6); }
.cf__form { padding: 25px 39px 46px 42px; }
.cf__lead { margin: 0 -14px 22px; text-align: center; font-size: 23px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: #2a3344; }
.cf__label { display: block; margin: 0 0 10px 4px; font-size: 28px; font-weight: 900; letter-spacing: 0; color: var(--ink); }
.cf__input { display: block; width: 100%; height: 57px; margin: 0 0 24px; padding: 0 18px; border: 1.5px solid #b8cfe8; border-radius: 12px; background: #fff; font: 500 25px/1.4 var(--font); color: var(--ink); box-shadow: inset 0 1px 3px rgba(20, 60, 120, .06); }
.cf__input::placeholder { color: #9aa3ae; }
.cf__input:focus { outline: none; border-color: #2f84ee; box-shadow: 0 0 0 3px rgba(47, 132, 238, .18); }
.cf__area { height: 169px; padding: 14px 18px; resize: vertical; }
.cf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cf__ts { display: flex; justify-content: center; min-height: 65px; margin: 8px 0 0; }
.cf__msg { min-height: 0; margin: 12px 0 0; text-align: center; font-size: 18px; font-weight: 600; color: #1c5fd6; }
.cf__msg:empty { display: none; }
.cf__msg.is-error { color: #d23b3b; }
.cf__msg a { color: var(--link); }
.cf__note { margin: 20px 0 0; text-align: center; font-size: 22px; letter-spacing: 0.04em; color: #6b7484; }
.cf__btns { display: grid; grid-template-columns: 396px 1fr; gap: 14px; margin-top: 34px; }
.cf__send { width: 100%; height: 77px; font-size: 33px; font-weight: 900; border: 0; cursor: pointer; font-family: inherit; }
.cf__send:disabled { opacity: .7; cursor: default; }
.cf__cancel { height: 77px; border: 1.5px solid #b8cfe8; border-radius: 999px; background: #fff; color: var(--link); font: 900 33px/1 var(--font); letter-spacing: -0.04em; cursor: pointer; }
.cf__cancel:hover { background: #f1f6fe; }
.cf__done { padding: 46px 42px 46px; text-align: center; }
.cf__done-title { margin: 0 0 10px; font-size: 32px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.cf__done-sub { margin: 0 0 30px; font-size: 21px; color: #2a3344; }
.cf__done .cf__send { width: min(396px, 100%); }
@media (max-width: 767px) {
  .cf { padding: 10px; align-items: flex-end; }
  .cf__box { border-radius: 24px; }
  .cf__head { height: 96px; }
  .cf__tile { left: 18px; top: 22px; width: 54px; height: auto; }
  .cf__sep { left: 84px; top: 28px; height: 42px; }
  .cf__title { left: 98px; top: 30px; font-size: clamp(22px, 6vw, 30px); }
  .cf__x { right: 10px; top: 10px; width: 40px; height: 40px; }
  .cf__x svg { width: 24px; height: 24px; }
  .cf__form { padding: 18px 18px 22px; }
  .cf__lead { margin: 0 0 18px; font-size: 15px; text-align: left; white-space: normal; }
  .cf__label { margin-bottom: 6px; font-size: 17px; }
  .cf__input { height: 48px; margin-bottom: 14px; font-size: 16px; }
  .cf__area { height: 130px; }
  .cf__note { margin-top: 14px; font-size: 14px; }
  .cf__btns { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .cf__send, .cf__cancel { height: 54px; font-size: 20px; }
  .cf__done { padding: 28px 18px; }
  .cf__done-title { font-size: 22px; }
  .cf__done-sub { font-size: 16px; }
}
html[lang="en"] .cf__lead { white-space: normal; }
@media (min-width: 768px) { html[lang="en"] .cf__title { font-size: 44px; top: 48px; } }
/* 사람 확인(Turnstile)은 팝업 맨 아래 */
.cf__ts { margin: 26px 0 0; min-height: 65px; }
.cf__note { margin-top: 30px; }
@media (max-width: 767px) { .cf__ts { margin-top: 16px; } .cf__note { margin-top: 18px; } }

/* =========================================================
   PC 레이아웃 (768px 이상, 1024px 미만은 비율 축소) — PC 홈 시안 배치 + 일반 PC 사이트 글자 크기
   메뉴 15 · 큰 제목 40 · 카드 제목 24 · 본문 16 · 버튼 16
   ========================================================= */
@media (min-width: 768px) {
  :root { --page-w: 1200px; --title: 40px; --hero-h: 200px; --footer-h: 56px; --footer-fs: 14px; }
  .site-header .wrap { height: 64px; padding: 0 24px; }
  .logo { font-size: 24px; gap: 8px; letter-spacing: -0.04em; }
  .logo img { width: 40px; height: 40px; margin-left: 0; }
  .nav { gap: 6px; margin-right: 0; }
  .nav a { height: 36px; min-width: 0; padding: 0 18px; font-size: 15px; font-weight: 700; }
  .nav a.is-active { min-width: 80px; }
  main h1, html[lang="en"] main h1 { font-size: var(--title); }
  .swash { bottom: -12px; height: 12px; }
  .hero h1 { left: 280px; top: 74px; }
  .hero-star { left: 760px; top: 20px; width: 168px; height: 168px; }
  .hero .sparkle { left: 742px; top: 26px; width: 40px; height: 40px; }
  .btn { height: 44px; font-size: 16px; gap: 6px; letter-spacing: -0.02em; }
  .btn svg { width: 16px; height: 16px; }
  .pill-green { height: 22px; padding: 0 10px; font-size: 13px; }
  .checks li { font-size: 16px; gap: 10px; }
  .checks svg { width: 20px; height: 20px; }
}
/* 문의 팝업 PC 크기 (768px 이상) */
@media (min-width: 768px) {
  .cf__box { width: 560px; border-radius: 24px; }
  .cf__head { height: 100px; }
  .cf__tile { left: 28px; top: 22px; width: 58px; height: auto; }
  .cf__sep { left: 100px; top: 28px; height: 44px; }
  .cf__title, html[lang="en"] .cf__title { left: 116px; top: 30px; font-size: 26px; }
  .cf__x { right: 14px; top: 12px; width: 40px; height: 40px; }
  .cf__x svg { width: 24px; height: 24px; }
  .cf__form { padding: 20px 28px 24px; }
  .cf__lead { margin: 0 0 18px; font-size: 14.5px; white-space: normal; text-align: left; }
  .cf__label { margin: 0 0 6px 2px; font-size: 15px; font-weight: 800; }
  .cf__input { height: 42px; margin-bottom: 14px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
  .cf__area { height: 120px; padding: 10px 14px; }
  .cf__note { margin-top: 14px; font-size: 13px; letter-spacing: 0; }
  .cf__msg { font-size: 14px; }
  .cf__btns { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .cf__send, .cf__cancel { height: 46px; font-size: 16px; }
  .cf__ts { margin-top: 16px; }
  .cf__done { padding: 32px 28px; }
  .cf__done-title { font-size: 22px; }
  .cf__done-sub { margin-bottom: 20px; font-size: 15px; }
  .cf__done .cf__send { width: 220px; }
}
/* PC 배치 공통: 상단 제목+별을 가운데 묶음으로 (폭이 줄어도 겹치지 않게) */
@media (min-width: 768px) {
  .hero .wrap { display: flex; align-items: center; justify-content: center; gap: 72px; }
  .hero h1, .hero-star { position: static; }
  .hero h1 { margin-top: 8px; }
  .hero .sparkle { left: calc(50% + 128px); top: 26px; }
}
/* 태블릿·가로 휴대폰 (768~1023px): 글자 크기는 PC 그대로, 배치만 폭에 맞춤 */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .wrap { padding: 0 20px; }
  .hero .wrap { gap: 40px; }
  .hero-star { width: 140px; height: 140px; }
  .hero .sparkle { left: calc(50% + 96px); }
}

/* 모바일 세로(767px 이하): 배치는 모바일, 글자 크기는 PC(가로 화면)와 같게 */
@media (max-width: 767px) {
  :root { --title-m: 32px; }
  .site-header .wrap { height: 56px; }
  .logo { font-size: 22px; gap: 6px; }
  .logo img { width: 36px; height: 36px; }
  .nav { gap: 2px; }
  .nav a { height: 34px; min-width: 0; padding: 0 12px; font-size: 15px; }
  .nav a.is-active { min-width: 0; }
  .hero { padding: 20px 16px 44px; }
  .hero-star { width: 104px; }
  .swash { bottom: -8px; height: 10px; }
  .btn, html[lang="en"] .btn { height: 44px; font-size: 16px; gap: 6px; }
  .btn svg { width: 16px; height: 16px; }
  .pill-green { height: 22px; padding: 0 10px; font-size: 13px; }
  .checks li { font-size: 15px; gap: 10px; }
  .checks svg { width: 20px; height: 20px; }
  .site-footer .wrap { height: 52px; font-size: 14px; }
}

/* 문의 팝업 — 모바일 세로도 PC 팝업과 같은 글자·버튼 크기 (보내기·취소 같은 크기) */
@media (max-width: 767px) {
  .cf { padding: 8px; align-items: center; }
  .cf__box:focus { outline: none; }
  .cf__head { height: 84px; }
  .cf__tile { left: 16px; top: 18px; width: 48px; }
  .cf__sep { left: 76px; top: 24px; height: 36px; }
  .cf__title, html[lang="en"] .cf__title { left: 90px; top: 26px; font-size: 22px; }
  .cf__x { right: 8px; top: 8px; width: 36px; height: 36px; }
  .cf__x svg { width: 22px; height: 22px; }
  .cf__form { padding: 16px 16px 18px; }
  .cf__lead { margin: 0 0 14px; font-size: 14.5px; }
  .cf__label { margin: 0 0 6px 2px; font-size: 15px; font-weight: 800; }
  .cf__input { height: 42px; margin-bottom: 12px; padding: 0 12px; border-radius: 10px; font-size: 16px; }
  .cf__area { height: 110px; padding: 10px 12px; }
  .cf__note { margin-top: 12px; font-size: 13px; letter-spacing: 0; }
  .cf__msg { font-size: 14px; }
  .cf__btns { gap: 10px; margin-top: 14px; }
  .cf__send, .cf__cancel { height: 44px; font-size: 16px; }
  .cf__ts { margin-top: 14px; }
  .cf__done-title { font-size: 20px; }
  .cf__done-sub { font-size: 15px; }
}
