/* RaceBound 공용 스타일 — 세 언어 페이지가 함께 쓴다. 외부 폰트 없음.
   기기가 다크 모드여도 늘 밝은 화면으로 보인다(guide.css와 같다). 다크 모드 색을 다시 넣지 않는다 */
:root {
  --bg: #ffffff;
  --surface: #f4f6fa;
  --pale: #eef2f8;
  --ink: #1b2230;
  --muted: #586174;
  --line: #e2e6ee;
  --brand: #1b2a4a;
  --brand-2: #2e4270;
  --accent: #e0533d;
  --accent-ink: #b23a26;
  --tint: #fdece8;
  --on-brand: #ffffff;
  --maxw: 980px;
  color-scheme: only light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
}

body:lang(ko) {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.8;
  word-break: keep-all;
}

body:lang(en) { line-height: 1.7; }

/* 일본어 제목은 구절 단위로 줄바꿈 (지원하는 브라우저만). 끊기면 안 되는 구절은 .nw 로 묶는다 */
body:lang(ja) :is(h1, h2, h3, h4, p, li, dd) { word-break: auto-phrase; }
.nw { white-space: nowrap; }

a { color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand);
  text-decoration: none;
}
.wordmark svg { width: 28px; height: 28px; flex: none; }

.lang { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.lang a, .lang span { display: inline-block; padding: 2px 10px; border-radius: 999px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang span[aria-current] { background: var(--surface); color: var(--ink); font-weight: 600; }

.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; width: 100%; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero {
  background: linear-gradient(180deg, var(--pale), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-ink); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
h1 { margin: 0 0 18px; font-size: clamp(28px, 5.2vw, 42px); line-height: 1.4; color: var(--brand); text-wrap: balance; }
.lead { max-width: 46em; margin: 0 0 24px; font-size: 17px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 18px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.status { margin: 0; font-size: 14px; color: var(--muted); }

/* sections */
main section { padding: 56px 0 8px; scroll-margin-top: 16px; }
h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 27px); line-height: 1.45; color: var(--brand); }
.section-lead { max-width: 46em; margin: 0 0 24px; color: var(--muted); }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
p { margin: 0 0 12px; }

/* 숫자 카드 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
.stat { padding: 22px 22px 18px; background: var(--surface); border-radius: 14px; }
.stat .num { display: block; margin-bottom: 6px; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat p { margin: 0; font-size: 15px; color: var(--muted); }

/* 서비스 카드 */
.audience { margin: 0 0 28px; }
.audience > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.audience > h3::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--accent); flex: none; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { padding: 20px 22px; background: var(--surface); border-radius: 12px; }
.card h4 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.note { color: var(--muted); font-size: 14px; }

/* 진행 단계 */
.steps { counter-reset: step; margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}
.steps h4 { margin: 0 0 4px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* 방침 */
.policy { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.policy li { position: relative; padding: 14px 18px 14px 50px; background: var(--surface); border-radius: 12px; }
.policy li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.policy strong { color: var(--ink); }

/* 대표 */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.founder .initial { width: 64px; height: 64px; border-radius: 50%; background: var(--pale); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.founder h3 { margin-bottom: 2px; }
.founder .role { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.founder p:last-child { margin-bottom: 0; }

/* 회사 개요 */
.info { display: grid; grid-template-columns: 11em 1fr; margin: 0 0 12px; border-top: 1px solid var(--line); }
.info dt, .info dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: 15px; }
.info dd { overflow-wrap: anywhere; }

/* 문의 */
.contact { margin: 8px 0 0; padding: 32px 24px; background: var(--brand); color: var(--on-brand); border-radius: 16px; text-align: center; }
.contact h2 { color: var(--on-brand); }
.contact p { max-width: 40em; margin: 0 auto 16px; }
.contact .mail {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--on-brand);
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact .mail:hover { opacity: .9; }
.contact .note { color: inherit; opacity: .85; margin-bottom: 0; }

.sources { margin: 14px 0 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); }
.sources li { margin: 2px 0; }
.sources a { color: var(--muted); }

/* footer */
.site-footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0 0 4px; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero .wrap { padding-top: 44px; padding-bottom: 40px; }
  main section { padding-top: 44px; }
  .info { grid-template-columns: 1fr; }
  .info dt { padding-bottom: 0; border-bottom: 0; }
  .info dd { padding-top: 2px; }
  .founder { grid-template-columns: 1fr; }
  .steps li { padding-left: 58px; }
}
