:root {
  color-scheme: light;
  --black: #111111;
  --muted: #5d5d5d;
  --card: #f3f3f3;
  --line: #d6d6d6;
  --white: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  word-break: keep-all;
}

a { color: inherit; }

.wrap {
  width: min(100% - 40px, 560px);
  margin-inline: auto;
}

.site-header { padding-block: 22px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.p-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--black);
  border-radius: 14px;
  background: var(--white);
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
}

.hero { padding-block: 54px 72px; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-weight: 800; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(36px, 10vw, 54px); line-height: 1.22; letter-spacing: -.04em; }
h2 { margin-bottom: 22px; font-size: 30px; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 21px; line-height: 1.45; }
.lead { margin-bottom: 34px; font-size: 21px; line-height: 1.65; }

.primary-button, .secondary-button {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border: 2px solid var(--black);
  border-radius: 12px;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button { width: 100%; background: var(--black); color: var(--white); }
.secondary-button { width: 100%; background: var(--white); color: var(--black); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.home-actions { display: grid; gap: 18px; margin-top: 34px; }
.home-action { padding: 24px; border: 2px solid var(--black); border-radius: 16px; }
.home-action h2 { margin-bottom: 8px; font-size: 25px; }
.home-action p { margin-bottom: 20px; }

:focus-visible { outline: 4px solid #2176ff; outline-offset: 3px; }
.supporting { margin: 18px 0 0; color: var(--muted); font-size: 16px; text-align: center; }
.section { padding-block: 60px; }

.card-list { display: grid; gap: 14px; }
.card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 16px; background: var(--card); }
.card-number { display: grid; flex: 0 0 42px; height: 42px; place-items: center; border: 2px solid var(--black); border-radius: 50%; font-weight: 900; }
.safety { margin-bottom: 70px; border: 2px solid var(--black); border-radius: 18px; padding: 28px; }
.safety p { margin: 0; font-size: 20px; font-weight: 700; }

.page-head { padding-block: 42px 28px; }
.page-head h1 { font-size: clamp(34px, 9vw, 48px); }
.page-head .lead { margin-bottom: 0; }
.form-card, .notice-card { padding: 24px; border-radius: 16px; background: var(--card); }
.field { margin-bottom: 24px; }
label { display: block; margin-bottom: 8px; font-weight: 900; }
input {
  width: 100%;
  min-height: 58px;
  padding: 13px 14px;
  border: 2px solid #777;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font: inherit;
}
input[aria-invalid="true"] { border-color: #b00020; }
.error { min-height: 29px; margin: -10px 0 14px; color: #a00018; font-weight: 700; }
.notice-card { margin-block: 22px 60px; }
.notice-card p:last-child { margin-bottom: 0; }
.result { display: none; margin-top: 24px; padding: 22px; border: 2px solid var(--black); border-radius: 14px; background: var(--white); }
.result.is-visible { display: block; }
.request-link { width: 100%; min-height: 126px; padding: 12px; border: 2px solid #777; border-radius: 10px; background: var(--white); color: var(--black); font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; word-break: break-all; }
.request-actions { display: grid; gap: 12px; margin-top: 16px; }
.copy-status { min-height: 52px; margin: 10px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.complete-page { padding-block: 64px; text-align: center; }
.complete-page h1 { font-size: clamp(34px, 9vw, 48px); }
.complete-actions { display: grid; gap: 12px; margin-top: 30px; }
.open-port-help { min-height: 74px; margin-top: 22px; color: var(--muted); font-weight: 700; white-space: pre-line; }
.help-page { padding-bottom: 64px; }
.help-prerequisite { display: grid; gap: 12px; }
.help-prerequisite p { margin: 0; }
.back-link { display: inline-block; margin-top: 24px; font-weight: 800; }

.privacy-copy { padding-bottom: 70px; }
.privacy-copy section { padding: 22px 0; border-top: 1px solid var(--line); }
.privacy-copy h2 { margin-bottom: 10px; font-size: 24px; }
.privacy-copy p { margin-bottom: 0; }

.site-footer { padding-block: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; }
.site-footer nav a { font-weight: 800; }
.site-footer p { margin-bottom: 0; }

@media (min-width: 720px) {
  .hero { padding-block: 76px 94px; }
  .section { padding-block: 74px; }
  .form-card { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
