/* FileBingo 사이트 — 공통 스타일 */

@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/Pretendard-Regular.subset.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/Pretendard-Medium.subset.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/Pretendard-SemiBold.subset.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/Pretendard-Bold.subset.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
/* 800(ExtraBold)은 첫 화면만 쓴다 — home.css 에 있다. 다른 화면의 800 은 그대로 Bold 로 그려진다. */

:root {
  --ink: #16181D;
  --ink-2: #3A3F4A;
  --ink-3: #4A505C;
  --muted: #5C6270;
  --line: #E4E7EC;
  --line-2: #D5DAE1;
  --field: #8A919E;
  --soft: #F7F8FA;
  --page: #F3F4F6;
  --blue: #2F6FEB;
  --blue-dark: #1F55C4;
  --blue-soft: #DCE9FD;
  --yellow: #FFD24D;
  --navy: #161D2A;
  --danger: #B42318;
  --radius: 16px;
  --font: 'Pretendard', 'Segoe UI', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.page-plain { background: #FFFFFF; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
img, svg { flex: none; }
button, input, textarea, select { font: inherit; color: inherit; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: #FFFFFF; color: var(--ink); font-weight: 700;
  box-shadow: 0 0 0 2px var(--blue);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; }
.mono { font-family: var(--mono); }

/* ---------- 머리글 ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.site-header:not(.home-header) .brand { min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.site-nav a.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; padding: 0 4px; }
.site-nav .btn-sm { min-height: 44px; }
.site-nav a.nav-link:hover { color: var(--blue); }
.site-nav a.nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- 본문 틀 ---------- */
.site-main { flex: 1; width: 100%; }
.wrap { width: 100%; margin: 0 auto; padding: 40px 16px 72px; }
.wrap-buy { max-width: 960px; }
.wrap-narrow { max-width: 780px; }
.wrap-doc { max-width: 820px; }
.wrap-xs { max-width: 480px; }
@media (min-width: 640px) {
  .wrap { padding: 56px 24px 88px; }
}

.page-head { margin-bottom: 24px; }
.page-title { font-size: clamp(28px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.page-title-sm { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.page-sub { margin-top: 8px; max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px #E1E5EB, 0 18px 40px -30px rgba(22, 24, 29, 0.4);
}
.card-pad { padding: 26px 20px 28px; }
@media (min-width: 640px) { .card-pad { padding: 30px 32px 32px; } }

.card-biz {
  margin: 0 20px; padding: 14px 0 20px;
  border-top: 1px solid #EEF0F3;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
@media (min-width: 640px) { .card-biz { margin: 0 28px; } }

/* ---------- 단추 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-outline:hover { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px #B9C0CB; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F5C531; color: var(--ink); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: #912018; color: #FFFFFF; }
.btn-danger-outline { background: #FFFFFF; color: var(--danger); box-shadow: inset 0 0 0 1.5px #F0B8B2; }
.btn-danger-outline:hover { background: #FFF5F4; color: #912018; box-shadow: inset 0 0 0 1.5px #E58F86; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.btn-primary:disabled:hover { background: var(--blue); }
.btn-outline:disabled { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); opacity: 1; background: #FFFFFF; }

.link-btn {
  padding: 0; border: 0; background: none;
  color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.link-btn:hover { color: var(--blue-dark); }
.link-strong { font-size: 15px; font-weight: 700; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 입력 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 800; color: var(--ink); }
.field-hint { font-size: 13px; line-height: 1.55; color: var(--muted); }
.field-error { font-size: 13.5px; line-height: 1.5; color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 0; border-radius: 10px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--field);
  font-size: 16px; color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.input::placeholder { color: #737A87; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px var(--blue-soft); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--danger), 0 0 0 4px #FBE0DD; }

/* 메일 오타 제안 — '혹시 …@naver.com 인가요?' */
.email-suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  padding: 10px 12px 10px 14px; border-radius: 10px;
  background: #FFF6D6; box-shadow: inset 0 0 0 1px #F0D57A;
  font-size: 14px; line-height: 1.55; color: #5A4500;
}
.email-suggest p { flex: 1 1 100%; }
.email-suggest b { color: var(--ink); font-weight: 800; }
.email-suggest .btn { min-height: 44px; }
.email-suggest .link-btn { min-height: 44px; font-size: 14px; color: #5A4500; }

/* 체크 상자 — 진짜 input 을 상자 위에 겹쳐 둔다 */
.check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.check input {
  position: absolute; left: 0; top: 1px; z-index: 1;
  width: 20px; height: 20px; margin: 0;
  opacity: 0; cursor: pointer;
}
.check .box {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--field);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
.check .box svg { opacity: 0; }
.check input:checked + .box { background: var(--blue); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check label { cursor: pointer; }
.check-all { color: var(--ink); font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.check-text a { white-space: nowrap; font-weight: 600; }

/* ---------- 알림 ---------- */
.banner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.55;
}
.banner strong { font-weight: 800; }
.banner-error { background: #FDEDEC; color: #8A1C14; box-shadow: inset 0 0 0 1px #F4C7C3; }
.banner-ok { background: #E8F5EC; color: #14532D; box-shadow: inset 0 0 0 1px #BFE3CB; }
.banner-info { background: #EEF4FE; color: #1E3A8A; box-shadow: inset 0 0 0 1px #CFDDFB; }
.banner a { color: inherit; font-weight: 700; }
.alert-slot:empty { display: none; }
.alert-slot { margin-bottom: 18px; }

.notice {
  padding: 14px 16px; border-radius: 12px;
  background: #FFF6D6; color: #5A4500;
  box-shadow: inset 0 0 0 1px #F0D57A;
  font-size: 15px; font-weight: 700;
}

/* 복사 알림 */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #FFFFFF;
  font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 무료로 받기 화면 ---------- */
.buy-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 20px; }
@media (min-width: 820px) {
  .buy-grid { grid-template-columns: 290px 1fr; gap: 26px; padding: 26px 28px 28px; }
  .product { align-self: start; }
}
.product {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: 14px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
}
.product-head { display: flex; align-items: center; gap: 10px; }
.product-name { font-size: 19px; font-weight: 800; }
.product-edition { font-size: 13px; color: var(--muted); }
.price-big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.checklist { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.checklist li { display: flex; align-items: flex-start; gap: 8px; }
.checklist svg { margin-top: 3px; }

.buy-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.consent {
  margin: 0; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border: 0; border-radius: 12px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
}
.consent.is-invalid { box-shadow: inset 0 0 0 2px var(--danger); }

/* 같은 인터넷 주소(IP)의 받기 상한 — 확인 번호와 문의하기를 눈에 띄게 */
.limit-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 18px; border-radius: 14px;
  background: #FFF4E5; box-shadow: inset 0 0 0 1.5px #F2C27B;
}
.limit-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: #6B3F00; }
.limit-text { font-size: 14.5px; line-height: 1.65; color: #5C3800; }
.limit-code { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: #5C3800; }
.limit-code b { font-size: 16px; letter-spacing: 0.04em; color: var(--ink); }
.limit-box .btn { margin-top: 4px; }

/* ---------- 받은 뒤 ---------- */
.done { display: flex; flex-direction: column; gap: 20px; }
.done-head { display: flex; align-items: center; gap: 14px; }
.done-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.done-title:focus { outline: none; }
.done-sub { font-size: 14px; color: var(--muted); }
/* 내려받기 링크는 메일로만(10-24) — 보낸 주소를 크게 보여 오타를 바로 알게 */
.mail-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: 14px;
  background: #FFFBEA; box-shadow: inset 0 0 0 1.5px #F0D57A;
}
.mail-to small { display: block; font-size: 12.5px; font-weight: 800; color: #5A4500; }
.mail-to b { display: block; font-size: clamp(19px, 5vw, 24px); font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.mail-text { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.mail-help {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.mail-help > .alert-slot { align-self: stretch; margin-bottom: 0; }
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.steps li { padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; }
.steps b { display: block; font-size: 13px; color: var(--blue); }
.warn-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: #FFF4E5; box-shadow: inset 0 0 0 1px #F7D9A8;
  font-size: 14px; line-height: 1.6; color: #7A4B00;
}
.warn-box svg { margin-top: 1px; }
.warn-box b { color: #5C3800; }
.warn-box .warn-title { font-size: 15.5px; font-weight: 800; color: #6B3F00; }

/* ---------- 무료로 받기 ---------- */
/* 체험 · 후기 1년 안내 */
.offer-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px 18px; border-radius: 14px;
  background: #EEF4FE; box-shadow: inset 0 0 0 1px #CFDDFB;
  font-size: 14.5px; line-height: 1.6; color: #1E3A8A;
}
.offer-box b { font-size: 16px; color: #16306E; }
.offer-box .btn { margin-top: 6px; }
.note-soft {
  padding: 12px 14px; border-radius: 12px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}

/* ---------- 후기 ---------- */
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; letter-spacing: 0; }
.stars .on { color: #E8A100; }
.stars .off { color: #D5DAE1; }
/* 별점 고르기 — 진짜 라디오 단추를 별 위에 겹쳐 둔다(화살표 키로도 고른다) */
.star-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px; border-radius: 12px; }
/* 평균 별점 — 4.7 이면 별 네 개 반 남짓만 칠한다(반올림한 다섯 개로 부풀리지 않게) */
.stars-frac { position: relative; display: inline-block; font-size: 20px; line-height: 1; color: #D5DAE1; white-space: nowrap; }
.stars-frac > span { position: absolute; left: 0; top: 0; overflow: hidden; color: #E8A100; white-space: nowrap; }
.star-pick.is-invalid { box-shadow: inset 0 0 0 1.5px var(--danger); }
.star-opt { position: relative; display: inline-flex; }
.star-opt input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.star-opt .star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 32px; line-height: 1; color: #D5DAE1;
  transition: color 0.12s ease;
}
.star-opt.is-on .star { color: #E8A100; }
.star-opt input:focus-visible + .star { outline: 2px solid var(--blue); outline-offset: -2px; }
.star-pick-text { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rv { display: flex; flex-direction: column; gap: 16px; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.rv-avg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.rv-avg-n { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rv-avg .stars { font-size: 20px; }
.rv-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rv-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.rv-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.rv-name { font-weight: 800; color: var(--ink); }
.rv-date { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-body { font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; }

/* ---------- 상태 표시 ---------- */
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip-ok { background: #DDF2E4; color: #166534; }
.chip-off { background: #EEF0F3; color: var(--ink-2); }
.chip-warn { background: #FDE7E7; color: #9B1C1C; }
.chip-info { background: var(--blue-soft); color: #1E4FB8; }
.chip-dark { background: var(--ink); color: #FFFFFF; }
.chip-sm { height: 22px; padding: 0 8px; font-size: 12px; }

/* ---------- 주문 조회 ---------- */
.order { display: flex; flex-direction: column; gap: 18px; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) {
  .lookup-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; }
  .lookup-form .btn { margin-top: 26px; min-height: 48px; }
}
.lookup-form .field-label { font-size: 13px; }
.ord-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .ord-card { padding: 20px; } }
.ord-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ord-title-wrap { flex: 1 1 200px; min-width: 0; }
.ord-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ord-title:focus { outline: none; }
.ord-meta { font-size: 13px; color: var(--muted); }
.ord-action {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--soft);
}
.ord-action .btn { flex: none; }
.ord-action-note { flex: 1 1 240px; min-width: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.ord-note { font-size: 14px; line-height: 1.55; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.ord-foot { font-size: 13px; color: var(--muted); }
/* 사용 기간 */
.ord-plan { margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.55; }
.ord-plan dt { color: var(--muted); }
.ord-plan dd { margin: 0; min-width: 0; }
.ord-plan a { font-weight: 700; }

/* ---------- 문의하기 ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.req { color: var(--danger); }
.field-label .opt { font-weight: 600; color: var(--muted); }
.label-row { display: flex; align-items: baseline; gap: 10px; }
.count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.textarea {
  display: block; width: 100%; min-height: 168px; padding: 12px 14px;
  border: 0; border-radius: 10px; resize: vertical;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--field);
  font-size: 16px; line-height: 1.6; color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.textarea::placeholder { color: #737A87; }
.textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px var(--blue-soft); }
.textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--danger), 0 0 0 4px #FBE0DD; }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-opt { position: relative; display: inline-flex; }
.choice-opt input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 10px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.choice-opt:hover input:not(:checked) + span { background: var(--soft); }
.choice-opt input:checked + span { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.choice-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice.is-invalid .choice-opt span { box-shadow: inset 0 0 0 1.5px var(--danger); }
.check-solo { padding: 2px 0; }
.check-solo.is-invalid .box { box-shadow: inset 0 0 0 2px var(--danger); }
/* 사람 눈에는 안 보이는 자동 입력 막이 칸 — display: none 이 아니라 화면 밖으로 */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 4px 0; }
.sent-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.sent-title:focus { outline: none; }
.sent-text { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 관리자 ---------- */
.adm-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; }
.adm-brand:hover { color: var(--ink); }
.adm-brand .adm-sub { font-size: 15px; font-weight: 600; color: var(--muted); }
.adm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--muted); }
.adm-who .btn-sm { min-height: 44px; }
@media (max-width: 480px) { .adm-who > span { flex-basis: 100%; } } /* 좁은 화면 — 글은 한 줄, 로그아웃 단추 둘은 다음 줄에 나란히 */
.wrap-admin { max-width: 1200px; }
.wrap.wrap-admin { padding: 28px clamp(16px, 4vw, 40px) 72px; } /* 머리글 글자 줄과 맞춘다 */
.adm { display: flex; flex-direction: column; gap: 14px; }
.adm-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.adm-tab[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.adm-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 800;
}
.adm-count-plain { font-size: 13.5px; font-weight: 700; opacity: 0.85; }
.adm-flash {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: #E9F7EF; color: #14532D; font-size: 14px; font-weight: 700;
}
.adm-flash:empty { display: none; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .adm-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.adm-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.adm-item {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 12px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  text-align: left; cursor: pointer; color: var(--ink);
}
.adm-item:hover { background: #FFFFFF; }
.adm-item[aria-current="true"] { background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--blue); }
.adm-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; }
.adm-item-id { font-family: var(--mono); color: var(--muted); }
.adm-item-at { margin-left: auto; color: var(--muted); }
.adm-item-preview {
  font-size: 14px; font-weight: 700; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.adm-item-email { font-size: 12.5px; color: var(--muted); }
.adm-empty { padding: 24px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; color: var(--muted); text-align: center; }
.adm-detail {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 240px;
  padding: 18px; border-radius: 14px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  scroll-margin-top: 12px;
}
@media (min-width: 900px) { .adm-detail { min-height: 600px; } }
.adm-detail-empty { margin: auto; padding: 40px 0; font-size: 14px; color: var(--muted); text-align: center; }
.adm-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-detail-id { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.adm-detail-id:focus { outline: none; }
.adm-detail-at { font-size: 13px; color: var(--muted); }
.adm-dl { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; min-width: 0; }
.adm-order-state { color: var(--blue-dark); font-weight: 700; }
.adm-body {
  padding: 14px 16px; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 1.65; white-space: pre-wrap;
}
.adm-tpls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.adm-tpls .btn { min-height: 44px; padding: 0 12px; font-size: 13.5px; }
.adm-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.adm-send-note { flex: 1 1 240px; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.adm-answer {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: 12px;
  background: #E9F7EF; box-shadow: inset 0 0 0 1px #BFE6CC;
}
.adm-answer-head { font-size: 13px; font-weight: 800; color: #14532D; }
.adm-answer-text { font-size: 14.5px; line-height: 1.65; white-space: pre-wrap; }
.adm-answer.is-failed { background: #FDEDEC; box-shadow: inset 0 0 0 1px #F4C7C3; }
.adm-answer.is-failed .adm-answer-head { color: #8A1C14; }
.adm-answer .btn { align-self: flex-start; margin-top: 4px; }
.adm-login { display: flex; flex-direction: column; gap: 14px; }

/* 관리자 메뉴(주문 · 문의) — 사이트 메뉴처럼 지금 화면은 노란 밑줄 */
.adm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-right: auto; font-size: 15px; font-weight: 700; }
.adm-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
@media (max-width: 360px) { .adm-nav { column-gap: 4px; } } /* 아주 좁은 폰 — '주 / 문' 처럼 글자가 쪼개지지 않게 */
.adm-nav a:hover { color: var(--blue); }
.adm-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* 주문 관리 */
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.adm-stat-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.adm-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.adm-stat-sub { font-size: 12.5px; color: var(--muted); }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.adm-search { display: flex; gap: 8px; flex: 1 1 300px; max-width: 440px; margin-left: auto; }
.adm-search .input { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; font-size: 15px; }
.adm-search .btn { flex: none; }
.adm-found { font-size: 13.5px; color: var(--muted); }
@media (min-width: 900px) { .adm-grid-orders { grid-template-columns: 340px minmax(0, 1fr); } }
.adm-item-main { font-size: 14px; font-weight: 700; line-height: 1.45; }
.adm-more { margin-top: 8px; }
.adm-copy { margin-left: auto; }
.adm-dl-wide {
  grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.55;
}
.adm-sec { display: flex; flex-direction: column; gap: 6px; }
.adm-sec-title { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.adm-rel, .adm-log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.55; }
.adm-rel a { font-weight: 700; }
.adm-log li { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.adm-log-at { color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-act { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-act-note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.adm-confirm {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.adm-confirm.is-danger { background: #FFF7F6; box-shadow: inset 0 0 0 1.5px #F4C7C3; }
.adm-confirm-title { font-size: 15px; font-weight: 800; }
.adm-confirm.is-danger .adm-confirm-title { color: #8A1C14; }
.adm-confirm-text { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.adm-confirm .field-label { margin-top: 4px; font-size: 13px; }
.adm-confirm .input { height: 44px; font-size: 15px; }
.adm-confirm-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.adm-stats-sub { margin-top: -4px; }
.adm-item .stars { font-size: 13px; }
.adm-avg { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.adm-line { font-size: 13.5px; line-height: 1.55; }
.adm-line a { font-weight: 700; }
.adm-detail-title { font-size: 15px; font-weight: 800; }
.adm-detail-title:focus { outline: none; }

/* 받기 상한 — 같은 IP 무료로 받기 상한 · 기관 확인 · 풀어 주기 */
.lm-form { display: flex; flex-direction: column; gap: 12px; }
.lm-group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0; padding: 12px 14px 14px; border: 0; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.lm-group legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.lm-field { display: flex; flex-direction: column; gap: 4px; min-width: 120px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lm-field .input { width: 140px; height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); }
.lm-field small { font-size: 12px; font-weight: 600; color: var(--muted); }
.lm-check { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lm-check input { width: 18px; height: 18px; }
.lm-check small { font-size: 12px; color: var(--muted); }
.lm-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lm-side .adm-empty { padding: 10px 12px; text-align: left; font-size: 13px; }
.lm-side .st-card-title { margin-top: 6px; }
.lm-find { max-width: none; margin-left: 0; flex: none; }
.lm-grants { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.lm-grants .link-btn { font-size: 13.5px; }
.lm-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.lm-custom .lm-field .input { width: 120px; }
.lm-custom .lm-field:last-of-type .input { width: 220px; }

/* 방문 통계 — Cloudflare 방문 통계 + 우리 주문 기록(무료로 받음 · 유입) */
.st-updated { margin-left: auto; }
.st-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.st-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.st-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.st-legend { display: flex; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.st-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.st-key + .st-key, .st-legend .st-key-dl { margin-left: 8px; }
.st-key-visits, .st-bar-visits { background: #BFD3F7; fill: #BFD3F7; }
.st-key-dl, .st-bar-dl { background: var(--blue); fill: var(--blue); }
.st-chart { min-height: 120px; }
.st-chart svg { display: block; width: 100%; height: 220px; }
.st-axis { stroke: var(--line-2); stroke-width: 1; }
.st-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-max { margin: 0 0 4px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.st-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-rank-sub { padding-top: 12px; border-top: 1px solid var(--line); }
.st-rank-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.st-rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.st-rank-n { flex: none; font-variant-numeric: tabular-nums; }
.st-rank-bar { display: block; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.st-rank-fill { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.st-rank-empty { font-size: 13.5px; color: var(--muted); }
.st-note { font-size: 13px; line-height: 1.6; color: var(--muted); }
/* 기관별 — 표는 넓으면 이 칸 안에서만 옆으로 밀린다(화면 전체가 밀리지 않게) */
.st-org-sum { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-org-tabs .adm-tab { min-height: 40px; padding: 0 14px; font-size: 14px; }
.st-org-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.st-org-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.st-org-table th { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: right; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.st-org-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: top; }
.st-org-table th:first-child, .st-org-table td:first-child { text-align: left; white-space: normal; width: 44%; }
.st-org-table tbody tr:last-child td { border-bottom: 0; }
.st-org-name { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.st-org-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.st-org-sub a { color: var(--blue); font-weight: 600; }
.st-org-new { color: var(--blue); font-weight: 700; }
.st-org-empty td { padding: 14px 10px; text-align: left; color: var(--muted); white-space: normal; }
.st-org-more { font-size: 13px; color: var(--muted); }

/* ---------- 문서(약관 자리) ---------- */
.doc { display: flex; flex-direction: column; gap: 22px; }
.doc section { display: flex; flex-direction: column; gap: 8px; }
.doc h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.todo {
  padding: 10px 14px; border-radius: 10px;
  background: #FFFBEA; color: #5A4500;
  border: 1.5px dashed #C9A227;
  font-size: 14px; font-weight: 600;
}
.doc-meta { font-size: 14px; color: var(--muted); }
.doc-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.doc-sublist { margin: 4px 0 0; padding-left: 22px; list-style-type: hangul; display: flex; flex-direction: column; gap: 2px; }
.doc section > p:not(.todo) { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 첫 화면(임시) · 404 ---------- */
.hero {
  max-width: 860px; margin: 0 auto;
  padding: 72px 16px 96px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
@media (min-width: 640px) { .hero { padding: 104px 24px 128px; } }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); letter-spacing: 0.02em; }
.hero-title { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.hero-title-sm { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
.hl { position: relative; display: inline-block; }
.hl::before {
  content: ''; position: absolute;
  left: -0.04em; right: -0.04em; top: 0.62em; height: 0.34em;
  background: var(--yellow);
}
.hl > span { position: relative; }
.hero-sub { max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--ink-3); }
.hero-meta { font-size: 13.5px; color: var(--muted); }
.hero .btn-row { justify-content: center; margin-top: 8px; }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--navy); color: #A9B5C8; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 40px) 48px;
  display: flex; flex-direction: column; gap: 20px;
  font-size: 14px;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: 18px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
/* 첫 화면 밖 바닥글 — 손가락으로 누르기 좋게 44px (첫 화면 바닥글은 home.css 가 맡는다) */
.site-footer:not(.home-footer) .footer-nav { gap: 0 22px; }
.site-footer:not(.home-footer) .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: #C9D2E0; }
.site-footer a:hover { color: #FFFFFF; }
.footer-biz { padding-top: 18px; border-top: 1px solid #2C3A52; font-size: 12.5px; line-height: 1.7; color: #A9B5C8; }
.footer-note { font-size: 12.5px; line-height: 1.7; color: #8E9BB0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
