/* ==================================================================
   건설실무툴 (Construction Tool) - 디자인 파일
   ------------------------------------------------------------------
   색을 바꾸고 싶으면 아래 [색상 설정] 부분의 값만 고치면
   사이트 전체에 한 번에 적용됩니다.
   ================================================================== */


/* ------------------------------------------------------------------
   1. 색상 설정 (여기만 고치면 전체 색이 바뀝니다)
   ------------------------------------------------------------------ */
:root {
  /* 기본색 : 진한 남색 */
  --navy-900: #0A1E33;   /* 가장 진한 남색 */
  --navy-800: #10314F;   /* 기본 남색 */
  --navy-700: #1A4670;   /* 밝은 남색 */

  /* 강조색 : 안전 주황색 */
  --orange:      #F26A1B;
  --orange-dark: #D25409;

  /* 배경색 : 흰색과 연한 회색 */
  --white:   #FFFFFF;
  --gray-50: #F5F7F9;
  --gray-100:#EBEFF3;
  --line:    #D7DEE6;

  /* 글자색 */
  --text:       #16232F;
  --text-muted: #5C6B7A;
  --text-light: #C7D3DF;

  /* 기타 */
  --radius: 6px;
  --wrap:   1120px;
}


/* ------------------------------------------------------------------
   2. 공통 기본값
   ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* 메뉴에 가려지지 않게 */
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 17px;          /* 글자를 크게 */
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: keep-all;     /* 한글 단어가 중간에 끊기지 않게 */
}

p  { margin: 0; word-break: keep-all; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

/* 화면에는 안 보이지만 읽어주는 기능에는 전달되는 글자 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 키보드로 이동할 때 위치가 보이도록 */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* 가운데 정렬 영역 */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}


/* ------------------------------------------------------------------
   3. 버튼 (손가락으로 누르기 쉬운 크기)
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

/* 주황색 버튼 */
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* 테두리만 있는 버튼 */
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

/* 흰 배경 위에 놓이는 테두리 버튼 */
.section .btn-outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.section .btn-outline:hover { background: var(--navy-800); color: var(--white); }

/* 가로 전체를 채우는 버튼 */
.btn-block { display: flex; width: 100%; }

/* 상단 로그인 버튼 */
.btn-login {
  min-height: 52px;
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn-login:hover { background: var(--orange-dark); border-color: var(--orange-dark); }


/* ------------------------------------------------------------------
   4. 상단 메뉴 (헤더)
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

/* 로고 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
}
.brand-name strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-name small {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--text-light);
}

/* 스마트폰 메뉴 버튼 */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
}

/* 메뉴 목록 : 스마트폰에서는 기본으로 숨김 */
.main-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  padding: 12px 20px 24px;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.12);
}
.main-nav.is-open { display: block; }

.nav-list { margin-bottom: 16px; }
.nav-list a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.nav-list a:hover { color: var(--orange); }

.main-nav .btn-login { display: flex; width: 100%; }


/* ------------------------------------------------------------------
   5. 첫 화면 (히어로)
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 48px 0 0;
  background-color: var(--navy-800);
  /* 모눈종이(방안지) 느낌의 배경 */
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}

.hero-inner { padding-bottom: 40px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-left: 4px solid var(--orange);
  background: rgba(255,255,255,.08);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-title .hl {
  color: var(--orange);
  border-bottom: 5px solid var(--orange);
  padding-bottom: 2px;
}

.hero-desc {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 18px;
  color: var(--text-light);
}

.hero-buttons {
  display: grid;
  gap: 12px;
}

/* 도면 표제란 모양의 정보 띠 */
.titleblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10,30,51,.55);
}
.titleblock-cell {
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.titleblock-cell:nth-child(2n) { border-right: 0; }
.titleblock-cell:nth-last-child(-n+2) { border-bottom: 0; }

.titleblock dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--orange);
}
.titleblock dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}


/* ------------------------------------------------------------------
   6. 공통 구역(섹션)
   ------------------------------------------------------------------ */
.section { padding: 56px 0; }
.section-gray  { background: var(--gray-50); }
.section-navy  { background: var(--navy-900); color: var(--white); }

.section-head { margin-bottom: 28px; }

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--navy-700);
}
.section-head-light .section-label { color: var(--orange); }

.section-title {
  font-size: 27px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}
.section-head-light .section-desc { color: var(--text-light); }


/* ------------------------------------------------------------------
   7. 이용권 카드
   ------------------------------------------------------------------ */
.plan-grid {
  display: grid;
  gap: 16px;
}

.plan-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy-800);
  border-radius: var(--radius);
  background: var(--white);
}

/* 추천 상품은 주황색 테두리로 구분 */
.plan-card-best {
  border-top-color: var(--orange);
  box-shadow: 0 2px 14px rgba(16,49,79,.10);
}

.plan-badge {
  position: absolute;
  top: -1px; right: 18px;
  padding: 5px 12px;
  background: var(--orange);
  border-radius: 0 0 4px 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
}

.plan-kind {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--navy-700);
}

.plan-name {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-sub {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.plan-list {
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.plan-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 16px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  background: var(--orange);
}

.plan-price {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 4px;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  color: var(--navy-800);
}

.plan-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
}


/* ------------------------------------------------------------------
   8. 실무자료 카드
   ------------------------------------------------------------------ */
.doc-grid {
  display: grid;
  gap: 12px;
}
.doc-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy-700);
  border-radius: var(--radius);
}
.doc-card h3 {
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 800;
}
.doc-card p {
  font-size: 15px;
  color: var(--text-muted);
}


/* ------------------------------------------------------------------
   9. 웹앱 카드
   ------------------------------------------------------------------ */
.app-grid {
  display: grid;
  gap: 16px;
}

.app-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.app-state {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}
.app-state-open {
  background: var(--orange);
  color: var(--white);
}

.app-name {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}

.app-desc {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-muted);
}

.app-card-soon { background: var(--gray-50); }
.app-card-soon .app-desc { margin-bottom: 0; }


/* ------------------------------------------------------------------
   10. 이용 절차
   ------------------------------------------------------------------ */
.step-list {
  display: grid;
  gap: 14px;
}
.step {
  padding: 20px 22px;
  background: rgba(255,255,255,.06);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step-num {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--orange);
}
.step h3 {
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 800;
}
.step p {
  font-size: 15px;
  color: var(--text-light);
}


/* ------------------------------------------------------------------
   11. 고객센터
   ------------------------------------------------------------------ */
.support-grid {
  display: grid;
  gap: 14px;
}
.support-card {
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.support-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-700);
}
.support-value {
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 700;
  word-break: break-all;
}
.support-note {
  font-size: 15px;
  color: var(--text-muted);
}


/* ------------------------------------------------------------------
   12. 하단 (푸터)
   ------------------------------------------------------------------ */
.site-footer {
  padding: 40px 0 32px;
  background: var(--navy-900);
  color: var(--text-light);
  border-top: 3px solid var(--orange);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}
.footer-brand strong {
  display: block;
  font-size: 18px;
  color: var(--white);
}
.footer-brand p {
  font-size: 14px;
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.footer-nav a:hover { color: var(--orange); }

.footer-copy { font-size: 14px; }


/* ------------------------------------------------------------------
   13. 안내 메시지 (토스트)
   ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 15px 22px;
  background: var(--navy-900);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
}


/* ------------------------------------------------------------------
   13-1. 하위 페이지 상단 띠
   ------------------------------------------------------------------ */
.page-hero {
  padding: 36px 0 34px;
  background-color: var(--navy-800);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}

.page-hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero-desc {
  max-width: 640px;
  font-size: 17px;
  color: var(--text-light);
}

/* 현재 보고 있는 페이지 메뉴 표시 */
.nav-list a.is-active { color: var(--orange); }


/* ------------------------------------------------------------------
   13-2. 카드 안 버튼 간격
   ------------------------------------------------------------------ */
.card-actions { margin-top: 18px; }


/* ------------------------------------------------------------------
   13-3. 자료 목록
   ------------------------------------------------------------------ */
.file-block { margin-bottom: 34px; }

.file-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-800);
  font-size: 20px;
  font-weight: 800;
}
.file-block-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.file-type {
  flex: none;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-700);
}


/* ------------------------------------------------------------------
   13-4. 자주 묻는 질문 (여닫이)
   ------------------------------------------------------------------ */
.faq { border-top: 2px solid var(--navy-800); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 14px;
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}
.faq details[open] summary::after { content: "−"; }

.faq-answer {
  padding: 0 0 20px;
  font-size: 16px;
  color: var(--text-muted);
}


/* ------------------------------------------------------------------
   13-5. 안내 상자
   ------------------------------------------------------------------ */
.notice-box {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--gray-50);
  border-left: 4px solid var(--navy-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-muted);
}
.notice-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
}


/* ------------------------------------------------------------------
   13-6. 약관 · 정책 등 긴 글
   ------------------------------------------------------------------ */
.legal { max-width: 760px; }

.legal-meta {
  margin-bottom: 30px;
  padding: 16px 18px;
  background: var(--gray-50);
  border-left: 4px solid var(--navy-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-muted);
}

.legal-article { margin-bottom: 32px; }

.legal-article h2 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-800);
  font-size: 20px;
  font-weight: 800;
}

.legal-article h3 {
  margin: 20px 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.legal-article p {
  margin-bottom: 10px;
  font-size: 16px;
}

.legal-list { margin-bottom: 12px; }
.legal-list li {
  position: relative;
  padding: 5px 0 5px 28px;
  font-size: 16px;
}
.legal-no {
  position: absolute;
  left: 0; top: 5px;
  font-weight: 800;
  color: var(--navy-700);
}

/* 표 형식 정보 (개인정보 항목 등) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 15px;
}
.legal-table th,
.legal-table td {
  padding: 12px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--gray-50);
  font-weight: 800;
  white-space: nowrap;
}


/* ------------------------------------------------------------------
   13-7. 세로로 쌓는 버튼 묶음
   ------------------------------------------------------------------ */
.btn-stack {
  display: grid;
  gap: 12px;
  max-width: 420px;
}


/* ------------------------------------------------------------------
   13-8. 로그인 · 회원가입 폼
   ------------------------------------------------------------------ */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}

.form-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy-800);
  border-radius: var(--radius);
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.form-input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
}
.form-input:focus {
  outline: none;
  border-color: var(--navy-700);
}

/* 선택 상자 */
select.form-input {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy-700) 50%),
    linear-gradient(135deg, var(--navy-700) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* 파일 선택 */
input[type="file"].form-input {
  padding: 13px 14px;
  font-size: 15px;
  line-height: 1.4;
  height: auto;
}

.form-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-error {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #C0392B;
}
.form-error.is-show { display: block; }

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
}
.form-message.is-show { display: block; }
.form-message-error   { background: #FBEAE8; color: #C0392B; }
.form-message-success { background: #EAF3EC; color: #1E7B4D; }

.form-actions { margin-top: 8px; }

.form-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}
.form-switch a {
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: underline;
}


/* ------------------------------------------------------------------
   13-9. 마이페이지
   ------------------------------------------------------------------ */
.account-card {
  padding: 22px 22px;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-card-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.account-card-value {
  font-size: 18px;
  font-weight: 700;
}

.sub-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
}
.sub-status-active   { background: var(--orange); color: var(--white); }
.sub-status-none      { background: var(--gray-100); color: var(--text-muted); }


/* 상단 메뉴의 로그인 상태 표시 자리 */
.auth-status-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

/* 로그인 상태에서 메뉴가 눌리지 않도록 */
#authArea {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------------
   13-10. 상품 묶음이 여러 개일 때 아래쪽 간격
   ------------------------------------------------------------------ */
.plan-grid-group { margin-bottom: 44px; }


/* ------------------------------------------------------------------
   13-11. 웹앱 이용권 확인 화면 (게이트)
   ------------------------------------------------------------------
   레벨야장처럼 자체 디자인이 있는 웹앱 안에서도
   이 게이트 화면만은 사이트 공통 색을 쓰도록 지정합니다.
   ------------------------------------------------------------------ */

/* 이용권 확인 전에는 계산기를 확실히 감춥니다.
   계산기 자체 CSS가 display 값을 정해도 이 규칙이 이깁니다. */
[hidden] { display: none !important; }

.gate-inner { text-align: center; }
.gate-inner .btn-stack {
  margin: 20px auto 0;
  text-align: left;
}
.gate-inner .page-hero-desc { margin: 0 auto; }

/* 게이트 화면은 위아래 여백을 넉넉히 */
#gate.page-hero { padding: 80px 0 90px; }

/* 계산기 자체 .btn 규칙에 가려지지 않도록 다시 지정 */
#gate .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 58px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
}
#gate .btn-block { display: flex; width: 100%; }
#gate .btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
#gate .btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}


/* ------------------------------------------------------------------
   13-12. 자료 목록 (내려받기 버튼 · 등급 표시)
   ------------------------------------------------------------------ */

/* 목록 한 줄을 위아래로 배치 (모바일에서 잘리지 않게) */
.file-list li {
  align-items: flex-start;
  gap: 10px;
}

/* 자료 설명 (제목 아래 작은 글씨) */
.file-desc {
  display: inline-block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--text-muted);
}

/* 오른쪽 묶음 (형식 · 크기 · 버튼) */
.file-side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.file-size {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 등급 표시 */
.file-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  vertical-align: middle;
}
.file-badge-free {
  background: var(--gray-100);
  color: var(--navy-700);
}

/* 내려받기 버튼 */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--navy-800);
  border-radius: 4px;
  background: var(--navy-800);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  cursor: pointer;
}
.btn-download:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

/* 이용권이 없을 때 (연한 버튼) */
.btn-download-off {
  background: transparent;
  border-color: var(--line);
  color: var(--text-muted);
}
.btn-download-off:hover {
  background: var(--gray-50);
  border-color: var(--navy-700);
  color: var(--navy-700);
}


/* ------------------------------------------------------------------
   13-13. 푸터 사업자 정보 (전자상거래법 표시 의무 사항)
   ------------------------------------------------------------------ */
.biz-info {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  line-height: 1.9;
  color: #9BAAB9;
}
.biz-info dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0 0 8px;
}
.biz-info dt {
  font-weight: 700;
  color: #C7D3DF;
}
.biz-info dt::after { content: ''; }
.biz-info dd {
  margin: 0 8px 0 0;
}
.biz-info a { color: #C7D3DF; text-decoration: underline; }
.biz-info a:hover { color: var(--orange); }

.biz-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: #8494A3;
}


/* ------------------------------------------------------------------
   13-14. 준비 중인 상품 표시
   ------------------------------------------------------------------ */

/* 아직 열지 않은 상품 카드는 흐리게 */
.plan-card-soon {
  background: var(--gray-50);
  border-top-color: var(--line);
}
.plan-card-soon .plan-price {
  background: var(--gray-100);
  color: var(--text-muted);
}

/* 카드 오른쪽 위 "준비 중" 딱지 */
.plan-badge-soon {
  background: var(--text-muted);
}

/* 묶음 안에서 아직 안 열린 앱 */
.plan-list li.item-soon {
  color: var(--text-muted);
}
.plan-list li.item-soon::before {
  background: var(--line);
}
.item-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: middle;
}
.item-tag-open {
  background: var(--orange);
  color: var(--white);
}


/* ------------------------------------------------------------------
   13-15. 동의 체크박스
   ------------------------------------------------------------------ */
.form-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-label:has(input[type="checkbox"]) {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--gray-50);
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}


/* ==================================================================
   14. 화면이 넓어질 때 (태블릿 : 가로 768px 이상)
   ================================================================== */
@media (min-width: 768px) {

  .hero { padding-top: 72px; }
  .hero-inner { padding-bottom: 56px; }
  .hero-title { font-size: 52px; }
  .hero-desc  { font-size: 20px; }

  .hero-buttons {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }

  .titleblock { grid-template-columns: repeat(4, 1fr); }
  .titleblock-cell {
    border-right: 1px solid rgba(255,255,255,.18);
    border-bottom: 0;
  }
  .titleblock-cell:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.18); }
  .titleblock-cell:last-child    { border-right: 0; }

  .page-hero { padding: 56px 0 52px; }
  .page-hero-title { font-size: 40px; }
  .page-hero-desc  { font-size: 19px; }

  .section { padding: 72px 0; }
  .section-title { font-size: 32px; }

  .plan-grid,
  .app-grid    { grid-template-columns: repeat(3, 1fr); }
  .doc-grid,
  .support-grid{ grid-template-columns: repeat(2, 1fr); }
  .step-list   { grid-template-columns: repeat(2, 1fr); }
}


/* ==================================================================
   15. 화면이 더 넓어질 때 (PC : 가로 1024px 이상)
   ================================================================== */
@media (min-width: 1024px) {

  /* PC에서는 메뉴 버튼을 숨기고 메뉴를 가로로 펼칩니다 */
  .nav-toggle { display: none; }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: static;
    padding: 0;
    background: transparent;
    border-top: 0;
  }

  .nav-list {
    display: flex;
    gap: 26px;
    margin-bottom: 0;
  }
  .nav-list a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 17px;
  }

  .main-nav .btn-login { width: auto; padding: 0 22px; }

  .hero-title { font-size: 60px; }
  .doc-grid   { grid-template-columns: repeat(4, 1fr); }
  .step-list  { grid-template-columns: repeat(4, 1fr); }
}


/* ------------------------------------------------------------------
   16. 움직임을 줄이도록 설정한 사용자를 위한 처리
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ------------------------------------------------------------------
   17. 홈 화면 - 블로그 사용법 안내 배너
   ------------------------------------------------------------------ */
.usage-guide-banner{
  display:flex;
  align-items:center;
  gap:14px;
  margin:18px 0 0;
  padding:16px 20px;
  border-radius:14px;
  background:linear-gradient(135deg,#0E2A6E 0%,#12358C 100%);
  color:#fff;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(14,42,110,.18);
  transition:transform .15s ease, box-shadow .15s ease;
}
.usage-guide-banner:hover,
.usage-guide-banner:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(14,42,110,.25);
}
.usage-guide-icon{
  flex:0 0 auto;
  font-size:26px;
  line-height:1;
}
.usage-guide-text{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.usage-guide-text strong{
  font-size:15px;
  font-weight:700;
}
.usage-guide-text span{
  font-size:13px;
  color:rgba(255,255,255,.78);
}
.usage-guide-arrow{
  flex:0 0 auto;
  font-size:22px;
  font-weight:700;
  color:rgba(255,255,255,.8);
}

@media (max-width:480px){
  .usage-guide-banner{padding:14px 16px;gap:11px}
  .usage-guide-icon{font-size:22px}
  .usage-guide-text strong{font-size:14px}
  .usage-guide-text span{font-size:12px}
  .usage-guide-arrow{display:none}
}

/* 넥시폼 로고 이미지 (헤더·푸터) */
.brand-logo { display:block; height:46px; width:auto; }
.footer-logo { display:block; height:44px; width:auto; flex:0 0 auto; margin-top:2px; }
@media (max-width: 640px) {
  .brand-logo { height:38px; }
  .footer-brand { flex-direction:column; gap:10px; }
}

/* 결제 수단 선택 (checkout) */
.pay-methods { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin-top:6px; }
.pay-method { display:flex; align-items:center; gap:8px; padding:12px 14px; border:1px solid var(--border, #D9DEE5); border-radius:8px; background:#fff; cursor:pointer; font-weight:600; }
.pay-method input { accent-color: var(--orange); width:18px; height:18px; }
.pay-method.on { border-color: var(--orange); background:#FFF4EC; }
.buyer-box { display:grid; gap:8px; margin-top:10px; }
@media (min-width: 641px) { .pay-methods { grid-template-columns:repeat(4, 1fr); } }

/* 홈 첫 화면 대표 이미지 (노트북·휴대폰) */
.hero.hero-photo { background-color: #03132B; background-image: none; }
.hero-visual { display: block; width: 100%; max-width: 760px; height: auto; margin: 4px 0 4px; border-radius: 12px; }
@media (min-width: 1200px) {
  /* 넓은 화면: 이미지를 오른쪽 배경으로, 왼쪽은 글자 자리 */
  .hero.hero-photo {
    background-image:
      linear-gradient(90deg, #03132B 0%, #03132B 22%, rgba(3,19,43,.6) 36%, rgba(3,19,43,0) 50%),
      url('/hero-main.jpg');
    background-size: auto, auto 100%;
    background-position: 0 0, right -60px center;
    background-repeat: no-repeat;
  }
  .hero.hero-photo .hero-inner { min-height: 440px; padding-bottom: 90px; }
  .hero-visual { display: none; }
}

/* ------------------------------------------------------------------
   실무자료(docs) 검색창·분류 버튼 (10/13 전체점검 — 스타일 누락 보완)
   ------------------------------------------------------------------ */
.docs-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.docs-search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.docs-search-box input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26, 70, 112, .15);
}
.docs-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.docs-cat-btn {
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.docs-cat-btn:hover { border-color: var(--navy-700); }
.docs-cat-btn.is-active {
  color: var(--white);
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.docs-cat-btn-app { color: var(--orange-dark); border-color: var(--orange); }
.docs-cat-btn-app.is-active { color: var(--white); background: var(--orange); border-color: var(--orange); }
.docs-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  background: var(--gray-50);
  border-radius: var(--radius);
}
.docs-webapp-section { margin-top: 48px; }
@media (max-width: 600px) {
  /* 휴대폰: 분류 버튼은 한 줄로 옆으로 밀어서 보기 */
  .docs-cat-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .docs-cat-nav::-webkit-scrollbar { display: none; }
  .docs-cat-btn { font-size: 13px; padding: 8px 12px; }

  /* 개인정보처리방침 표: 휴대폰 화면 밖으로 넘치지 않게 */
  .legal-table { font-size: 13px; }
  .legal-table th,
  .legal-table td { padding: 8px 6px; overflow-wrap: anywhere; }
  .legal-table th { white-space: normal; word-break: keep-all; }
  .legal-table tr > *:first-child { word-break: keep-all; min-width: 4.5em; }
}
