/* 카드 페이지도 랜딩과 동일 Pretendard 사용 (이전엔 미로드 → 시스템 폰트로 폴백) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* OFFCUT 공홈 — design tokens — 랜딩(main.css) 브랜드값에 정렬 (2026-05-30 일관성 패스) */
:root {
  --bg:        #0A0A0A;
  --bg-1:      #111111;
  --bg-2:      #161616;
  --bg-3:      #1C1C1C;
  --text:      #F5F5F5;
  --text-2:    rgba(245, 245, 245, 0.72);
  --text-3:    rgba(245, 245, 245, 0.55); /* 기존 #6b727b 4.04:1 대비미달 → 상향 */
  --border:    rgba(255, 255, 255, 0.10);
  --accent:        #C5F542;
  --accent-hover:  #D4FF63;
  --accent-soft:   rgba(197, 245, 66, 0.15);
  --accent-glow:   0 0 24px rgba(197, 245, 66, 0.30);
  --text-on-accent: #000000;
  --danger:    #ff4c4c;
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;  --r-xl: 18px;
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; }
/* 세로 정렬 — 카드는 가로 중앙, body 끝에 inject 되는 사업자정보(business-info.js)는
   카드 옆이 아니라 아래로 쌓이게. flex-start 라 내용 길어도 위에서 시작(잘림 방지). */
body { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 40px 20px; }

/* 키보드 포커스 링 — 전역 (마우스 클릭 시엔 표시 안 됨) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.ofcut-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.ofcut-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ofcut-logo-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-block;
  background-image: url('/로고/기본%20정방.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 로고 배경 블랙 — 전 카드 페이지 통일 (이미지 투명영역/폴백 뒤) */
  background-color: #000;
  color: var(--text-on-accent);
  text-align: center; line-height: 36px;
  font-weight: 900; font-size: 18px;
  text-indent: -9999px;
  overflow: hidden;
}
.ofcut-tag {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.1em; margin-bottom: 28px;
}

h1 {
  font-size: 24px; font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.3; margin-bottom: 8px;
}
h1 .accent { color: var(--accent); }
.subtitle { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 32px; }

.btn-primary {
  width: 100%;
  background: var(--accent); color: var(--text-on-accent);
  border: none; border-radius: var(--r-md);
  padding: 14px 16px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.18s, transform 0.1s;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--bg-3); color: var(--text-3);
  box-shadow: none; cursor: not-allowed;
}

.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; width: 100%;
}
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-msg { font-size: 13px; color: var(--text-2); text-align: center; line-height: 1.6; }
.status-success { color: var(--accent); }
.status-error {
  color: var(--danger);
  background: rgba(255,76,76,0.08);
  border: 1px solid rgba(255,76,76,0.35);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 16px;
  text-align: left; font-size: 12px;
}

.footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
  text-align: center; line-height: 1.7;
}
.footer a { color: var(--accent); text-decoration: none; }

.google-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* 약관 동의 체크박스 블록 */
.consent-block {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.consent-item {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; line-height: 1.5;
}
.consent-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid var(--text-3);
  border-radius: 4px;
  background: var(--bg-3);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.consent-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.consent-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid var(--text-on-accent);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.consent-item span {
  font-size: 12px; color: var(--text-2);
}
.consent-item a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-required {
  font-size: 11px; color: var(--text-3);
  margin-left: 1px;
}

/* ── [2026-05-28] 사업자정보 footer (business-info.js) — 카드 페이지 공통 ── */
.biz-business {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
}
.biz-business__row {
  display: flex; flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 4px;
}
.biz-business__row strong {
  color: var(--text-2);
  font-weight: 700;
}
.biz-business__row a {
  color: var(--text-3); text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.15);
}
.biz-business__row a:hover { color: var(--accent); }
.biz-business__meta { opacity: 0.7; margin-top: 4px; }

/* 카드 페이지 (auth/credits-*/terms/privacy/404/500) — 카드 바깥 자연 footer */
#biz-business-info.biz-business--standalone {
  margin: 48px auto 24px;
  padding: 18px 24px 0;
  max-width: 960px;
  width: 100%;
  border-top: 1px solid var(--border);
  background: transparent;
}
#biz-business-info.biz-business--standalone .biz-business {
  text-align: center;
}
#biz-business-info.biz-business--standalone .biz-business__row {
  justify-content: center;
}
