/* 강조색은 로고의 남색 하나만 쓴다. 금색은 로고 안에만 둔다.
   모서리는 판과 카드 20px, 그 안의 이미지 12px, 단추는 알약 모양으로 나눈다.
   글꼴은 앱과 같은 Pretendard를 사이트 안에 두어 외부 요청을 만들지 않는다.
   글자는 학생 앱과 같은 역할 이름(display, title, heading, body, label, caption)과 층(strong, subtle)으로 고른다. */

:root {
  --bg: #fbfbfc;
  --surface: #f1f3f5;
  --surface-strong: #e6e9ed;
  --text: #15181c;
  --text-muted: #59616b;
  --line: #dde1e6;
  --accent: #003f67;
  --accent-soft: #e3edf4;
  --on-accent: #f4f8fb;
  --bezel: #16191d;
  --rim: #c5cad0;
  --camera: #2c3137;
  --shadow: 0 32px 80px -36px rgb(0 40 70 / 0.35);
  --header: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --surface: #171b20;
    --surface-strong: #20262c;
    --text: #e8ebee;
    --text-muted: #a1a9b3;
    --line: #2a3138;
    --accent: #7fb7de;
    --accent-soft: #15283a;
    --on-accent: #0b1a26;
    --bezel: #050607;
    --rim: #3a4047;
    --camera: #1b1e22;
    --shadow: 0 32px 80px -36px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Pretendard Variable",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 글자 역할 */

.display {
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.heading {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.body {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

.label {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.caption {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.heading.strong,
.label.strong {
  font-weight: 700;
}

.body.strong {
  font-weight: 600;
}

.subtle {
  color: var(--text-muted);
}

@media (max-width: 767px) {
  body,
  .body {
    font-size: 17px;
  }
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
}

/* 구획 단위로 멈추는 스크롤. 넓고 높은 화면의 첫 페이지에서만 켠다. */

@media (min-width: 1024px) and (min-height: 640px) {
  html.snap-page {
    scroll-snap-type: y mandatory;
  }

  .snap {
    scroll-snap-align: start;
  }

  .snap-end {
    scroll-snap-align: end;
  }
}

/* 머리 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 18px;
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

@media (max-width: 479px) {
  .site-nav .optional {
    display: none;
  }
}

/* 단추 */

.button {
  display: inline-flex;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:active {
  transform: scale(0.98);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-secondary {
  background: var(--surface-strong);
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 첫 구획 */

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100dvh - var(--header));
  padding: 48px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero .display {
  margin-bottom: 20px;
}

.hero .body {
  max-width: 32ch;
  margin-bottom: 32px;
}

.hero-shot {
  margin: 0;
}

@media (max-width: 1023px) {
  .hero {
    min-height: 0;
    padding: 48px 0 72px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 앱 시연. 넓은 화면에서는 판이 머리 아래에 멈춘 채 스크롤한 만큼 왼쪽 글과 기기 화면만 바뀐다.
   구획 높이는 단계 수만큼의 판 높이이고, 단계마다 스냅 표지가 하나씩 있어 한 번 넘기면 한 단계 간다. */

.showcase {
  --pin: calc(100dvh - var(--header));
  position: relative;
  height: calc(var(--steps) * var(--pin));
}

.showcase-mark {
  position: absolute;
  top: calc(var(--i) * var(--pin));
  left: 0;
  width: 1px;
  height: var(--pin);
  pointer-events: none;
}

.showcase-pin {
  position: sticky;
  top: var(--header);
  display: flex;
  align-items: center;
  height: var(--pin);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: center;
  width: 100%;
}

.steps {
  display: grid;
}

.step {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.step .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.step-shot {
  display: none;
}

/* 판이 멈춰 있어 스크롤바만으로는 남은 단계가 안 보여서 단계 수와 지금 자리를 막대로 보인다. 누르면 그 단계로 간다. */
.step-progress {
  display: flex;
  gap: 6px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step-progress button {
  display: block;
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.step-progress button[aria-current] {
  background: var(--accent);
}

.stage {
  display: flex;
  justify-content: center;
}

/* 낮은 창에서도 틀 전체가 판 안에 들어오게 폭을 높이에 맞춰 줄인다 */
.stage .tablet {
  max-width: calc((var(--pin) - 96px) * 1.45);
}

/* 태블릿 틀. 캡처는 iPad Pro 11형 가로 화면(2420 × 1668)이라 화면 비율을 그대로 둔다.
   테두리 두께와 모서리는 틀 폭을 따라 줄어들게 틀 폭 단위(cqi)로 적는다. */
.tablet {
  container-type: inline-size;
  width: 100%;
}

.tablet-frame {
  position: relative;
  padding: 3cqi;
  background: var(--bezel);
  border-radius: 4.6cqi;
  box-shadow:
    0 0 0 max(1px, 0.3cqi) var(--rim),
    var(--shadow);
}

/* 가로로 쥐었을 때 위 테두리 가운데에 오는 전면 카메라 */
.tablet-frame::before {
  content: "";
  position: absolute;
  top: 1.5cqi;
  left: 50%;
  width: 0.8cqi;
  height: 0.8cqi;
  border-radius: 50%;
  background: var(--camera);
  transform: translate(-50%, -50%);
}

.tablet-screen {
  position: relative;
  aspect-ratio: 2420 / 1668;
  overflow: hidden;
  border-radius: 1.6cqi;
  background: var(--surface);
}

.tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.is-active {
  opacity: 1;
  transform: none;
}

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

  .step,
  .screen {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .showcase {
    height: auto;
    padding-block: 32px;
  }

  .showcase-mark,
  .step-progress,
  .stage {
    display: none;
  }

  .showcase-pin {
    position: static;
    display: block;
    height: auto;
  }

  .showcase-grid,
  .steps {
    display: block;
  }

  .step {
    padding: 32px 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .step-shot {
    display: block;
    margin-top: 16px;
  }
}

/* 문의 */

.closing {
  padding-top: 96px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 48px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 20px;
}

.contact-band .title {
  margin-bottom: 8px;
}

.contact-band .body {
  color: color-mix(in srgb, var(--on-accent) 80%, transparent);
}

.contact-band .button {
  background: var(--on-accent);
  color: var(--accent);
}

.en {
  max-width: 720px;
  padding: 56px 0;
  word-break: normal;
}

@media (max-width: 767px) {
  .closing {
    padding-top: 48px;
  }

  .contact-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* 바닥 */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px 48px;
}

.site-footer .caption {
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--text);
}

@media (max-width: 767px) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

/* 문서 페이지 */

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 96px;
}

.doc-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}

.doc-toc > p {
  margin-bottom: 12px;
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-toc li + li {
  margin-top: 2px;
}

.doc-toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
}

.doc-toc a:hover {
  background: var(--surface);
  color: var(--text);
}

.doc-body {
  max-width: 720px;
}

.doc-body > .title {
  margin-bottom: 8px;
}

.doc-meta {
  margin-bottom: 32px;
}

.doc-body > .body {
  margin-bottom: 16px;
}

.doc-body > h2.heading {
  margin: 56px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc-body li + li {
  margin-top: 6px;
}

.toc-mobile {
  display: none;
  margin: 0 0 32px;
  padding: 4px 18px;
  background: var(--surface);
  border-radius: 20px;
}

.toc-mobile summary {
  padding: 12px 0;
  cursor: pointer;
}

.toc-mobile ol {
  margin-bottom: 14px;
}

@media (max-width: 1023px) {
  .doc {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .doc-toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

th,
td {
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

td:first-child {
  font-weight: 600;
}

/* 계정 삭제 */

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 12px;
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
  border-radius: 20px;
}

.choice > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: var(--accent);
}

.choice ol {
  margin: 4px 0 12px;
  padding-left: 20px;
}

.choice .button {
  align-self: flex-start;
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 8px 0 16px;
}

.split h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.split ul {
  margin: 0;
}

@media (max-width: 767px) {
  .choices,
  .split {
    grid-template-columns: 1fr;
  }
}
