/* ==========================================================================
   셀러테이블 홈페이지 리뉴얼 — 디자인 토큰 + 공통 컴포넌트
   docs/plans/27_홈페이지_반응형_리뉴얼_기획.md 참고
   ========================================================================== */

@import url('../fonts/pretendardvariable.css');

:root {
  --bg: #F4F7FD;
  --surface: #FFFFFF;
  --ink: #0B0F19;
  --ink-soft: #1E2230;
  --ink-faint: #6B7280;
  --border: #D7DDE8;
  --green: #2F6FED;
  --green-dark: #1E4FC7;
  --red: #FF3B30;
  --shadow: 0 20px 50px -25px rgba(11, 15, 25, 0.25);
  --header-h: 96px;
  /* 헤더 로고와 히어로 슬라이드 텍스트의 좌측 시작점을 통일하는 공유 기준선
     (레거시 62.5vw 중앙정렬 슬라이드의 좌측 여백 약 18.75vw를 참고) */
  --layout-inset: clamp(32px, 15vw, 320px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 헤더가 fixed라 앵커(#about 등)로 스크롤하면 제목이 헤더 밑에 가려지는 것을 방지 */
[id] { scroll-margin-top: var(--header-h); }
body {
  margin: 0;
  padding-top: var(--header-h); /* 헤더가 fixed라 문서 흐름에서 빠지는 만큼 보정 (sub 페이지 기본값) */
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* 홈(MAIN) 페이지는 히어로가 화면 맨 위(y=0)부터 시작해야 헤더가 그 위에 투명하게 얹힌다 */
body.is-main { padding-top: 0; }
/* --bg(옅은 파랑)는 home.php 섹션 사이 배경으로만 의도된 톤 — 레거시 UI를 계승하는 나머지
   내부 페이지(마이페이지/로그인/구독 등)는 top.php/footer.php 공통 헤더 때문에 이 파일을
   같이 불러오면서 배경까지 덩달아 옅은 파랑으로 물들어 있었음. 레거시는 순백색이 맞음. */
body:not(.is-main) { background: #fff; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { color: #fff; opacity: .9; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-ghost-light:hover { color: #fff; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14.5px; }

.eyebrow { display: flex; align-items: center; margin-bottom: 20px; }
.eyebrow-tag {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 8px 0 0 8px; text-transform: uppercase;
}
.eyebrow-line { flex: 1; height: 3px; background: var(--ink); border-radius: 0 3px 3px 0; }
.eyebrow.green .eyebrow-tag { background: var(--green); }
.eyebrow.red .eyebrow-tag { background: var(--red); }
.eyebrow.center { justify-content: center; }

.section { padding: 108px 0; }
.section-alt { background: var(--surface); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.h-display { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.18; font-weight: 800; }
.h-section { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.22; font-weight: 800; }
.p-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.65; }
.p-body { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.center { text-align: center; }

/* reveal-on-scroll (IntersectionObserver, assets/js/main.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- header ---------- */
/* 레거시 topArea 패턴: 홈(MAIN) 화면은 히어로 위에 투명하게 얹혀 흰 글자로 시작하고,
   스크롤하면(.scrolled) 또는 홈이 아닌 페이지(.sub)에서는 불투명 배경 + 어두운 글자로 반전된다. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--header-h);
  --header-fg: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.sub,
.site-header.scrolled {
  --header-fg: var(--ink);
  background: rgba(244,247,253,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
/* 헤더는 .wrap(1160px 중앙정렬)을 쓰지 않고 히어로와 같은 --layout-inset 기준선에 맞춘다
   — "상단 로고와 하단 슬라이드 시작점 일치" 요구사항 */
/* 헤더 좌우 여백은 레거시(.logo margin-left:5% / .memberLink margin-right:5%)와 동일한 비율로 맞춘다
   — 히어로 콘텐츠의 --layout-inset과는 별개(레거시도 헤더와 슬라이드 콘텐츠 여백이 서로 다름) */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px;
  max-width: none; margin: 0; padding-left: 5%; padding-right: 5%;
}
.logo { position: relative; }
.logo img { height: 32px; }
.logo-img-dark { display: none; }
.site-header.sub .logo-img-light,
.site-header.scrolled .logo-img-light { display: none; }
.site-header.sub .logo-img-dark,
.site-header.scrolled .logo-img-dark { display: block; }
.nav-menu { display: flex; align-items: center; gap: 38px; }
.nav-menu a { color: var(--header-fg); font-size: 18px; font-weight: 600; }
.nav-menu a:hover { color: var(--green); }
/* 홈 최상단(헤더가 투명 배경 위 흰 글자인 상태)에서는 파랑 hover가 짙은 파란 히어로 배경에 묻혀
   잘 안 보이므로, 이 상태에서만 히어로 카운터와 같은 톤(#FFE066)의 노란 계열로 hover 강조.
   1080px 이하(햄버거 드롭다운)에서는 메뉴가 밝은 배경 위에 뜨는 별개 UI라 이 대비 문제 자체가
   없는데도 같은 .nav-menu 클래스를 공유해 노란 hover가 그대로 새고 있었음 — 데스크톱 가로
   메뉴에서만 적용되도록 min-width로 범위를 좁힘(햄버거 전환 브레이크포인트와 동일 기준) */
@media (min-width: 1081px) {
  .site-header:not(.sub):not(.scrolled) .nav-menu a:hover,
  .site-header:not(.sub):not(.scrolled) .link-btn:hover { color: #FFE066; }
}
.nav-menu .mobile-only { display: none; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.link-btn { font-size: 17.5px; font-weight: 700; color: var(--header-fg); padding: 10px 4px; }
.link-btn:hover { color: var(--green); }
.nav-toggle { display: none; width: 40px; height: 40px; border: none; background: none; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--header-fg); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }
.nav-toggle span::before, .nav-toggle span::after { left: 0; right: 0; }

/* ---------- hero slider (Swiper) ---------- */
.hero-slider { position: relative; height: clamp(680px, 50vw, 820px); overflow: hidden; background: #16225C; --hero-inset: var(--layout-inset); }
.hero-slider .swiper-slide {
  background-size: cover; background-position: center right;
  display: flex; align-items: center; position: relative;
  /* 헤더(투명 오버레이)를 피할 최소 여백만 위에 주고, 아래는 고정 카운터/버튼 영역만큼 비워서
     그 사이 공간에서 세로 중앙정렬 — 화면이 커도 콘텐츠가 상단에 붙어 보이지 않게 함 */
  padding-top: clamp(110px, 10vw, 150px);
  padding-bottom: 220px;
}
.hero-slider .swiper-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,34,92,0.94) 0%, rgba(22,34,92,0.72) 42%, rgba(22,34,92,0.18) 72%);
}
/* 콘텐츠는 .wrap(1160px 중앙정렬)에 가두지 않고 뷰포트 왼쪽에 비례 여백으로 붙인다
   — 넓은 화면에서 텍스트가 중앙에 몰려 보이던 문제 수정, 레거시 슬라이드의 좌측 앵커 배치를 참고
   주의: 바깥 박스에 max-width를 주면 --hero-inset(패딩)이 커질수록 실제 텍스트 폭이 줄어드는 역효과가
   생겨 넓은 화면에서 오히려 줄바꿈이 밀리는 버그가 있었다 — 박스는 폭 제한 없이, 텍스트 요소에만
   max-width를 줘서 뷰포트가 넓어질수록 텍스트가 쓸 수 있는 공간도 항상 늘어나게 한다. */
.hero-slide-inner {
  padding-left: var(--hero-inset);
  padding-right: 32px;
  position: relative; z-index: 2;
}
.hero-slide-inner .hero-title { color: #fff; margin-bottom: 22px; max-width: 640px; }
.hero-sub { color: rgba(255,255,255,0.86); font-size: 17px; line-height: 1.6; font-weight: 500; margin-bottom: 0; max-width: 560px; }

/* 가입자 수 카운터 — 슬라이드 콘텐츠가 아니라 히어로 전체에 고정(슬라이드가 바뀌어도 안 움직임), 카운트업은 main.js */
.hero-counter {
  position: absolute; left: var(--hero-inset); bottom: 172px; z-index: 6;
  color: rgba(255,255,255,0.92); font-size: 19px; line-height: 1.55; font-weight: 600; white-space: nowrap;
}
.hero-counter .counter-num { font-size: 30px; font-weight: 900; color: #FFE066; letter-spacing: -0.02em; }

/* 다운로드/무료체험 버튼 — 슬라이드 콘텐츠가 아니라 히어로 전체에 고정으로 오버레이(슬라이드 전환에 안 움직임) */
.hero-cta-bar {
  position: absolute; left: var(--hero-inset); bottom: 92px; z-index: 6;
  display: flex; gap: 14px; flex-wrap: wrap;
}

.hero-slider .swiper-pagination { bottom: 30px !important; left: var(--hero-inset) !important; width: auto !important; text-align: left; z-index: 6; }
.hero-slider .swiper-pagination-bullet { background: rgba(255,255,255,0.55); opacity: 1; width: 9px; height: 9px; }
.hero-slider .swiper-pagination-bullet-active { background: #fff; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next, .hero-slider .swiper-button-pause {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); color: #fff;
}
.hero-slider .swiper-button-prev::after, .hero-slider .swiper-button-next::after { font-size: 16px; }
.hero-slider .swiper-button-prev { left: auto; right: 152px; bottom: 20px; top: auto; }
.hero-slider .swiper-button-pause {
  position: absolute; right: 92px; bottom: 20px; z-index: 6; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-slider .swiper-button-pause:hover { background: rgba(255,255,255,0.18); }
.hero-slider .swiper-button-pause svg { width: 15px; height: 15px; }
.hero-slider .swiper-button-next { right: 32px; bottom: 20px; top: auto; }

/* market strip */
.market-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 30px 0; }
.market-strip-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.market-strip-label { font-size: 14.5px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.market-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
/* height(고정)+width:auto 조합은 전역 img{max-width:100%}(46번째 줄)과 충돌해서, 좁은
   화면에서 가로폭만 줄어들고 높이는 그대로라 가로로 짜부라지는 왜곡이 생겼음(특히
   market-others.png처럼 가로로 긴 이미지에서 도드라짐) — max-height/width:auto로 바꿔서
   어느 쪽이든 더 좁게 걸리는 제약에 맞춰 비율 그대로 축소되게 함 */
.market-logos img { max-height: 30px; width: auto; height: auto; }
.market-logo-main { max-height: 34px !important; }
.market-plus { color: var(--ink-faint); font-weight: 700; }

/* about */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.about-visual { display: block; width: 100%; margin-top: 36px; }
.about-copy p { margin: 0 0 18px; }
/* 강조 표현 — 색상 구분 없이 굵기로만 강조 */
.about-copy .hl,
.about-copy .ul,
.about-copy .hl-red {
  font-weight: 700;
}
/* 핵심 기능 2곳만 추가로 밑줄 강조 */
.about-copy .hl-underline {
  text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* for whom */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.persona-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; }
.persona-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.persona-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #EAF1FE; display: flex; align-items: center; justify-content: center; }
.persona-icon svg { width: 24px; height: 24px; }
.persona-card h3 { font-size: 22px; margin-bottom: 8px; }
.persona-kicker { color: var(--green-dark); font-weight: 700; font-size: 18px; display: block; }
.persona-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.persona-card li { font-size: 16.5px; color: var(--ink-soft); padding-left: 20px; position: relative; line-height: 1.6; }
.persona-card li::before { content: '·'; position: absolute; left: 4px; color: var(--ink-faint); font-weight: 900; }

/* feature showcase */
.showcase { display: flex; flex-direction: column; gap: 96px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase-row.rev .fs-copy { order: 2; }
.showcase-row.rev .fs-visual { order: 1; }
.fs-visual { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.fs-visual img { border-radius: 12px; cursor: zoom-in; }
.fs-kicker { color: var(--green-dark); font-weight: 700; font-size: 20px; margin-bottom: 13px; display: inline-flex; align-items: center; gap: 9px; }
.fs-kicker-icon { width: 26px; height: 26px; flex-shrink: 0; }
.fs-copy h3 { font-size: 30px; margin-bottom: 16px; }
.fs-copy .p-body { font-size: 18px; }
.fs-copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fs-copy li { font-size: 17px; color: var(--ink-soft); padding-left: 26px; position: relative; }
.fs-copy li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* 이미지 라이트박스 (.fs-visual img 클릭 시 원본 크기로 확대) */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(10,12,18,0.88); display: flex; align-items: center; justify-content: center; z-index: 1100; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 24px; right: 32px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
/* 기능 소개 이미지 라이트박스(main.js) — 세로가 긴 주석본을 화면에 맞춰 줄이지 않고 폭 맞춤 + 세로 스크롤.
   align-items:center로 두면 화면보다 긴 이미지의 위쪽이 잘려 스크롤로도 못 보므로 flex-start + margin:auto
   (짧은 이미지는 자동 가운데, 긴 이미지는 위에서부터 스크롤). */
.lightbox-overlay.lightbox-scroll { overflow: auto; align-items: flex-start; justify-content: flex-start; padding: 24px 0; overscroll-behavior: contain; }
.lightbox-overlay.lightbox-scroll img { margin: auto; max-width: min(92vw, 1500px); max-height: none; }
.lightbox-overlay.lightbox-scroll .lightbox-close { position: fixed; z-index: 1; }
/* 확대 시 번호·설명이 붙은 화면이 열린다는 표시 */
.fs-visual, .mini-feature-visual { position: relative; }
.fs-visual:has(img[data-zoom-src])::after, .mini-feature-visual:has(img[data-zoom-src])::after {
  content: '🔍 클릭해서 자세히 보기'; position: absolute; right: 22px; bottom: 22px; pointer-events: none;
  background: rgba(11,15,25,0.72); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
}
.mini-feature-visual:has(img[data-zoom-src])::after { right: 16px; bottom: 16px; font-size: 12px; }
/* 마우스가 있는 화면에서는 이미지에 올렸을 때만 표시 — 터치 화면(모바일)은 올리기 동작이 없어 항상 표시 */
@media (hover: hover) and (pointer: fine) {
  .fs-visual:has(img[data-zoom-src])::after, .mini-feature-visual:has(img[data-zoom-src])::after { opacity: 0; transition: opacity .18s ease; }
  .fs-visual:has(img[data-zoom-src]):hover::after, .mini-feature-visual:has(img[data-zoom-src]):hover::after { opacity: 1; }
}
@media (max-width: 768px) {
  .fs-visual:has(img[data-zoom-src])::after, .mini-feature-visual:has(img[data-zoom-src])::after { font-size: 11px; padding: 5px 9px; right: 14px; bottom: 14px; }
}
/* 모바일·터치 화면 — 브라우저 핀치 확대는 페이지 전체를 키워 닫기 버튼이 화면 밖으로 밀려나고 모서리까지
   이동할 수 없으므로, 확대 창 안에서만 손가락 확대·이동을 직접 처리한다(main.js .lightbox-touch).
   이미지는 transform으로만 움직이고 닫기 버튼은 화면에 고정된다. */
.lightbox-overlay.lightbox-touch { display: block; overflow: hidden; padding: 0; touch-action: none; overscroll-behavior: none; }
.lightbox-overlay.lightbox-touch img { position: absolute; left: 0; top: 0; margin: 0; max-width: none; max-height: none; min-width: 0;
  border-radius: 0; box-shadow: none; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lightbox-overlay.lightbox-touch .lightbox-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.35); }

/* 리뷰 라이트박스 전용 — 사진과 함께 리뷰 글도 표시 */
.lightbox-content { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; max-height: 92vh; }
.lightbox-content img { max-height: 70vh; }
.lightbox-caption { max-width: 560px; width: 100%; text-align: center; color: #fff; }
.lightbox-caption .stars { color: #ffb92e; font-size: 15px; margin-bottom: 6px; }
.lightbox-caption .author { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.lightbox-caption .text { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); white-space: pre-wrap; }

/* AI break — 정적인 AND AI 타이포그래피(애니메이션 없음, 2026-09-10). */
.ai-break {
  background: var(--ink); border-radius: 28px; padding: 32px 40px; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden;
}
.ai-sequence { width: 100%; display: flex; align-items: baseline; justify-content: center; }
/* AND 밑선을 AI 밑선(글자 기준선)에 맞춰 한 줄로 붙여 쓴다 */
.ai-seq-and-ai { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.ai-seq-and-part { display: inline-block; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; color: #fff; letter-spacing: .12em; }
.ai-seq-ai-part { display: inline-block; font-size: clamp(38px, 6.6vw, 72px); font-weight: 900; color: var(--red); letter-spacing: -0.02em; }
.ai-break p { color: #fff; font-size: 19px; white-space: nowrap; padding: 0 24px; }

.mini-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; }
.mini-feature-visual { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin-bottom: 22px; }
.mini-feature-visual img { border-radius: 7px; cursor: zoom-in; }
.mini-feature-card h4 { font-size: 18px; margin-bottom: 12px; }
.flow-3 { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.flow-step { width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; text-align: center; padding: 6px; }
.flow-arrow { flex: 1; height: 1.5px; background: var(--border); margin: 0 8px; position: relative; }
.flow-arrow::after { content: '›'; position: absolute; right: -2px; top: -11px; color: var(--ink-faint); font-size: 20px; }

/* mini 카드의 보조 이미지 썸네일 줄 — 클릭 시 대표 이미지와 같은 라이트박스로 확대 */
.mini-feature-thumbs { display: flex; gap: 8px; margin: -12px 0 22px; }
.mini-feature-thumbs img { width: calc((100% - 16px) / 3); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border: 1px solid var(--border); border-radius: 8px; cursor: zoom-in; background: var(--surface); transition: border-color .15s; }
.mini-feature-thumbs img:hover { border-color: var(--green); }
.mini-feature-section-title { font-size: 22px; margin: 72px 0 24px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; }
.why-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.why-icon { width: 44px; height: 44px; flex-shrink: 0; background: #EAF1FE; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 24px; height: 24px; }
.why-num { font-size: 19px; font-weight: 700; color: var(--green-dark); }
.why-card h4 { font-size: 20px; margin-bottom: 10px; }
.why-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; }

/* trust band */
.trust-band { padding: 0 0 64px; }
.trust-banner { width: 100%; display: block; }

/* pricing */
/* "플랜 자세히 살펴보기" 링크 — 화면이 충분히 높으면(>855px) 카드 아래 비교표 테두리가
   저절로 살짝 걸쳐 보여서 스크롤을 자연스럽게 유도하지만, 화면이 낮으면(노트북 등) 카드만
   꽉 차서 그 밑에 더 있다는 걸 알기 어려우므로 그때만 명시적 링크를 보여준다. */
.plan-detail-link {
    display: none; margin-top: 16px; background: none; border: none;
    font-size: 14.5px; font-weight: 700; color: var(--green); cursor: pointer; padding: 4px;
}
.plan-detail-link:hover { color: var(--green-dark); text-decoration: underline; }
@media (max-height: 855px) {
    .plan-detail-link { display: inline-block; }
}
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.plan-card { background: var(--surface); border: 1.5px solid rgba(11,15,25,0.3); border-radius: 22px; padding: 36px 32px; position: relative; box-shadow: var(--shadow); }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.plan-icon { width: 20px; height: 20px; flex-shrink: 0; }
.plan-price { font-size: 42px; font-weight: 900; margin-bottom: 4px; }
.plan-price span { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.plan-desc { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 24px; }
.plan-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan-card li { font-size: 16px; padding-left: 24px; position: relative; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plan-card li.ghost { visibility: hidden; }
.plan-card .btn { width: 100%; }

.plan-compare-wrap { max-width: 1080px; margin: 48px auto 0; }
.plan-compare-scroll { overflow-x: auto; border: 1.5px solid rgba(11,15,25,0.3); border-radius: 16px; }
.plan-compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 640px; background: var(--surface); }
.plan-compare-table .feat-col-group { width: 18%; }
.plan-compare-table th, .plan-compare-table td { padding: 14px 16px; text-align: center; font-size: 14.5px; border-bottom: 1px solid rgba(11,15,25,0.3); white-space: nowrap; }
.plan-compare-table th { color: var(--ink-soft); font-weight: 700; background: var(--bg); white-space: normal; }
.plan-compare-table td.feat-name { text-align: left; color: var(--ink-soft); font-weight: 600; white-space: normal; }
.plan-compare-table .feat-note { display: inline-block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-faint); }
.plan-compare-table th:first-child, .plan-compare-table td:first-child { text-align: left; }
.plan-compare-table tr:last-child td { border-bottom: none; }
.plan-compare-table .feat-yes { color: var(--green); font-weight: 900; }
.plan-compare-table .feat-no { color: var(--border); font-weight: 900; opacity: .6; }
.plan-compare-table .feat-partial { color: #E9A23B; font-weight: 900; font-size: 13px; }
.plan-compare-table td.feat-group {
    background: var(--bg); text-align: center; font-size: 13.5px; font-weight: 800;
    color: var(--green-dark); white-space: normal; vertical-align: middle;
    border-right: 1px solid rgba(11,15,25,0.3);
}
.plan-compare-table .feat-group-icon { display: block; width: 22px; height: 22px; margin: 0 auto 6px; }

/* how */
.how-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-step { text-align: center; padding: 0 16px; position: relative; }
.how-dot { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; position: relative; z-index: 2; }
.how-step:nth-child(3) .how-dot, .how-step:nth-child(4) .how-dot { background: var(--green); }
.how-line { position: absolute; top: 26px; left: calc(12.5%); right: calc(12.5%); height: 2px; background: var(--border); z-index: 1; }
.how-step h4 { font-size: 20px; margin-bottom: 10px; }
.how-step p { font-size: 16.5px; color: var(--ink-soft); }
.how-badges { display: flex; gap: 12px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.how-badge { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 12px 24px; font-size: 16.5px; font-weight: 400; color: var(--ink); }

/* reviews — 카드 그리드가 아니라 리스트형, 페이지네이션 포함(10개씩 기본) */
.review-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.review-agg { display: flex; align-items: center; gap: 14px; }
.review-agg .score { font-size: 32px; font-weight: 900; }
.stars { color: var(--green-dark); font-size: 16px; letter-spacing: 2px; }

/* 포토리뷰 스트립 — 사진 첨부된 리뷰만 상단에 미리보기(스마트스토어 포토리뷰 참고, §4) */
.review-photo-strip { display: flex; gap: 10px; list-style: none; margin: 0 0 28px; padding: 0; flex-wrap: wrap; }
.review-photo-strip li { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.review-photo-strip li a,
.review-photo-strip li button { display: block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; cursor: pointer; background: #E4E9F2; position: relative; }
.review-photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo-strip .more-tile img { filter: brightness(0.45); }
.review-photo-strip .more-tile span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: #fff; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4;
}
.review-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.review-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; background: #E4E9F2; display: block; }
.review-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.review-row { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; }
.review-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.review-who { display: flex; align-items: baseline; gap: 10px; }
.review-who .name { font-size: 15px; font-weight: 700; }
.review-who .sub { font-size: 12.5px; color: var(--ink-faint); }
.review-body { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.review-photos { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.review-photos .ph { width: 110px; height: 110px; border-radius: 10px; background: #E4E9F2; object-fit: contain; cursor: pointer; display: block; }
.review-reply { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.review-reply b { color: var(--ink); }
.review-cta { display: flex; justify-content: center; margin-top: 32px; }
.review-empty { text-align: center; color: var(--ink-faint); padding: 40px 0; font-size: 14.5px; }

/* 리뷰 작성/수정 폼 — home.php/subscribe.php/free-trial.php 공용 컴포넌트(docs/plans/27 §4).
   사이트 공용 모달(.modal-overlay/.modal-box) 안에 들어가므로 자체 카드 배경/테두리는 없음. */
.review-login-prompt { text-align: center; padding: 12px 0 4px; font-size: 14.5px; color: var(--ink-soft); }
.review-login-prompt a, .review-login-prompt button { color: var(--green-dark); font-weight: 700; text-decoration: underline; background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; }
.review-form-stars { display: flex; gap: 4px; margin-bottom: 14px; }
.review-form-stars button { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--border); padding: 0; }
.review-form-stars button.on { color: var(--green-dark); }
#reviewForm textarea { width: 100%; min-height: 90px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical; }
.review-form-existing-images { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.review-form-existing-images .thumb { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #E4E9F2; }
.review-form-existing-images .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.review-form-existing-images .thumb button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: 0; font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.review-form-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.review-form-img-btn { font-size: 13px; color: var(--ink-soft); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.review-form-img-btn input { display: none; }
.review-form-row .btn { margin-left: auto; }
.review-form-msg { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }
.review-form-msg.error { color: #d64545; }
.review-form-msg.ok { color: var(--green-dark); }

/* 공용 페이지네이션(리뷰/추후 FAQ·공지에도 재사용 가능) */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 4px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.pagination button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination button:hover:not(.active):not(:disabled) { border-color: var(--green); color: var(--green-dark); }
.pagination button:disabled { opacity: 0.4; cursor: default; }
.pagination .ellipsis { color: var(--ink-faint); padding: 0 2px; }

/* contact / faq / notice */
/* 1:1문의 — 레거시 실제 레이아웃(전체폭 라이트 테마, 큰 탭 2개, 필드 세로 스택) 그대로 이식 */
.btn-danger { background: #DC3545; color: #fff; }
.btn-danger:hover { background: #C82333; color: #fff; }

.inquiry-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 64px; }
.inquiry-tabs { display: flex; }
.inquiry-tab { flex: 1; padding: 20px; font-size: 16px; font-weight: 700; background: #F7F8FA; color: var(--ink); border: none; border-bottom: 1px solid var(--border); cursor: pointer; }
.inquiry-tab:first-child { border-right: 1px solid var(--border); }
.inquiry-tab.active { background: var(--ink); color: #fff; border-bottom-color: var(--ink); }
.inquiry-panel { padding: 32px; }

.inq-check-row { display: flex; align-items: center; gap: 10px; background: #F7F8FA; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--ink); margin-bottom: 24px; flex-wrap: wrap; }
.inq-check-row input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.inq-check-row b { color: var(--red); font-weight: 700; }
.inq-check-row button { margin-left: auto; background: none; border: none; color: var(--ink-faint); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0; }

.inq-field { margin-bottom: 20px; }
/* 자식결합자(>) 필수 — 안 그러면 .inq-file-row 안에 중첩된 "파일찾기" <label class="inq-btn-dark">까지
   잡아먹어서 display:block+어두운 글자색이 버튼 배경과 겹쳐 텍스트가 안 보이는 버그가 생김 */
.inq-field > label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.inq-field input, .inq-field select, .inq-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 16px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff;
}
.inq-field textarea { resize: vertical; }
.inq-charcount { text-align: right; font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

.inq-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inq-email-row, .inq-phone-row { display: flex; align-items: center; gap: 8px; }
.inq-email-row input { flex: 1; min-width: 0; }
.inq-email-row span { color: var(--ink-faint); }
/* 좁은 화면(iPhone 등)에서 입력칸 3개(고정폭)+버튼이 한 줄에 다 안 들어가면 버튼이
   잘려 보이던 문제 — flex-wrap만 추가해 폭이 부족할 때 버튼이 자동으로 다음 줄로 내려가게 함 */
.inq-phone-row { flex-wrap: wrap; row-gap: 8px; }
.inq-phone-row input { width: 120px; text-align: center; flex: none; }
.inq-phone-row input[readonly] { background: #F7F8FA; color: var(--ink-faint); }
/* 인증번호 입력칸은 이 줄에 혼자라 옆 3칸(휴대폰번호)보다 여유 있게 잡아도 됨 */
#inqNmAuthNumber { width: 220px; }
.inq-timer { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

/* 파일찾기/문의등록/인증 버튼 — 전부 동일한 사각형 스타일(높이 48px)로 통일 */
.inq-btn-dark, .inq-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; box-sizing: border-box; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none;
}
.inq-btn-dark { background: var(--ink); color: #fff; border: none; }
.inq-btn-dark:hover { opacity: .9; }
.inq-btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--border); padding: 0 18px; font-size: 13.5px; }
.inq-btn-outline:hover { background: #F7F8FA; }
/* 휴대폰 인증 완료 상태 — 비활성화만으로는 "인증됐다"는 게 잘 안 느껴져서(문구만 바뀌고
   버튼 자체는 평소와 똑같아 보임), 체크표시(다른 곳의 ✓ 스타일과 동일한 톤)로 명확히 표시 */
.inq-btn-outline.is-done { background: #EAF1FE; border-color: var(--green); color: var(--green-dark); cursor: default; }
.inq-btn-outline.is-done:hover { background: #EAF1FE; }

.inq-file-row { display: flex; align-items: center; gap: 10px; }
.inq-file-row input[type="file"] { display: none; }
.inq-file-display {
  flex: 1; min-width: 0; height: 48px; box-sizing: border-box; display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; font-size: 13.5px; color: var(--ink-faint);
  background: #F7F8FA; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inq-file-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

.inq-submit-row { text-align: right; margin-top: 28px; }

/* 문의내역 목록 (레거시와 동일하게 표 형태) */
.inq-table-wrap { overflow-x: auto; }
.inq-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.inq-table th { text-align: center; padding: 14px 12px; border-bottom: 2px solid var(--ink); font-size: 13.5px; color: var(--ink-faint); font-weight: 700; white-space: nowrap; }
.inq-table th:first-child { text-align: left; }
.inq-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); }
.inq-table tbody tr { cursor: pointer; }
.inq-table tbody tr:hover { background: #F7F8FA; }
.inq-table td:first-child { text-align: left; max-width: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-table td:nth-child(2), .inq-table td:nth-child(3) { text-align: center; white-space: nowrap; }
.inq-table .inq-empty-row td { text-align: center; color: var(--ink-faint); padding: 48px 0; }
.inq-status.wait { color: var(--ink-faint); font-weight: 600; }
.inq-status.done { color: var(--green-dark); font-weight: 700; }

/* 문의내역 상세 모달 (밝은 배경) */
.inq-modal-field { margin-bottom: 16px; }
.inq-modal-field label { display: block; font-size: 13px; font-weight: 700; color: #555; margin-bottom: 6px; }
.inq-modal-field input, .inq-modal-field select, .inq-modal-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink);
}
.inq-modal-field input[readonly], .inq-modal-field select:disabled, .inq-modal-field textarea[readonly] { background: #F4F5F7; color: #666; }
.inq-modal-date { font-size: 13.5px; color: #888; }
.inq-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 29px 26px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q-row { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; }
.faq-q { font-size: 18px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.faq-q .tag { color: var(--green-dark); font-weight: 900; font-size: 16px; }
.faq-item .chev { color: var(--ink-faint); font-size: 20px; transition: transform .2s ease; }
.faq-item.open .chev { transform: rotate(180deg); }
/* max-height는 고정값이 아니라 home.js가 펼칠 때 실제 scrollHeight를 인라인 스타일로
   넣어준다(콘텐츠 길이가 제각각이라 고정값으로는 긴 글이 잘림) — 닫힘 기본값 0만 여기서 정의. */
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 24px 20px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.7; }

/* 공지사항 — FAQ와 동일한 아코디언 구조(레거시 .notice-item/.notice-question/.notice-answer와 동일 동작) */
.notice-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.notice-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.notice-q-row { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; }
.notice-title-wrap { display: flex; align-items: center; min-width: 0; flex: 1; }
.notice-title { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-date { font-size: 15px; color: var(--ink-faint); white-space: nowrap; margin-left: 16px; flex: none; }
.notice-item .chev { color: var(--ink-faint); font-size: 20px; transition: transform .2s ease; margin-left: 12px; flex: none; }
.notice-item.open .chev { transform: rotate(180deg); }
/* max-height는 고정값이 아니라 home.js가 펼칠 때 실제 scrollHeight를 인라인 스타일로
   넣어준다(콘텐츠 길이가 제각각이라 고정값으로는 긴 글이 잘림) — 닫힘 기본값 0만 여기서 정의. */
.notice-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.notice-a-inner { padding: 0 24px 20px; font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.badge { background: #EAF1FE; color: var(--green-dark); font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 6px; margin-right: 12px; flex: none; }
.badge.badge-important { background: rgba(255,59,48,0.1); color: var(--red); }
.badge.badge-update { background: rgba(47,111,237,0.12); color: var(--green-dark); }

/* FAQ/공지사항 공통 툴바(총 건수, 카테고리 필터, 검색) — 레거시 .board-info/.board-search 비율 참고 */
.board-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-bottom: 24px; }
.board-count { font-size: 16px; color: var(--ink-soft); font-weight: 700; margin-right: 50px; flex: none; }
.board-count b, .board-count span { font-weight: 800; color: var(--ink); }
.board-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.board-cat-btn { height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-size: 15.5px; font-weight: 600; cursor: pointer; }
.board-cat-btn:hover { border-color: var(--green); color: var(--green-dark); }
.board-cat-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.board-search { display: flex; gap: 10px; flex: 1 1 320px; min-width: 260px; }
.board-search-input-wrap { position: relative; display: flex; align-items: center; flex: 1; }
.board-search-input-wrap::before {
  content: ''; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}
.board-search-input-wrap input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; padding: 0 40px 0 42px; height: 46px; font-size: 15.5px; font-family: inherit; color: var(--ink); background: #fff; }
.board-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--ink-faint); font-size: 14px; cursor: pointer; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; }
.board-search-clear:hover { color: var(--ink); }
.board-search-clear.show { display: flex; }
.board-search .inq-btn-dark { height: 46px; font-size: 15.5px; padding: 0 26px; flex: none; }
.board-empty { text-align: center; color: var(--ink-faint); padding: 48px 0; font-size: 14.5px; }
@media (max-width: 640px) {
  .board-toolbar { justify-content: flex-start; }
  .board-count { margin-right: 0; width: 100%; }
  .board-search { width: 100%; flex: 1 1 100%; }
}

/* lightweight modal (Bootstrap modal 대체) — 레거시 Bootstrap 4.5.2 .modal.fade를 실측
   기반으로 재현(원래 auth.css에 login.php 전용으로만 있던 걸 2026-09-07 전 페이지 공통으로
   승격 — mypage/subscribe 등도 legacy에서 로그인 모달과 동일한 plain .modal-dialog를 쓰므로
   같은 스타일이 맞다). 레거시는 두 계열이 있음: 기본(상단정렬, 로그인/마이페이지/구독 폼류)과
   센터정렬(footer 약관모달, legacy .modal-dialog-centered) — 폭·페이드·배경·헤더는 동일하고
   수직정렬만 다르므로, 센터정렬이 필요한 곳엔 .modal-overlay.modal-centered를 추가로 붙인다. */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  /* 레거시는 모달 자체 배경(rgba(0,0,0,.4)) 아래 Bootstrap .modal-backdrop(검정 50%)이
     한 겹 더 깔려 겹쳐진다 — 합성한 어둡기(약 65%)를 오버레이 하나로 재현 */
  background: rgba(0, 0, 0, 0.65);
  padding: 28px 24px;
  /* 레거시 .fade(.fade:not(.show){opacity:0})와 동일한 페이드 재현 — display 토글 대신
     opacity/visibility 전환으로 transition이 걸리게 한다 */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s linear, visibility 0s linear .15s;
}
.modal-overlay.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .15s linear, visibility 0s linear 0s;
}
.modal-overlay.modal-centered { align-items: center; }
.modal-box {
  /* 레거시 Bootstrap .modal-content 그대로: border 1px solid rgba(0,0,0,.2) + radius .3rem,
     그림자 없음(둥근 18px 카드형 그림자는 이 프레임과 안 맞아 제거) */
  background: #fff; border: 1px solid rgba(0,0,0,.2); border-radius: 5px;
  max-width: 500px; width: 100%; max-height: 82vh;
  display: flex; flex-direction: column;
  position: relative; transform: translateY(-50px); transition: transform .3s ease-out;
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 29px; border-bottom: 1px solid #dee2e6; }
/* 레거시 실측값은 14px/400(너무 작음) — 2026-09-07 사용자 요청으로 가독성 위해 확대,
   레거시 매칭 원칙보다 가독성 우선(다른 곳의 폰트 확대 결정과 동일한 기준) */
.modal-head h5 { font-size: 19px; font-weight: 700; color: #3d3d3d; margin: 0; line-height: 1.5; }
/* 레거시 Bootstrap .close 버튼 — modal-content 기준 절대위치, 옅은 회색 볼드 × + 흰 그림자,
   hover 시 검정으로 (실제 레거시 렌더 결과 실측 반영) */
.modal-close {
  position: absolute; top: 10px; right: 10px;
  font-size: 28px; font-weight: 700; line-height: 28px;
  background: none; border: none; cursor: pointer;
  color: #aaa; opacity: .5; text-shadow: 0 1px 0 #fff;
  padding: 16px; margin: -16px -16px -16px 0;
}
.modal-close:hover { color: #000; opacity: .75; }
.modal-body { padding: 29px; overflow-y: auto; font-size: 16px; color: var(--ink-soft); line-height: 1.75; }

/* footer */
.site-footer { background: #0B0F19; color: #8A93A6; padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.footer-top .logo-w img { height: 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.footer-col a { display: block; color: #8A93A6; font-size: 15.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-legal { font-size: 14.5px; line-height: 1.9; }

/* ---------- responsive ---------- */
/* 맨 위로 이동 버튼 — 기본은 숨김, 햄버거 폭(아래 미디어쿼리)에서만 display:flex로 노출.
   반드시 이 기본 규칙이 미디어쿼리보다 먼저(소스 순서상 앞에) 와야 함 — 나중에 오면 동일
   specificity라 미디어쿼리의 display:flex를 덮어써버려 항상 숨겨지는 버그가 생긴다. */
.scroll-top-btn {
  display: none; position: fixed; right: 20px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--ink); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.scroll-top-btn.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { opacity: .85; }

/* 헤더 전용 브레이크포인트: 메뉴 8개("문의" 추가로 7→8) + 로그인/회원가입이 한 줄에 들어가다
   줄바꿈되는 애매한 구간이 생기지 않도록, 실제 줄바꿈 시작점(1056px)보다 살짝 여유를 둔
   1080px에서 미리 햄버거로 전환한다(항목 추가 시 이 값도 같이 확인할 것). 레이아웃
   브레이크포인트인 960px/720px과는 별개. */
@media (max-width: 1080px) {
  .nav-menu {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); color: var(--ink); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu .mobile-only { display: block; }
  .header-cta .link-btn { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span { background: transparent; }
  .nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

  /* 햄버거로 메뉴가 접히는 폭에서는 상단 메뉴를 다시 열기 번거로우니, 스크롤을 내리면
     우측 하단에 맨 위로 이동하는 플로팅 버튼을 노출한다 */
  .scroll-top-btn { display: flex; }
}

@media (max-width: 960px) {
  .about-grid, .showcase-row, .contact-band { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .showcase-row.rev .fs-copy, .showcase-row.rev .fs-visual { order: initial; }
  .persona-grid, .why-grid, .how-track, .mini-feature-grid, .plan-grid { grid-template-columns: repeat(2,1fr); max-width: none; }
}

@media (max-width: 720px) {
  :root { --layout-inset: 20px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero-slider { height: 600px; padding-bottom: 0; }
  /* padding-top은 헤더(fixed, 96px)를 가릴 만큼은 되어야 한다 — 56px는 헤더보다 낮아서
     타이틀이 로고 밑에 깔리던 버그의 원인이었음 */
  .hero-slider .swiper-slide { background-position: 80% center; align-items: flex-start; padding-top: 116px; padding-bottom: 0; }
  .hero-slide-inner { padding-right: 20px; }
  .hero-slide-inner .hero-title { max-width: 320px; }
  .hero-sub { max-width: 320px; }
  .hero-sub { margin-bottom: 0; font-size: 14.5px; }
  /* 카운터/버튼이 서로 겹치지 않도록 순서대로: 페이지네이션(~22~32) → 버튼블록(60~178) → 카운터(200~240) */
  .hero-counter { right: 20px; bottom: 200px; font-size: 14px; line-height: 1.45; white-space: normal; }
  .hero-counter .counter-num { font-size: 21px; }
  .hero-cta-bar { right: 20px; bottom: 60px; flex-direction: column; }
  .hero-cta-bar .btn { width: 100%; }
  .hero-slider .swiper-pagination { bottom: 22px !important; }
  .hero-slider .swiper-button-prev, .hero-slider .swiper-button-next, .hero-slider .swiper-button-pause { display: none; }
  .persona-grid, .why-grid, .how-track, .mini-feature-grid, .plan-grid { grid-template-columns: 1fr; }
  .ai-break p { white-space: normal; font-size: 16px; }
  .contact-band { padding: 32px 24px; }

  /* 모바일 폭에서는 휴대폰번호 입력칸(3개, 데스크톱 고정폭)과 인증 버튼도 다른
     입력바(제목 등, width:100%)처럼 폭을 꽉 채우게 — 인풋 3개가 폭을 나눠 갖고,
     줄바꿈되는 버튼은 자기 줄에서 100% 폭 */
  .inq-phone-row input { flex: 1 1 0; width: auto; min-width: 0; }
  /* #inqNmAuthNumber는 ID 선택자라 데스크톱 전용 width:220px(위쪽)가 특정성 때문에
     이 미디어쿼리보다 우선 적용돼버림 — 모바일에서도 위 규칙처럼 폭을 꽉 채우도록 명시적으로 재정의 */
  #inqNmAuthNumber { width: auto; }
  .inq-phone-row .inq-btn-outline { flex: 1 1 100%; }

  /* 기능 비교표 — 좁은 화면에서 5개 컬럼이 다 안 들어가 가로 스크롤이 생기던 문제.
     "구분" 컬럼(그룹명)을 숨기고 여백/글자를 줄여 나머지 4개 컬럼만으로 화면 폭에 맞춘다.
     그래도 안 들어가는 초소형 화면을 위해 .plan-compare-scroll의 overflow-x:auto는 유지(안전망). */
  .plan-compare-table { min-width: 0; }
  .plan-compare-table th, .plan-compare-table td { padding: 10px 6px; font-size: 12.5px; }
  .plan-compare-table td.feat-name { font-size: 12.5px; }
  .plan-compare-table .feat-note { font-size: 11px; }
  .feat-group-th, .plan-compare-table td.feat-group, .plan-compare-table col.feat-col-group { display: none; }
}

/* 쇼케이스 세부 기능 라벨 — 섹션 아래 별도 띠(전체 폭)에 기능을 한눈에 요약.
   섹션과 띠를 .showcase-group으로 묶어 둘 사이는 가깝게, 다음 섹션과는 기존 간격(96px)을 유지 */
.showcase-group { display: flex; flex-direction: column; gap: 36px; }
.fs-feature-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; padding: 22px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.fs-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #EEF3FD; border: 1px solid #D5E1FA;
  color: var(--green-dark); font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
@media (max-width: 720px) {
  .showcase-group { gap: 24px; }
  .fs-feature-strip { padding: 16px; gap: 8px; }
  .fs-chip { font-size: 13px; padding: 5px 10px; }
}
