/* B안 공통: 변수, 초기화, 버튼, 공지, 헤더, 푸터 (전 페이지) */


:root {
  /* 관리자 디자인 화면에서 바꾸는 값 (shared/js/theme.js 가 html 에 덮어씀) */
  --bg: #022f22;          /* 페이지 배경 (브랜드 그린) */
  --text: #fcfbf8;        /* 배경 위 글자 */
  --sub: #a9b5af;         /* 배경 위 보조 글자 */
  --point: #d9b25f;       /* 배경 위 포인트 */
  --white: #fcfbf8;       /* 밝은 영역 배경 */
  --black: #0d0d0d;       /* 밝은 영역 글자 */
  --point-light: #022f22; /* 밝은 영역 포인트 */
  --btn: #0d0d0d;         /* 밝은 영역 버튼 */
  --kr: 'Noto Sans KR', system-ui, sans-serif;
  --kr-title: var(--kr);
  --mont: 'Montserrat', var(--kr-title);
  --arch: 'Archivo', var(--kr);
  --fs-title: 1;
  --fs-body: 1;
  --btn-radius: 0px;
  --coach-rows: 2;
  --on-point: var(--bg);  /* 포인트색 바탕 위 글자 (theme.js 가 대비 큰 쪽 선택) */
  /* 배경색에서 자동으로 만드는 값 */
  --ink: color-mix(in srgb, var(--bg) 92%, var(--text));        /* 공지 띠, 팝업 */
  --line-dark: color-mix(in srgb, var(--bg) 82%, var(--text));  /* 배경 위 구분선 */
  /* 밝은 영역 보조 */
  --gray: #8f8f8f;
  --body: #4d4d4d;
  --line: #d9d9d9;
  --gutter: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; background: var(--bg); color: var(--text); font-family: var(--kr); font-weight: 400; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
main { display: block; }

/* 밝은 영역 안에서는 포인트색 교체 */
.statement, .demo, .kbox, .reviews__panel, .headcoach, .cta--white .cta__panel, .pmodal__box { --point: var(--point-light); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }

/* 공통 */
.ul-link { display: inline-block; font-size: calc(13px * var(--fs-body)); font-weight: 500; line-height: 1.2; padding-bottom: 2px; border-bottom: 1px solid currentColor; }
.ul-link--lg { font-size: calc(14px * var(--fs-body)); padding-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; font-family: var(--arch); font-weight: 500; font-size: calc(13px * var(--fs-body)); letter-spacing: 1.04px; line-height: 14px; white-space: nowrap; border-radius: var(--btn-radius); transform-origin: center; will-change: transform; }
.btn--white { background: var(--white); color: var(--black); }
.btn--black { background: var(--btn); color: var(--text); font-family: var(--kr); font-size: calc(14px * var(--fs-body)); letter-spacing: 0; }
.btn--line { border: 1px solid var(--white); color: var(--text); padding: 16px 28px; }
.sec-title { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.sec-title__h { font-family: var(--mont); font-weight: 700; font-size: calc(96px * var(--fs-title)); line-height: 1.22; letter-spacing: -0.01em; color: var(--text); }
.sec-title__desc { font-size: calc(16px * var(--fs-body)); line-height: 1.65; color: var(--sub); }
.sec-title--dark .sec-title__h { color: var(--black); }
.sec-title--dark .sec-title__desc { color: var(--body); }

/* 01 공지 */
.announce { background: var(--ink); padding: 12px var(--gutter); }
.announce__row { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: calc(13px * var(--fs-body)); line-height: 1.2; }

/* 02 헤더 */
.header { background: var(--bg); padding: 20px var(--gutter); position: relative; z-index: 20; }
.header__row { display: flex; align-items: center; justify-content: space-between; }
.header__left { display: flex; align-items: center; gap: 56px; }
.header__logo img { width: 140px; height: 42px; object-fit: contain; }
.header__menu { display: flex; gap: 32px; font-size: calc(15px * var(--fs-body)); line-height: 1.2; }
.header__menu a { position: relative; }
.header__menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--point); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.header__menu a:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 4px 0; }
.lang svg { width: 22px; height: 22px; flex: none; }
.lang__track { position: relative; display: flex; border: 1px solid rgba(252,251,248,.35); border-radius: 999px; padding: 2px; font-family: var(--arch); font-weight: 500; font-size: 12px; letter-spacing: .04em; line-height: 1; }
.lang__opt { position: relative; z-index: 1; width: 30px; padding: 5px 0; text-align: center; color: var(--sub); transition: color .3s; }
.lang__thumb { position: absolute; top: 2px; left: 2px; width: 30px; bottom: 2px; border-radius: 999px; background: var(--white); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lang[aria-pressed="false"] .lang__opt--ko, .lang[aria-pressed="true"] .lang__opt--en { color: var(--black); }
.lang[aria-pressed="true"] .lang__thumb { transform: translateX(30px); }
.lang:hover .lang__track { border-color: var(--white); }
.header__burger { display: none; width: 24px; height: 24px; position: relative; }
.header__burger span { position: absolute; left: 3px; right: 3px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
.header__burger span:nth-child(1) { top: 6px; }
.header__burger span:nth-child(2) { top: 11px; }
.header__burger span:nth-child(3) { top: 16px; }
.header.is-open .header__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header.is-open .header__burger span:nth-child(2) { opacity: 0; }
.header.is-open .header__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 글자 분할 */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ch { display: inline-block; white-space: pre; will-change: transform; }

/* 09 더보기 */
.more__title { display: flex; flex-direction: column; gap: 20px; }
.more__h { font-family: var(--arch); font-weight: 400; font-size: calc(56px * var(--fs-title)); line-height: 1; letter-spacing: -0.56px; }

/* 11 푸터 */
.footer { background: var(--bg); padding: 120px var(--gutter) 0; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__claim { font-family: var(--arch); font-size: calc(22px * var(--fs-body)); line-height: 1.2; white-space: nowrap; }
.footer__cols { display: flex; gap: 96px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; line-height: 1.2; }
.footer__col a { font-size: calc(15px * var(--fs-body)); transition: color .25s; white-space: nowrap; }
.footer__col a:hover { color: var(--point); }
.footer__head { font-family: var(--arch); font-weight: 500; font-size: calc(12px * var(--fs-body)); letter-spacing: 1.8px; color: var(--sub); }
.footer__biz { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 28px; margin-top: 64px; font-size: calc(12px * var(--fs-body)); color: var(--sub); line-height: 1.2; }
.footer__biz p { white-space: pre; }
.footer__copy { font-family: var(--arch); }
.footer__mark { height: 300px; overflow: hidden; display: flex; justify-content: center; margin-top: 64px; }
.footer__word { font-family: var(--arch); font-weight: 400; font-size: 440px; line-height: 1; letter-spacing: 13.2px; white-space: nowrap; }

/* 초기 숨김: html.anim 일 때만 */
.anim .reveal, .anim .pcard, .anim .coach { opacity: 0; transform: translateY(40px); }

/* 줄바꿈 PC, 모바일 분기 */
.m-br { display: none; }

/* 태블릿 1280 이하 */
@media (max-width: 1280px) {
  .header__left { gap: 32px; }
  .header__menu { gap: 20px; font-size: calc(14px * var(--fs-body)); }
  .sec-title__h { font-size: calc(6.67vw * var(--fs-title)); }
  .footer__cols { gap: 56px; }
  .footer__word { font-size: 30.5vw; letter-spacing: .03em; }
  .footer__mark { height: 20.8vw; }
}

/* 태블릿 1080 이하 */
@media (max-width: 1080px) {
  .header__menu { display: none; }
  .header__kakao { display: none; }
  .header__burger { display: block; }
  .header__menu.is-open { display: flex; }
  .header__right { gap: 20px; }
  .header.is-open .header__menu { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line-dark); font-size: calc(17px * var(--fs-body)); }
  .header.is-open .header__menu a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .header.is-open .header__menu a::after { display: none; }
  .footer__top { flex-direction: column; gap: 48px; }
}

/* 모바일 (Figma Mobile 375 기준) */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .announce { padding: 10px 16px; }
  .announce__row { gap: 8px; font-size: calc(12px * var(--fs-body)); }
  .announce .ul-link { font-size: calc(12px * var(--fs-body)); border-bottom: 0; padding-bottom: 0; }
  .header { padding: 16px var(--gutter); }
  .header__logo img { width: 110px; height: 33px; }
  .header__left { flex-shrink: 0; }
  .header__right { gap: 10px; }
  .lang { gap: 4px; }
  .lang svg { width: 18px; height: 18px; }
  .lang__opt, .lang__thumb { width: 26px; }
  .lang__opt { font-size: 11px; padding: 4px 0; }
  .lang[aria-pressed="true"] .lang__thumb { transform: translateX(26px); }
  .header__right .btn { padding: 9px 14px; font-size: calc(13px * var(--fs-body)); line-height: 16px; letter-spacing: 0; font-family: var(--kr); font-weight: 700; }
  .sec-title__desc { font-size: calc(14px * var(--fs-body)); }
  .sec-title__h { font-size: calc(34px * var(--fs-title)); letter-spacing: -0.34px; }
  .more__h { font-size: calc(40px * var(--fs-title)); letter-spacing: -0.4px; }
  .more__title { gap: 16px; }
  .footer { padding: 56px var(--gutter) 0; border-top: 1px solid var(--line-dark); }
  .footer__top { gap: 32px; }
  .footer__claim { font-size: calc(16px * var(--fs-body)); }
  .footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .footer__col { gap: 10px; }
  .footer__head { font-size: calc(11px * var(--fs-body)); letter-spacing: 1.65px; }
  .footer__col a { font-size: calc(13px * var(--fs-body)); white-space: normal; }
  .footer__biz { flex-direction: column; gap: 6px; margin-top: 32px; padding-top: 20px; font-size: calc(11px * var(--fs-body)); }
  .footer__info { line-height: 1.7; }
  .footer__info span { display: block; }
  .footer__info .footer__sep { display: none; }
  .footer__mark { margin-top: 32px; height: 80px; }
  .footer__word { font-size: 118px; letter-spacing: 0; }
  .footer__col a[data-short] span { display: none; }
  .footer__col a[data-short]::after { content: attr(data-short); }
  .pc-br, .pc-only { display: none; }
  .m-br { display: inline; }
}
/* 관리자 콘텐츠 국문, 영문 두 벌 중 현재 언어만 표시 */
html[lang="en"] [data-only="ko"], html:not([lang="en"]) [data-only="en"] { display: none !important; }
