/*! r17.css — 17차 정리(모든 공통 헤더·푸터 페이지에서 마지막에 읽음)
   1 버튼 누름 효과 · 3 요금 카드 높이 · 4/5 첫 화면 · 6 상단 메뉴 · 8 섹션 여백 · 9 푸터 · A/B 결과 폼 */

/* ---------- 6. 상단 메뉴: 로고 + 메뉴 3개, 펼침 메뉴 없음 ---------- */
html{scroll-padding-top:60px}
header.gm-bar,header.site-head,header.hdr{
  position:sticky;top:0;z-index:90;height:auto;min-height:0;
  background:#fff;border-bottom:0;box-shadow:0 1px 0 #ece9f5;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
body:has(.funnel) header.site-head{position:static}
header.gm-bar .head-in{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:24px;
  height:60px;min-height:60px;padding-top:0;padding-bottom:0;
}
header.gm-bar .brand{flex:none;font-size:18px;white-space:nowrap}
header.gm-bar .top-nav{display:flex;align-items:center;gap:32px;margin-left:auto}
header.gm-bar .top-nav a{
  font-size:16px;font-weight:700;line-height:1.2;color:#1a1f36;text-decoration:none;white-space:nowrap;
  padding:8px 0;text-underline-offset:8px;text-decoration-thickness:2px;
}
header.gm-bar .top-nav a:hover{color:#6a3df0}
header.gm-bar .top-nav a[aria-current="page"]{color:#6a3df0;text-decoration-line:underline;text-decoration-color:#6a3df0}
@media (max-width:768px){
  html{scroll-padding-top:52px}
  header.gm-bar .head-in{height:52px;min-height:52px;gap:12px;padding-top:0;padding-bottom:0}
  header.gm-bar .brand::after{content:none;display:none}       /* 모바일: 로고 그림만 */
  header.gm-bar .top-nav{gap:16px}
  header.gm-bar .top-nav a{font-size:15px;text-underline-offset:6px}
  .fx-page .fxp-sticky{top:52px;height:calc(100svh - 52px)}
}
body{padding-bottom:0}

/* ---------- 1. 버튼: 마우스 올려도 글자 흰색 그대로, 누를 때 살짝 눌림 ---------- */
.btn:hover,.btn:focus-visible{transform:none}
.btn:not(.alt):hover,.btn:not(.alt):focus-visible{color:#fff;-webkit-text-fill-color:#fff}
.btn{transition:transform 80ms ease-out,box-shadow 80ms ease-out,background-color .2s ease}
.btn:active{transform:translateY(1px) scale(.97);box-shadow:0 2px 6px rgba(106,61,240,.18)}
@media (prefers-reduced-motion:reduce){.btn:active{transform:none}}

/* ---------- 7. 보라 글자는 단색(흰 바탕 4.5:1 이상) ---------- */
.em-word,.fx-page .em-word,#hero-title .em-word{
  background:none !important;color:#6a3df0 !important;-webkit-text-fill-color:#6a3df0 !important;
}

/* ---------- 8. 섹션 여백: PC 72px, 모바일 48px ---------- */
.fx-page .section,.fx-page section.section[data-dots],main .section{padding-top:72px;padding-bottom:72px}
@media (max-width:768px){
  .fx-page .section,.fx-page section.section[data-dots],main .section{padding-top:48px;padding-bottom:48px}
}

/* ---------- 4·5. 첫 화면 = 점 화면 (머리글 포함 한 화면), 아래 화살표 ---------- */
.fx-page .hero.hero-fx[data-dots-hero]{
  position:relative;min-height:calc(100vh - 60px) !important;
  display:flex !important;flex-direction:column;justify-content:center !important;align-items:center;padding:24px 0 72px !important;
}
@media (max-width:768px){
  .fx-page .hero.hero-fx[data-dots-hero]{min-height:calc(100svh - 52px) !important;padding:24px 0 64px !important}
}
.hero-down{
  position:absolute;left:50%;bottom:20px;width:24px;height:24px;margin-left:-12px;
  color:#6a3df0;display:block;line-height:0;cursor:pointer;
  transition:opacity .3s ease;animation:hero-bob 1.6s ease-in-out infinite;
}
.hero-down svg{width:24px;height:24px;display:block}
.hero-down.is-gone{opacity:0;pointer-events:none}
@keyframes hero-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.hero-down{animation:none;transition:none}}

/* ---------- 3. 요금 카드: 같은 줄이면 높이 맞춤, 남는 공간은 버튼 위 ---------- */
@media (min-width:769px){
  .plans{align-items:stretch}
  .plans > .plan{display:flex;flex-direction:column}
  .plans > .plan > .btn{margin-top:auto}
  .plans > .plan > .report-line{margin-bottom:18px}
}

/* ---------- A·B. 결과 페이지 상담 폼(카드 아래), 입력칸은 메인 하단 폼과 같은 상자 ---------- */
.consult-cta{margin-top:40px}
#consult-form .req-pick{margin:0;padding:0;border:0}
#consult-form .fld input:not([type="radio"]):not([type="checkbox"]),
#consult-form .fld textarea{
  width:100%;box-sizing:border-box;min-height:56px;font-size:18px;color:#1a1f36;
  background:#fff;border:1px solid rgba(106,61,240,.12);border-radius:8px;padding:12px 14px;box-shadow:none;
}
#consult-form .fld textarea{min-height:120px}
#consult-form .fld input:focus,#consult-form .fld textarea:focus{outline:2px solid #6a3df0;outline-offset:1px;border-color:#6a3df0}
form[name="consult"] input[aria-invalid="true"]{border-color:#c62828 !important}

/* ---------- 9. 푸터: 한 덩어리, 구분선 없음 ---------- */
.site-foot,.fx-page .site-foot{border-top:0;padding:40px 0;background:#f6f7f9;color:#4a5068}
.site-foot .foot-one{text-align:center}
.site-foot .foot-one p{margin:0;font-size:15px;line-height:1.6;color:#4a5068}
.site-foot .foot-one p + p{margin-top:6px}
.site-foot .foot-brand{display:flex;align-items:center;justify-content:center;gap:8px}
.site-foot .foot-brand img{width:24px;height:24px;display:block}
.site-foot .foot-brand strong{font-size:17px;font-weight:800;color:#1a1f36}
.site-foot .foot-brand strong::before{content:none;display:none}
.site-foot .foot-meta,.site-foot .foot-biz{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 16px}
.site-foot .foot-one a{color:inherit;text-decoration:none}
.site-foot .foot-one :is(span,a){font-size:inherit;line-height:inherit}
.site-foot .foot-one a:hover{color:#6a3df0}
@media (max-width:768px){
  .site-foot,.fx-page .site-foot{padding:32px 0}
  .site-foot .foot-one p,.site-foot .foot-one span,.site-foot .foot-one a{font-size:14px;line-height:1.6}
  .site-foot .foot-brand strong{font-size:16px}
}

/* ---------- 10. 본문 16px 미만 고침 ---------- */
.fx-page .fxp-slide :is(p.sub,p.one,li){font-size:16px}
.quiet,.quiet a{font-size:16px}
/* 10번: 모바일 궤도 그림이 오른쪽 끝에 붙어 Perplexity·네이버 AI 글자가 잘리던 문제 */
@media (max-width:700px){
  .orb-sec .orb{--ro:138px;width:calc(100vw - 32px)}
}
/* 10번: 결과 페이지 — 폼 위아래 간격, 아래 두 링크도 폼과 같은 가운데 정렬 */
.consult-cta #consult-form{margin-top:20px}
.consult-cta #consult-form > .btn{margin-top:20px}
.consult-cta ~ .quiet{text-align:center}
/* 10번: 글이 짧은 페이지(신청 확인 등)에서 푸터 아래가 비던 문제 — 푸터를 화면 맨 아래로 */
body[data-funnel]{min-height:100vh;display:flex;flex-direction:column}
body[data-funnel] > main{flex:1 0 auto;width:100%}
.consult-cta .lead{text-wrap:pretty}
/* 10번: 모바일 입금 안내 — 복사 버튼이 왼쪽에 따로 붙던 문제, 가운데로 */
@media (max-width:768px){.bank-row{justify-content:center}}

/* ---------- 19차 1. /services/ 폰: 폭은 고정, 높이는 가장 긴 슬라이드에 맞춤(fx-phone.js가 --ph를 정함) ---------- */
.fx-page .fxp{--pw:360px}
@media (max-width:768px){.fx-page .fxp{--pw:max(280px,min(calc(100vw - 48px),340px))}}
.fx-page .fxp .fxp-stage{width:var(--pw);height:var(--ph)}
.fx-page .fxp-slide{overflow:hidden;justify-content:safe center;padding:56px 16px 24px}
.fx-page .fxp-slide :is(.one,ul,li){font-size:16px;line-height:1.4}
.fx-page .fxp-slide :is(.sub,.tag){font-size:16px}
.fx-page .fxp-slide .tag{align-self:center;margin:0 0 6px}
.fx-page .fxp-slide .price{font-size:32px;white-space:nowrap;margin:8px 0 2px}
.fx-page .fxp-slide .btn{flex:none;margin-top:12px}
@media (min-width:769px){
  .fx-page .fxp-sticky{top:60px;height:calc(100vh - 60px)}
}
/* 폰이 화면보다 길면 고정·회전 없이 페이지 스크롤로 본다 */
.fx-page .fxp.is-tall{height:auto;padding:24px 0}
.fx-page .fxp.is-tall .fxp-sticky{position:static;height:auto;overflow:visible;padding:0}
.fx-page .fxp.is-tall .fxp-phone{transform:none !important}
/* 움직임 줄이기(is-flat): 한 번에 한 서비스, 옆으로 넘김. 폰 높이는 같은 --ph */
.fx-page .fxp.is-flat{height:auto;padding:24px 0}
.fx-page .fxp.is-flat .fxp-sticky{position:static;height:auto;overflow:visible}
.fx-page .fxp.is-flat .fxp-stage{width:var(--pw);height:var(--ph);aspect-ratio:auto}
.fx-page .fxp.is-flat .fxp-front{height:100%}
.fx-page .fxp.is-flat .fxp-screen{display:flex;overflow-x:auto;overflow-y:hidden;height:100%}
.fx-page .fxp.is-flat .fxp-slide{position:relative;inset:auto;flex:0 0 100%;height:100%;opacity:1;visibility:visible;box-sizing:border-box}

/* ---------- 19차 2. 점 화면 삭제 뒤 폰 섹션과 「서비스별 요금」 사이는 다른 섹션과 같이 ---------- */
#service-prices{padding-top:72px}
@media (max-width:768px){#service-prices{padding-top:48px}}
