:root {
  color-scheme: light;
  --navy: #162b49;
  --teal: #0f766e;
  --teal-dark: #0b5e58;
  --ink: #18212b;
  --muted: #5d6875;
  --line: #dce2e8;
  --surface: #ffffff;
  --background: #f4f7f9;
  --soft: #e9f5f3;
  --danger: #b42318;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #edf3f6 0, var(--background) 280px);
  color: var(--ink);
}

button { font: inherit; }

.page-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 28px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 4px 24px;
}

.emblem {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  padding-left: 16px;
  border-left: 1px solid #bdc8d1;
}

.brand-copy strong,
.brand-copy span { display: block; }
.brand-copy strong { font-size: 20px; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 14px; }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(22, 43, 73, .12);
}

.card-head { padding: 36px 38px 30px; border-bottom: 1px solid var(--line); }
.card-body { padding: 30px 38px; }
.card-actions { padding: 0 38px 38px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

h1 { margin: 0; font-size: clamp(25px, 5vw, 34px); line-height: 1.32; letter-spacing: -.035em; }
.lead { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }

@media (min-width: 681px) {
  h1 { font-size: 29px; white-space: nowrap; }
  .lead { font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
}

.notice {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 19px;
  border: 1px solid #b9ddd8;
  border-radius: 13px;
  background: var(--soft);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  font-size: 23px;
  font-weight: 900;
}

.notice h2 { margin: 1px 0 6px; font-size: 18px; line-height: 1.4; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.notice.is-error { border-color: #f3c2bd; background: #fff1f0; }
.notice.is-error .notice-icon { background: var(--danger); }
.notice.is-done { border-color: #9fd6ce; }

.privacy-list { margin: 22px 0 0; padding-left: 21px; color: var(--muted); font-size: 14px; line-height: 1.9; }

.primary-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}

.primary-button:hover:not(:disabled) { background: var(--teal-dark); }
.primary-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .52; }
.primary-button:focus-visible { outline: 3px solid rgba(15, 118, 110, .28); outline-offset: 3px; }

footer { padding: 18px 4px 0; color: #73808c; text-align: center; font-size: 12px; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.footer-wordmark { width: 58px; height: auto; flex: 0 0 auto; }
noscript { display: block; margin: 16px; color: var(--danger); text-align: center; }

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 720px); padding-top: 22px; }
  .site-header { margin-bottom: 16px; }
  .emblem { width: 82px; height: 82px; }
  .brand-copy { padding-left: 12px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy span { font-size: 13px; }
  .card { border-radius: 14px; }
  .card-head { padding: 28px 22px 24px; }
  .card-body { padding: 24px 22px; }
  .card-actions { padding: 0 22px 24px; }
  .notice { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
  .notice-icon { width: 40px; height: 40px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
