/*
 * Spotlight 웹 — landing-page-design 스킬(elayadesign/ai-design-skills) 시각 규칙 적용
 * - 글꼴 한 서체: Spotlight Sans (라틴 Manrope, 한글 Pretendard를 unicode-range로 합침), 최대 Bold
 * - 글자 크기·행간은 Tailwind 단계, 텍스트는 이름 붙은 스타일(heading/title/body/button/caption)만
 * - 간격은 스페이싱 토큰만, 모서리는 Tailwind 값 + 중첩 공식, 배경은 단색(지정 다크 색)만
 * - 모션 기본 곡선 cubic-bezier(0.22,1,0.36,1), transform·opacity만 애니메이션
 */

/* ── 글꼴 ─────────────────────────────────────── */
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+00D7; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+00D7; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+00D7; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027, U+2190-2193, U+00D7; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/hangul-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/hangul-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/hangul-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3; }
@font-face { font-family: "Spotlight Sans"; src: url("/fonts/hangul-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3; }

/* ── 토큰 ─────────────────────────────────────── */
:root {
  /* 배경: 스킬 지정 다크 색만 */
  --bg-0: #000000;
  --bg-1: #181818;
  --bg-2: #1f1f1f;
  --bg-3: #272727;
  --bg-4: #313131;
  /* 글자 */
  --text: #ffffff;
  --text-muted: #9b9b9b;
  /* 브랜드 강조 (주요 버튼·포커스) */
  --accent: #ff5a1f;
  --accent-hover: #ff7a47;

  /* 스페이싱 토큰 (이 값만 사용) */
  --sp-25: 2px; --sp-50: 4px; --sp-75: 8px; --sp-100: 12px; --sp-200: 16px; --sp-300: 24px;
  --sp-400: 32px; --sp-500: 40px; --sp-600: 48px; --sp-700: 64px; --sp-800: 80px; --sp-900: 96px;

  /* 모서리 (Tailwind 값) */
  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Spotlight Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --nav-h: 64px;
}

/* ── 기본 ─────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--sp-300)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg-0); color: var(--text); font-family: var(--font); word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-lg); }
h1, h2, h3, summary { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-300); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-400); } }

/* ── 텍스트 스타일 (이름 그대로, 필요한 것만) ───────── */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

/* 히어로 제목: 다크 테마 왼쪽→오른쪽 글자 그라데이션 (배경 그라데이션은 금지, 글자에만) */
.gradient-text {
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* 글자 그라데이션은 글자 상자까지만 칠해져서, 행간이 꽉 찬 제목은 g·y 아랫부분이 잘린다 → 아래 여백 확보 */
  padding-bottom: var(--sp-75);
}

.skip { position: absolute; left: var(--sp-200); top: -100px; z-index: 50; padding: var(--sp-75) var(--sp-100); border-radius: var(--r-lg); background: var(--text); color: var(--bg-0); }
.skip:focus { top: var(--sp-200); }

/* ── 버튼 (세로 8px, 가로 12px) ──────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-100); }
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--r-full);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn[hidden] { display: none; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-quiet { background: var(--bg-3); color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--bg-0); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--bg-4); transition: text-decoration-color 300ms var(--ease); }
.text-link:hover { text-decoration-color: var(--text); }

/* ── 내비게이션: 위에서 떠 있는 반투명 막대, 내용 폭만큼 ── */
.nav-wrap { position: fixed; top: var(--sp-200); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 var(--sp-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--sp-300);
  padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-200);
  border: 1px solid var(--bg-3);
  border-radius: var(--r-full);
  background: rgb(24 24 24 / 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-75); letter-spacing: 0.24em; }
.brand img { width: 24px; height: 24px; border-radius: var(--r-lg); }
.nav-links { display: flex; gap: var(--sp-50); }
.nav-links a { display: block; padding: var(--sp-75) var(--sp-100); border-radius: var(--r-full); color: var(--text-muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-3); }

.menu-toggle { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: var(--bg-3); color: var(--text); cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: var(--r-full); background: currentColor; transition: transform 500ms var(--ease); }
.menu-toggle span:first-child { transform: translateY(-3px); }
.menu-toggle span:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 30; padding: calc(var(--nav-h) + var(--sp-600)) var(--sp-300) var(--sp-600); background: rgb(0 0 0 / 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.mobile-menu ul { display: grid; gap: var(--sp-300); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
/* 60ms 간격, 전체 400ms 안에 */
.mobile-menu.open li:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.open li:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.open li:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.open li:nth-child(5) { transition-delay: 240ms; }

@media (max-width: 767px) {
  .nav { gap: var(--sp-200); }
  .nav-links:not(.nav-links-always) { display: none; }
  .menu-toggle { display: block; }
}

/* ── 히어로: 첫 화면 높이에 맞춤 ────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + var(--sp-600)) 0 var(--sp-600); }
/* 큰 화면: 왼쪽 글·버튼, 오른쪽 결과물 카드. 작은 화면: 슬로건·소개 → 결과물 → 버튼 순서 (hero-copy는 display: contents) */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) min(420px, 42%); column-gap: var(--sp-600); row-gap: var(--sp-300); align-items: center;
  grid-template-areas: "title visual" "sub visual" "cta visual" "note visual" "proof visual";
}
.hero-copy { display: contents; }
.hero-title { grid-area: title; align-self: end; }
.hero-sub { grid-area: sub; }
.hero-copy .cta-row { grid-area: cta; }
.hero-note { grid-area: note; }
.hero-copy .proof { grid-area: proof; align-self: start; }
.hero-copy h1, .hero-sub, .hero-note { max-width: 680px; }
.proof { display: flex; flex-wrap: wrap; gap: var(--sp-400); padding-top: var(--sp-300); }
.proof div { display: grid; gap: var(--sp-25); }
.proof dt { color: var(--text); }
.hero-visual { grid-area: visual; display: grid; gap: var(--sp-300); justify-items: center; margin: 0; min-width: 0; max-width: min(100%, 420px); }

/* ── 결과물 카드 3장: 앞 카드가 천천히 바뀐다 (app.js, 모션 줄이기면 멈춤) ── */
.result-stack {
  --card-w: clamp(170px, min(calc((100svh - var(--nav-h) - 260px) * 0.5), 19vw), 280px);
  position: relative; width: calc(var(--card-w) * 1.75); height: calc(var(--card-w) * 16 / 9 + var(--sp-400));
}
.result-card {
  position: absolute; top: var(--sp-200); left: 50%; width: var(--card-w);
  border-radius: var(--r-2xl); overflow: hidden; background: var(--bg-2);
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.5);
  transition: transform 800ms var(--ease), opacity 800ms var(--ease), filter 800ms var(--ease);
}
.result-card img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.result-card[data-pos="0"] { z-index: 3; transform: translateX(-50%); }
.result-card[data-pos="1"] { z-index: 2; transform: translateX(-102%) translateY(4%) rotate(-7deg) scale(0.86); filter: brightness(0.6); }
.result-card[data-pos="2"] { z-index: 1; transform: translateX(2%) translateY(4%) rotate(7deg) scale(0.86); filter: brightness(0.6); }
.result-current { margin-top: calc(var(--sp-200) * -1); color: var(--text); }
.result-flow { max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-100); color: var(--text-muted); text-align: center; }
.flow-chip { padding: var(--sp-50) var(--sp-100); border: 1px solid var(--bg-4); border-radius: var(--r-full); color: var(--text); }
.flow-out { border-color: var(--accent); color: var(--accent); }
.result-note { flex-basis: 100%; text-wrap: balance; }

/* ── 디바이스 프레임: 바깥 rounded-3xl(24) − 간격 8 = 안쪽 rounded-2xl(16) ── */
.device { position: relative; padding: var(--sp-75); border: 1px solid var(--bg-4); border-radius: var(--r-3xl); background: var(--bg-2); }
.device img { width: 100%; aspect-ratio: 400 / 870; object-fit: cover; border-radius: var(--r-2xl); background: var(--bg-0); }
.device .island { position: absolute; z-index: 1; top: var(--sp-200); left: 50%; width: 30%; height: var(--sp-300); transform: translateX(-50%); border-radius: var(--r-full); background: var(--bg-0); }
/* 히어로 기기: 화면 높이에 맞춰 크기 조절 */
.device-hero { width: min(320px, calc((100svh - var(--nav-h) - 160px) * 0.46)); min-width: 220px; }

/* ── 태그라인: 단어별로 밝아지는 대형 문장 ───────── */
.tagline { padding: var(--sp-900) 0; }
.tagline-text { max-width: 680px; }
.tagline-text .word { color: rgb(255 255 255 / 0.3); transition: color 500ms var(--ease); }
.tagline-text .word.on { color: var(--text); }

/* ── 공통 섹션 ─────────────────────────────────── */
.section { padding: var(--sp-900) 0; }
.section .heading-3 { margin-bottom: var(--sp-500); }
.section-head { display: grid; gap: var(--sp-200); max-width: 680px; margin-bottom: var(--sp-500); }
.section-head .heading-3 { margin-bottom: 0; }

.card { padding: var(--sp-300); border: 1px solid var(--bg-3); border-radius: var(--r-2xl); background: var(--bg-1); transition: border-color 300ms var(--ease), transform 300ms var(--ease); }
.card:hover { border-color: var(--bg-4); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--sp-75); }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-200); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-200); margin-bottom: var(--sp-300); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-400); }
.steps li { display: grid; gap: var(--sp-75); align-content: start; }
.steps .device { max-width: 280px; margin-bottom: var(--sp-200); }
.step-no { color: var(--accent); }

.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-200); margin-bottom: var(--sp-200); }
.plates figure { display: grid; gap: var(--sp-100); }
.plates img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-2xl); }

/* ── FAQ ─────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-600); align-items: start; }
.faq { display: grid; gap: var(--sp-75); }
.faq details { border: 1px solid var(--bg-3); border-radius: var(--r-2xl); background: var(--bg-1); transition: border-color 300ms var(--ease); }
.faq details:hover, .faq details[open] { border-color: var(--bg-4); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-200); padding: var(--sp-200) var(--sp-300); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--text-muted); transition: transform 500ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 var(--sp-300) var(--sp-300); }

/* ── 마지막 CTA (맨 위와 같은 버튼) ──────────────── */
.final-inner { display: grid; justify-items: center; gap: var(--sp-300); padding: var(--sp-700) var(--sp-300); border: 1px solid var(--bg-3); border-radius: var(--r-3xl); background: var(--bg-1); text-align: center; }

.footer { padding: var(--sp-600) 0; border-top: 1px solid var(--bg-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--sp-200); justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-300); }
.footer-links a { color: var(--text-muted); transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--text); }

/* ── 스크롤 등장: 32px 올라오며 페이드, 한 번만 (JS가 있을 때만 숨김) ── */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ── 반응형 ──────────────────────────────────── */
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "sub" "visual" "cta" "note" "proof"; }
  .hero-title { align-self: auto; }
  .result-stack { --card-w: clamp(120px, min(160px, 38vw, calc((100svh - 480px) * 0.5)), 160px); }
  .result-flow { gap: var(--sp-75); }
  .steps { grid-template-columns: 1fr; gap: var(--sp-600); }
  .steps .device { width: min(280px, 70vw); }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .heading-1 { font-size: 48px; line-height: 48px; } /* 390px 폭에서 넘치지 않게 Heading 2 단계로 */
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .benefits { grid-template-columns: 1fr; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plates figure:first-child { grid-column: 1 / -1; }
  .section, .tagline { padding: var(--sp-700) 0; }
}

/* 아주 좁은 화면(380px 미만): 슬로건 한 줄이 끊기지 않게 Heading 3 단계로 */
@media (max-width: 379px) {
  .hero .heading-1 { font-size: 36px; line-height: 40px; }
}

/* 모션 줄이기: 움직임 대신 단순 투명도 변화, 태그라인은 처음부터 완성 상태 */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 300ms linear; }
  .tagline-text .word { color: var(--text); transition: none; }
  .mobile-menu li { transform: none; }
  .btn, .card, .menu-toggle span, .faq summary svg, .result-card { transition: none; }
}

/* ── 개인정보처리방침 문서 ─────────────────────── */
.doc-main { padding: calc(var(--nav-h) + var(--sp-700)) 0 var(--sp-700); }
.policy { max-width: 760px; margin: 0 auto; padding: 0 var(--sp-300); color: #d4d4d4; }
.policy h1 { margin-bottom: var(--sp-75); }
.policy .meta { margin-bottom: var(--sp-500); }
.policy .summary { margin-bottom: var(--sp-600); padding: var(--sp-300); border: 1px solid var(--bg-3); border-radius: var(--r-2xl); background: var(--bg-1); }
.policy .summary b { color: var(--text); }
.policy .summary ul { margin-top: var(--sp-75); padding-left: var(--sp-300); list-style: disc; }
.policy h2 { margin: var(--sp-600) 0 var(--sp-200); color: var(--text); }
.policy p, .policy li { font-size: 16px; line-height: 24px; }
.policy p + p { margin-top: var(--sp-200); }
.policy ul, .policy ol { padding-left: var(--sp-300); }
.policy ul { list-style: disc; }
.policy ol { list-style: decimal; }
.policy li { margin: var(--sp-50) 0; }
.policy b { color: var(--text); font-weight: 600; }
.policy a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.policy .table { overflow-x: auto; margin: var(--sp-200) 0; border: 1px solid var(--bg-3); border-radius: var(--r-2xl); }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: var(--sp-100) var(--sp-200); border-bottom: 1px solid var(--bg-3); }
.policy tr:last-child th, .policy tr:last-child td { border-bottom: 0; }
.policy th { color: var(--text); font-weight: 600; white-space: nowrap; background: var(--bg-1); }
.policy .toc { columns: 2; margin-bottom: var(--sp-500); }
.policy .toc a { text-decoration: none; }
.policy .toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .policy .toc { columns: 1; } }

.lost { min-height: 100svh; display: grid; place-content: center; gap: var(--sp-300); text-align: center; padding: var(--sp-300); }

/* ── 출시 알림 ─────────────────────────────────── */
.alert-dialog { width: min(480px, calc(100% - 2 * var(--sp-200))); max-height: calc(100dvh - 2 * var(--sp-200)); padding: var(--sp-300); border: 1px solid var(--bg-4); border-radius: var(--r-3xl); background: var(--bg-1); color: var(--text); overflow-y: auto; }
.alert-dialog::backdrop { background: rgb(0 0 0 / 0.7); }
.alert-form, .alert-done { display: grid; gap: var(--sp-200); }
.alert-form[hidden], .alert-done[hidden] { display: none; }
.field { display: grid; gap: var(--sp-75); }
.field input { width: 100%; padding: var(--sp-100) var(--sp-200); border: 1px solid #757575; border-radius: var(--r-xl); background: var(--bg-0); color: var(--text); font-family: inherit; }
.field input::placeholder { color: var(--text-muted); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-100); align-items: start; padding: var(--sp-50) 0; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.alert-terms { display: grid; gap: var(--sp-50); padding: var(--sp-100) var(--sp-200); border-radius: var(--r-xl); background: var(--bg-2); }
.alert-error { color: var(--accent-hover); }
.alert-error:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.policy .alert-form { max-width: 480px; margin-top: var(--sp-300); }

/* 국내 마라톤 일정 (/races/) */
.races-main { max-width: 960px; padding-top: var(--sp-500); }
.races-lead { margin: var(--sp-100) 0 var(--sp-500); }
.race-filters { display: flex; flex-wrap: wrap; gap: var(--sp-200) var(--sp-300); align-items: end; margin-bottom: var(--sp-300); }
.race-filters .field { flex: 1 1 140px; min-width: 0; max-width: 220px; }
.race-filters .field select, .race-submit-form select { width: 100%; height: 48px; padding: 0 var(--sp-500) 0 var(--sp-200); border: 1px solid var(--bg-4); border-radius: var(--r-xl); background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%239b9b9b'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right var(--sp-200) center / 16px; color: var(--text); font-family: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 300ms var(--ease); }
.race-filters .field select:hover, .race-submit-form select:hover { border-color: #5a5a5a; }
.race-filters .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--bg-4); }
.race-open-only { display: flex; align-items: center; gap: var(--sp-100); height: 48px; padding: 0 var(--sp-200); border: 1px solid var(--bg-4); border-radius: var(--r-xl); background: var(--bg-1); }
.race-open-only input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 1.5px solid #757575; border-radius: 6px; background: var(--bg-0); cursor: pointer; }
.race-open-only input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--bg-0); border-bottom: 2px solid var(--bg-0); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.race-open-only input:checked { border-color: var(--accent); background: var(--accent); }
.race-open-only input:checked::after { opacity: 1; }
.race-open-only input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.race-list { display: grid; gap: var(--sp-200); margin: var(--sp-200) 0 var(--sp-500); padding: 0; list-style: none; }
@media (min-width: 768px) { .race-list { grid-template-columns: 1fr 1fr; } }
.race { display: grid; gap: var(--sp-100); align-content: start; }
.race-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-100); }
.race-date { margin: 0; color: var(--accent); }
.race-status { padding: var(--sp-50) var(--sp-100); border-radius: var(--r-full); background: var(--bg-3); color: var(--text-muted); white-space: nowrap; }
.race-status.is-open { background: var(--accent); color: var(--bg-0); }
.race-status.is-unknown, .race-status.is-upcoming { background: transparent; color: #ffb08f; box-shadow: inset 0 0 0 1px var(--accent); }
.race.is-closed { opacity: 0.6; }
.race.is-closed:hover { opacity: 1; }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-outline:hover { background: rgba(255, 90, 31, 0.12); }
.race-name { margin: 0; }
.race-place { margin: 0; }
.race-facts { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-75) var(--sp-200); margin: var(--sp-100) 0 0; }
.race-facts dt { padding-top: 2px; }
.race-facts dd { margin: 0; }
.race-actions { display: flex; flex-wrap: wrap; gap: var(--sp-100); margin-top: var(--sp-100); }
.race-checked { margin: 0; }
.race-empty { padding: var(--sp-300) 0; }
.races-note { max-width: 720px; margin-top: var(--sp-100); }
.race-months { position: sticky; top: calc(var(--nav-h, 72px) + var(--sp-100)); z-index: 5; display: flex; gap: var(--sp-75); margin: 0 calc(var(--sp-100) * -1) var(--sp-200); padding: var(--sp-100); overflow-x: auto; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); border-radius: var(--r-xl); scrollbar-width: none; }
.race-months::-webkit-scrollbar { display: none; }
.race-month-chip { display: inline-flex; align-items: center; gap: var(--sp-75); padding: var(--sp-75) var(--sp-200); border: 1px solid var(--bg-4); border-radius: var(--r-full); background: var(--bg-1); color: var(--text); white-space: nowrap; transition: border-color 300ms var(--ease), background 300ms var(--ease); }
.race-month-chip:hover { border-color: var(--accent); }
.race-month-count { min-width: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--bg-3); color: var(--text-muted); text-align: center; }
.race-month { grid-column: 1 / -1; margin: var(--sp-300) 0 0; padding-bottom: var(--sp-75); border-bottom: 1px solid var(--bg-3); color: var(--text); scroll-margin-top: calc(var(--nav-h, 72px) + 88px); }
.race-month:first-child { margin-top: 0; }
.race-submit { margin: var(--sp-600) 0 var(--sp-300); }
.race-submit h2 { margin: 0 0 var(--sp-75); }
.race-submit-form { display: grid; gap: var(--sp-200); margin-top: var(--sp-300); }
@media (min-width: 768px) { .race-submit-form { grid-template-columns: 2fr 1fr 1fr; } .race-submit-wide { grid-column: 1 / -1; } }
.race-submit-form input { width: 100%; height: 48px; padding: 0 var(--sp-200); border: 1px solid var(--bg-4); border-radius: var(--r-xl); background: var(--bg-0); color: var(--text); font-family: inherit; color-scheme: dark; }
.race-submit-form input::placeholder { color: var(--text-muted); }
.race-submit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-200); }
.race-submit-actions p { margin: 0; color: var(--text-muted); }
