/* 야구메이트 공개 웹 — 3면 공유. 디자인 토큰은 mobile/src/theme/tokens.ts 계승. */
:root {
  --brand: #1f7a4d;
  --ink: #16181d;
  --muted: #6b7280;
  --surface: #f5f6f8;
  --card: #ffffff;
  --line: #e2e4e8;
  --live: #e0322d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
a { color: var(--brand); }

/* 법무 문서 */
.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  background: var(--card);
  min-height: 100vh;
}
.doc h1 { font-size: 1.6rem; line-height: 1.35; margin: 0.5rem 0 1.5rem; }
.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.doc h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--muted); }
.doc p { margin: 0.5rem 0; }
.doc ul, .doc ol { margin: 0.5rem 0; padding-left: 1.25rem; }
.doc li { margin: 0.25rem 0; }
.back { margin: 0; font-size: 0.9rem; }
.doc-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── 랜딩 페이지 (index.html) ─────────────────────────────── */
/* 추가 토큰: 어두운 필드 배경·반전 잉크. 기존 :root 는 건드리지 않는다. */
:root {
  --field-900: #08281a;   /* 야간 구장 딥 그린 */
  --field-700: #103f2a;
  --chalk: #eef3ef;        /* 라인·반전 텍스트 */
  --ink-invert: #f4f7f4;
  --muted-invert: #a8c8b6;
}

.lp {
  background: var(--card);
}

/* 히어로 ── 야간 구장 */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink-invert);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--field-700) 0%, var(--field-900) 62%, var(--field-900) 100%);
  padding: clamp(3.5rem, 12vw, 7rem) 1.4rem clamp(3rem, 9vw, 5.5rem);
}

/* 배경 장식: 파울 라인 + 다이아몬드 + 상단 글로우 */
.hero__field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__field::before {   /* 잔디 스트라이프 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 34px,
    rgba(255, 255, 255, 0.028) 34px 68px
  );
}
.hero__glow {            /* 조명 헤일로 */
  position: absolute;
  top: -34%;
  left: 50%;
  width: 78vw;
  max-width: 40rem;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand) 0%, transparent 66%);
  opacity: 0.32;
  filter: blur(6px);
}
.hero__diamond {        /* 홈플레이트 뒤 내야 다이아몬드 (초크 라인) */
  position: absolute;
  bottom: -46%;
  left: 50%;
  width: min(86vw, 30rem);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(45deg);
  border: 2px solid rgba(238, 243, 239, 0.16);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(238, 243, 239, 0.05) inset;
}

.hero__inner {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  animation: lp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.36rem 0.85rem;
  border: 1px solid rgba(238, 243, 239, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-invert);
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(224, 50, 45, 0.55);
  animation: lp-blink 2s ease-in-out infinite;
}

.hero__brand {
  margin: 0;
  font-size: clamp(3rem, 15vw, 5.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__tagline {
  margin: 1rem auto 0;
  max-width: 22rem;
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  font-weight: 700;
  color: var(--chalk);
  text-wrap: balance;
}
.hero__lead {
  margin: 0.65rem auto 0;
  max-width: 24rem;
  font-size: 0.98rem;
  color: var(--muted-invert);
  text-wrap: balance;
}

.cta {
  margin-top: 2rem;
}
.badge--soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--field-900);
  background: var(--chalk);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.badge__pulse {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--live);
  animation: lp-blink 1.6s ease-in-out infinite;
}

/* 핵심 가치 ── 스코어보드 카드 */
.values {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 8vw, 4.5rem) 1.25rem clamp(3rem, 9vw, 5rem);
  display: grid;
  gap: 1rem;
}
.value {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value::before {         /* 좌측 팀컬러 액센트 바 */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.value--live::before {
  background: var(--live);
}
.value:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 16px 34px -20px rgba(8, 40, 26, 0.55);
}
.value__num {
  flex: none;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--brand) 26%, transparent);
  letter-spacing: -0.02em;
}
.value--live .value__num {
  color: color-mix(in srgb, var(--live) 30%, transparent);
}
.value__body {
  padding-top: 0.1rem;
}
.value__title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}
.value__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.75rem;
  text-align: center;
  background: var(--surface);
}
.site-footer__brand {
  margin: 0 0 0.6rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.site-footer__sep {
  color: var(--line);
}

@media (min-width: 720px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .value {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.75rem 1.6rem;
  }
  .value__num {
    font-size: 2.4rem;
  }
  .hero__tagline {
    max-width: 30rem;
  }
  .hero__lead {
    max-width: 30rem;
  }
}

@keyframes lp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner { animation: none; }
  .eyebrow__dot,
  .badge__pulse { animation: none; }
  .value { transition: none; }
}
