/* ═══════════════════════════════════════════════════
   묵독 - 랜딩 페이지
   디자인 규칙
     · 라디우스 0. 픽셀 그리드를 깨지 않는다.
     · 그림자는 blur 0의 하드 섀도우만.
     · 간격은 4px 배수.
     · 강조색은 앰버 하나. 페이지 전체에서 바꾸지 않는다.
   ═══════════════════════════════════════════════════ */

/* ── 토큰: 기본은 밤 ─────────────────────────────── */
:root {
  color-scheme: dark;

  --ink:        #14151f;
  --ink-2:      #1b1d29;
  --ink-3:      #232636;
  --line:       #333852;
  --line-soft:  #272b3d;

  --text:       #e9e7e0;
  --text-2:     #a7adc2;
  --text-3:     #6f7590;

  --accent:     #f2a93b;
  --accent-ink: #f2a93b;
  --on-accent:  #14151f;
  --accent-dim: #7a5620;

  --shadow:     #0a0b12;
  --sel:        rgba(242 169 59 / .26);

  --u: 4px;
  --wrap: 1180px;
  --nav-h: 64px;

  --pixel: "Galmuri11", "Galmuri9", "DungGeunMo", monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* ── 토큰: 아침 ──────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;

  --ink:        #eceae4;
  --ink-2:      #f5f3ee;
  --ink-3:      #e2dfd6;
  --line:       #c3bfb2;
  --line-soft:  #d8d4c9;

  --text:       #1a1b22;
  --text-2:     #4e5160;
  --text-3:     #7b7f90;

  --accent:     #f2a93b;
  --accent-ink: #8f5808;
  --on-accent:  #1a1b22;
  --accent-dim: #d9b98a;

  --shadow:     #b9b4a6;
  --sel:        rgba(242 169 59 / .38);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    color-scheme: light;
    --ink: #eceae4; --ink-2: #f5f3ee; --ink-3: #e2dfd6;
    --line: #c3bfb2; --line-soft: #d8d4c9;
    --text: #1a1b22; --text-2: #4e5160; --text-3: #7b7f90;
    --accent-ink: #8f5808; --on-accent: #1a1b22; --accent-dim: #d9b98a;
    --shadow: #b9b4a6; --sel: rgba(242 169 59 / .38);
  }
}

/* ── 리셋 ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* 한글은 어절 단위로 끊어야 합니다.
     이게 없으면 "괜/찮습니다" 처럼 단어 한가운데가 잘립니다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection { background: var(--sel); color: var(--text); }

img, canvas { display: block; max-width: 100%; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 8px 16px; background: var(--accent); color: var(--on-accent);
  font-family: var(--pixel); transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── 타이포 ──────────────────────────────────────── */
h1, h2, h3, .pixel, .brand__name, .btn, .themebtn,
.fact b, .countdown, .panel__num b, .avatar__code, .screen__title {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.34;
}
h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.42;
}
h3 { font-size: 17px; line-height: 1.5; }

.lede { font-size: clamp(15px, 1.5vw, 18px); color: var(--text-2); max-width: 34em; }
.lede--sm { font-size: 16px; }
.sub { color: var(--text-2); max-width: 56ch; margin-top: 12px; font-size: 15px; }
.cap { color: var(--text-3); font-size: 13px; margin-top: 12px; }

/* ── 버튼 ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  padding: 14px 24px;
  font-size: 15px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer;
  transition: transform .12s steps(2), box-shadow .12s steps(2), background .15s linear;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 4px 4px 0 var(--line-soft);
}
.btn--ghost:hover { border-color: var(--text); background: var(--ink-2); }
.btn--ghost:active { box-shadow: 0 0 0 var(--line-soft); }

.btn--sm { padding: 9px 16px; font-size: 13px; box-shadow: 3px 3px 0 var(--shadow); }
.btn--lg { padding: 18px 36px; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ── 내비게이션 ──────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line-soft);
}
.nav--stuck { border-bottom-color: var(--line); }
.nav__in {
  height: 100%;
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__text { display: grid; gap: 2px; }
.brand__name { font-size: 19px; line-height: 1; }
.brand__en {
  font-family: var(--pixel); font-size: 9px; line-height: 1;
  letter-spacing: .2em; color: var(--text-3);
}
.brand__mark {
  width: 20px; height: 16px; flex: none;
  background: var(--accent);
  box-shadow: inset 9px 0 0 0 var(--ink), inset -9px 0 0 0 var(--ink),
              0 0 0 2px var(--text);
}
.nav__links { display: flex; gap: 24px; margin-right: auto; font-size: 14px; color: var(--text-2); }
.nav__links a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.themebtn {
  padding: 8px 12px; font-size: 12px;
  background: var(--ink-2); border: 2px solid var(--line);
  cursor: pointer; color: var(--text-2);
}
.themebtn:hover { color: var(--text); border-color: var(--text-3); }
.themebtn__off { display: none; }
:root[data-theme="light"] .themebtn__on { display: none; }
:root[data-theme="light"] .themebtn__off { display: inline; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .brand { margin-right: auto; }
}

/* ── 히어로 ──────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.hero__in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
  display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* 화면 프레임 */
.screen {
  border: 2px solid var(--text);
  background: var(--ink-2);
  box-shadow: 8px 8px 0 var(--shadow);
}
.screen__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 12px;
  border-bottom: 2px solid var(--text);
  background: var(--ink-3);
}
.screen__title { font-size: 12px; }
.screen__meta { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.screen canvas { width: 100%; height: auto; display: block; }
.screen--cam { max-width: 420px; }

/* 조작 가능한 맵 */
.stage { position: relative; }
.stage canvas { cursor: pointer; outline-offset: -4px; }
.stage canvas:focus-visible { outline: 3px solid var(--accent); }
.stage__hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  padding: 6px 14px; white-space: nowrap;
  font-family: var(--pixel); font-size: 11px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--text);
  opacity: 0; transition: opacity .2s linear;
  pointer-events: none;
}
.stage__hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stage__hint { transition: none; } }
.cap--center { text-align: center; }

/* 이동 버튼. 키보드 포커스가 어긋나도 이건 항상 먹습니다 */
.ctrl { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.dpad {
  flex: none;
  display: grid; gap: 3px;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(2, 30px);
  grid-template-areas: ". u ." "l d r";
}
.dpad button {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
  background: var(--ink-2); color: var(--text-2);
  border: 2px solid var(--line); cursor: pointer;
  touch-action: none; user-select: none;
}
.dpad button:hover { color: var(--text); border-color: var(--text-3); }
.dpad button.is-down { background: var(--accent); color: var(--on-accent); border-color: var(--text); }
.ctrl__note { font-size: 12px; color: var(--text-3); line-height: 1.7; }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__stage { order: -1; }
}

/* ── 숫자 밴드 ───────────────────────────────────── */
.facts { border-block: 2px solid var(--line-soft); background: var(--ink-2); }
.facts__in {
  max-width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 28px 24px;
  border-left: 2px solid var(--line-soft);
}
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: clamp(26px, 3.2vw, 38px); color: var(--accent-ink); line-height: 1.2; }
.fact span { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }

@media (max-width: 720px) {
  .facts__in { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 16px; }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 2px solid var(--line-soft); }
}

/* ── 섹션 공통 여백 ──────────────────────────────── */
.session, .hands, .griddemo, .avatar, .compare, .price, .faq, .apply {
  padding-block: clamp(64px, 8vw, 112px);
}

/* ── 시간표 ──────────────────────────────────────── */
.clock { margin-top: 40px; }
.clock__track {
  position: relative;
  height: 56px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line-soft);
}
.clock__slot {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--s) / 24 * 100%);
  width: calc((var(--e) - var(--s)) / 24 * 100%);
  background: var(--accent);
  border-inline: 2px solid var(--text);
}
.clock__slot span {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--pixel); font-size: 12px;
  color: var(--accent-ink); white-space: nowrap;
}
.clock__slot:nth-child(2) span { bottom: calc(100% + 26px); }
.clock__now {
  position: absolute; top: -6px; bottom: -6px; width: 2px;
  background: var(--text);
  left: 0;
}
.clock__now::after {
  content: ""; position: absolute; top: -4px; left: -3px;
  width: 8px; height: 8px; background: var(--text);
}
.clock__ticks {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: 11px; color: var(--text-3);
  font-family: var(--pixel);
}

.session__grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  background: var(--line-soft);
  border: 2px solid var(--line-soft);
}
.slot { background: var(--ink); padding: 28px 24px; }
.slot h3 { color: var(--accent-ink); margin-bottom: 10px; }
.slot p { color: var(--text-2); font-size: 14px; }
.slot--live { background: var(--ink-2); }
.countdown {
  font-size: 30px !important; color: var(--text) !important;
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.slot__note { margin-top: 10px; font-size: 12px !important; color: var(--text-3) !important; }

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

/* ── 손만 나옵니다 ───────────────────────────────── */
.hands { background: var(--ink-2); border-block: 2px solid var(--line-soft); }
.hands__in {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}
.hands__copy h2 { margin-bottom: 16px; }
.hands__copy .lede { margin-bottom: 32px; }

/* 안심 항목 세 줄 */
.safe { display: grid; gap: 2px; background: var(--line-soft); border: 2px solid var(--line); }
.safe li {
  display: grid; gap: 4px;
  background: var(--ink); padding: 16px 20px 16px 40px; position: relative;
}
.safe li::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 8px; height: 8px; background: var(--accent);
}
.safe b { font-family: var(--pixel); font-weight: 400; font-size: 14px; color: var(--text); }
.safe span { font-size: 13px; color: var(--text-2); line-height: 1.6; }

@media (max-width: 860px) {
  .hands__in { grid-template-columns: 1fr; }
}

/* ── 그리드 뷰 데모 ──────────────────────────────── */
.tiles {
  margin-top: 40px;
  display: grid; gap: 2px;
  grid-template-columns: repeat(4, 1fr);
  padding: 2px;
  background: var(--line-soft);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
}
.tile { position: relative; background: var(--ink-2); }
.tile canvas { width: 100%; height: auto; }
.tile__name {
  position: absolute; left: 0; bottom: 0;
  padding: 2px 6px;
  font-family: var(--pixel); font-size: 10px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--text-2);
}
.tile--fresh { outline: 2px solid var(--accent); outline-offset: -2px; }

.tiles__bar { margin-top: 14px; }
.tiles__note { font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ── 아바타 ──────────────────────────────────────── */
.avatar { background: var(--ink-2); border-block: 2px solid var(--line-soft); }
.avatar__in {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
.avatar__copy h2 { margin-bottom: 16px; }
.avatar__copy .lede { margin-bottom: 32px; }

.picker { display: grid; gap: 2px; background: var(--line-soft); border: 2px solid var(--line); }
.prow {
  display: grid; grid-template-columns: 72px 1fr;
  align-items: center; gap: 12px;
  background: var(--ink); padding: 10px 14px;
}
.prow__label { font-family: var(--pixel); font-size: 12px; color: var(--text-3); }
.prow__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  width: 26px; height: 26px;
  border: 2px solid var(--line);
  background: var(--ink-3);
  cursor: pointer;
  padding: 0;
  transition: transform .1s steps(2);
}
.opt:hover { transform: translateY(-2px); border-color: var(--text-3); }
.opt[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--accent); }
.opt--text {
  width: auto; min-width: 26px; padding: 0 8px;
  font-family: var(--pixel); font-size: 11px; color: var(--text-2);
}
/* 머리 모양 칸. 색이 아니라 모양을 보고 골라야 하니 얼굴을 그려 넣습니다 */
.opt--head {
  width: 38px; height: 25px; padding: 0;
  background: var(--ink-3); overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
}
.opt--head canvas { width: 36px; height: 21px; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .opt { transition: none; } }

.avatar__actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.avatar__code { font-size: 12px; color: var(--text-3); letter-spacing: .08em; }

.avatar__stage { text-align: center; }
.avatar__stage canvas {
  /* 120x132 원본의 정확히 3배. 정수배라야 픽셀이 고르게 찍힙니다 */
  width: 100%; max-width: 360px; height: auto; margin-inline: auto;
  background: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow);
}

@media (max-width: 860px) {
  .avatar__in { grid-template-columns: 1fr; }
  .avatar__stage { order: -1; }
}
@media (max-width: 460px) {
  /* 좁은 화면에서도 한 줄에 여덟 칸이 들어가야 레이어가 한눈에 보입니다 */
  .prow { grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 10px; }
  .prow__opts { gap: 4px; }
  .opt { width: 24px; height: 24px; }
  .opt--text { width: auto; padding: 0 6px; }
}

/* ── 비교 ────────────────────────────────────────── */
.cmp {
  margin-top: 40px;
  display: grid; gap: 2px; grid-template-columns: 1fr 1fr;
  background: var(--line-soft); border: 2px solid var(--line);
}
.cmp__col { background: var(--ink); padding: 32px 28px; }
.cmp__col h3 { font-size: 15px; margin-bottom: 20px; color: var(--text-3); }
.cmp__col li { padding: 12px 0; font-size: 14px; color: var(--text-2); }
.cmp__col li + li { border-top: 1px solid var(--line-soft); }
.cmp__col b { color: var(--text); font-weight: 600; }

.cmp__col--us { background: var(--ink-2); }
.cmp__col--us h3 { color: var(--accent-ink); }
.cmp__col--us li { color: var(--text); }
.cmp__col--us b { color: var(--accent-ink); }

.cmp__out { margin-top: 24px; font-size: 15px; color: var(--text-2); max-width: 62ch; }

@media (max-width: 700px) { .cmp { grid-template-columns: 1fr; } }

/* ── 가격 ────────────────────────────────────────── */
.price { background: var(--ink-2); border-block: 2px solid var(--line-soft); }
.panel {
  max-width: 860px; margin-inline: auto;
  border: 2px solid var(--text);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--shadow);
}
.panel__head {
  padding: 40px 36px 32px;
  border-bottom: 2px solid var(--line);
  text-align: center;
}
.panel__kicker {
  font-family: var(--pixel); font-size: 12px;
  color: var(--on-accent); background: var(--accent);
  display: inline-block; padding: 5px 12px; margin-bottom: 20px;
}
.panel__was {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 6px;
}
.panel__was s { font-family: var(--pixel); font-size: 17px; color: var(--text-3); }
.panel__was em {
  font-style: normal; font-family: var(--pixel); font-size: 12px;
  padding: 3px 8px; background: var(--accent); color: var(--on-accent);
}
.panel__num { line-height: 1.1; }
.panel__num b { font-size: clamp(40px, 7vw, 68px); color: var(--text); }
.panel__num span { font-family: var(--pixel); font-size: 16px; color: var(--text-3); margin-left: 8px; }
.panel__cap { margin-top: 16px; font-size: 14px; color: var(--text-2); }

.panel__body { display: grid; grid-template-columns: 1fr 1fr; }
.incl { padding: 32px 36px; }
.incl + .incl { border-left: 2px solid var(--line); }
.incl h3 { font-size: 14px; color: var(--accent-ink); margin-bottom: 16px; }
.incl li { font-size: 14px; color: var(--text-2); padding: 5px 0 5px 22px; position: relative; }
.incl li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; background: var(--accent);
}
.incl--off h3 { color: var(--text-3); }
.incl--off li { color: var(--text-3); }
.incl--off li::before { background: var(--line); }
.incl__note { margin-top: 16px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

.panel__foot {
  padding: 32px 36px 40px;
  border-top: 2px solid var(--line);
  text-align: center;
}
.panel__fine { margin-top: 16px; font-size: 12px; color: var(--text-3); }

@media (max-width: 700px) {
  .panel__body { grid-template-columns: 1fr; }
  .incl + .incl { border-left: 0; border-top: 2px solid var(--line); }
  .incl, .panel__head, .panel__foot { padding-inline: 24px; }
}

/* ── FAQ ─────────────────────────────────────────── */
.acc { margin-top: 32px; max-width: 780px; border-top: 2px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer;
  font-family: var(--pixel); font-size: 15px;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none;
  width: 12px; height: 12px;
  background: var(--accent);
  box-shadow: inset 0 5px 0 var(--ink), inset 0 -5px 0 var(--ink);
  transition: transform .15s steps(3);
}
.acc details[open] summary::after { transform: rotate(90deg); background: var(--text-3); }
.acc summary:hover { color: var(--accent-ink); }
.acc details > div { padding: 0 4px 24px; }
.acc details p { font-size: 14px; color: var(--text-2); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .acc summary::after { transition: none; } }

/* ── 신청 ────────────────────────────────────────── */
.apply { background: var(--ink-2); border-top: 2px solid var(--line-soft); }
.apply__in {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.apply__copy p { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.apply__copy b { color: var(--text); font-weight: 600; }
.apply__beta {
  margin-top: 20px !important; padding: 16px 18px;
  background: var(--ink); border: 2px solid var(--line);
  font-size: 14px !important;
}
.apply__beta b { color: var(--accent-ink); }

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-inline-size: 0; }
.field label, .field legend {
  font-family: var(--pixel); font-size: 13px; color: var(--text); padding: 0;
}
.field legend em { font-style: normal; color: var(--text-3); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; padding: 14px 16px;
  background: var(--ink);
  border: 2px solid var(--line);
  color: var(--text);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { border-color: var(--accent); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #e2603f; }
.help { font-size: 12px; color: var(--text-3); }
.err { font-size: 12px; color: #ff8a68; font-weight: 600; }
:root[data-theme="light"] .err { color: #b8371a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 10px 18px;
  font-family: var(--pixel); font-size: 13px;
  background: var(--ink); border: 2px solid var(--line); color: var(--text-2);
}
.chip:hover span { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span {
  background: var(--accent); color: var(--on-accent); border-color: var(--text);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 동의 항목. 필수와 선택을 눈으로 구분되게 둡니다 */
.agree { gap: 2px; background: var(--line-soft); border: 2px solid var(--line); }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--ink); padding: 13px 16px; cursor: pointer;
  font-family: var(--sans) !important; font-size: 13px !important;
  color: var(--text-2) !important; line-height: 1.5;
}
.check:hover { color: var(--text) !important; }
.check input {
  appearance: none; flex: none; margin: 1px 0 0;
  width: 18px; height: 18px;
  background: var(--ink-2); border: 2px solid var(--line); cursor: pointer;
}
.check input:checked {
  background: var(--accent); border-color: var(--text);
  box-shadow: inset 0 0 0 3px var(--ink-2);
}
.check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check b { font-weight: 600; color: var(--accent-ink); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.agree .err { background: var(--ink); padding: 0 16px 12px; margin: 0; }

.form__msg { font-size: 13px; color: var(--accent-ink); min-height: 1.4em; }
.form__msg--err { color: #ff8a68; }
:root[data-theme="light"] .form__msg--err { color: #b8371a; }

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

/* ── 푸터 ────────────────────────────────────────── */
.foot { border-top: 2px solid var(--line-soft); padding-block: 40px; }
.foot__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.foot__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 16px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--text-3); }
.foot__links a:hover { color: var(--text); }
.foot__note { margin-left: auto; font-size: 12px; color: var(--text-3); }
@media (max-width: 700px) { .foot__note { margin-left: 0; width: 100%; } }

/* ── 스크롤 등장 ─────────────────────────────────
   .js 가 붙었을 때만 숨깁니다. 스크립트가 죽어도
   본문은 그대로 보여야 합니다.
   ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(20px); }
  html.js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
  }
}
