/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 */

:root {
  --bg: #f6f6f7;
  /* 배경 위에 한 겹 뜨는 면. 카드가 테두리가 아니라 '떠 있는 것'으로 읽히게 한다 —
     테두리로만 구분하면 서비스가 13개일 때 화면이 네모 열세 개의 벽이 된다. */
  --surface: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --line: #e4e4e7;
  --accent: #111111;
  --radius: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-2: 0 10px 24px rgba(0, 0, 0, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #151518;
    --fg: #f5f5f5;
    --muted: #9ca3af;
    --line: #26262b;
    --accent: #f5f5f5;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 10px 26px rgba(0, 0, 0, 0.65);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Inter",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* 프로필 머리는 좁을수록 읽기 좋고, 서비스 목록은 넓을수록 짧아진다.
   그래서 칼럼 자체는 넓히고, 글줄만 따로 좁혀 둔다. */
.profile {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile__name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile__bio {
  margin: 0 auto 20px;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.profile__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.profile__meta li + li {
  position: relative;
  padding-left: 16px;
}

.profile__meta li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-50%);
  opacity: 0.6;
}

.profile__links {
  list-style: none;
  padding: 0;
  margin: -16px 0 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* 카드와 같은 말로 맞춘다 — 배경 위에 뜬 면 + 손이 올라올 때만 테두리. */
.profile__links a {
  display: inline-block;
  padding: 7px 15px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile__links a:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-2);
}

@media (prefers-color-scheme: dark) {
  .profile__links a {
    border-color: color-mix(in srgb, var(--fg) 7%, transparent);
  }

  .profile__links a:hover {
    border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  }
}

.profile__divider {
  width: 48px;
  height: 1px;
  background: var(--line);
  margin: 0 auto 36px;
}

/* ------------------------------------------------------------------
 * 맨 위의 신규 서비스 자리 (services.json 의 featured)
 *
 * 새 서비스는 제 묶음 맨 앞에 넣어 봐야 그 묶음이 세 번째면 화면 한참 아래다.
 * 목록 위로 끌어올려 한 장만 크게 둔다. 아래 카드와 같은 재료(아이콘 타일·화살표)를
 * 쓰되 크기와 채운 화살표로만 차이를 주어, 새 물건이라는 게 읽히되 따로 노는 블록이
 * 되지는 않게 했다.
 * ------------------------------------------------------------------ */

.featured {
  margin: 0 0 36px;
  text-align: left;
}

.featured__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.featured__card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.featured__card:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.featured__icon {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  font-size: 30px;
  line-height: 1;
}

.featured__body {
  flex: 1;
  min-width: 0;
}

.featured__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e5484d;
}

.featured__name {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* 아래 카드의 화살표는 호버에서만 채워진다. 여기는 처음부터 채워 두어
   페이지에서 가장 먼저 눌리기를 바라는 자리라는 걸 색으로 말한다. */
.featured__arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  transition: transform 0.15s ease;
}

.featured__card:hover .featured__arrow,
.featured__card:active .featured__arrow {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .featured__card,
  .featured__card:hover,
  .featured__card:hover .featured__arrow {
    transition: none;
    transform: none;
  }
}

/* 좁은 화면에서는 60px 타일과 34px 화살표가 설명을 너무 좁힌다. */
@media (max-width: 480px) {
  .featured__card {
    gap: 14px;
    padding: 18px;
  }

  .featured__icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

.services {
  margin: 0 0 36px;
  text-align: left;
}

/* 예전에는 가운데 뜬 작은 글씨라서 세 묶음이 목록을 나눈다는 게 읽히지 않았다.
   카드가 왼쪽 정렬인데 머리만 가운데라 축도 어긋났다. 왼쪽에 붙이고 남은 폭을
   가로줄로 채워, 여기서 한 묶음이 시작한다는 걸 선으로 보여준다. */
.services__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  /* 한글에는 자간을 거의 주지 않는다 — 0.1em 이면 "게 임" 처럼 벌어져 읽힌다. */
  letter-spacing: 0.02em;
  color: var(--fg);
  text-align: left;
}

.services__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 두 칸으로 접어도 봤는데, 칸이 좁아지면 태그라인이 잘려서 무슨 서비스인지 알 수 없었다.
   한 줄에 하나씩 두되 칼럼을 넓게 써서 설명이 두 줄 안에 들어오게 하는 편이 낫다. */
.services__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

/* 홈의 서비스 카드.
 *
 * 전에는 테두리 하나에 이모지·글자·화살표를 나란히 늘어놓아서 목록의 한 줄처럼 보였다.
 * 아이콘에 타일을 주고 화살표를 원형 버튼으로 만들어, 읽는 줄이 아니라 여는 것으로 보이게 했다.
 *
 * 그다음 문제는 개수였다. 같은 굵기의 외곽선 상자가 열세 개 쌓이니 목록 전체가 하나의 벽이 됐다.
 * 그래서 평소에는 테두리를 지우고 배경보다 한 겹 뜬 면으로 두었다 — 채운 면이 외곽선보다
 * 눌러야 할 것처럼 보이고, 선이 열세 줄 사라지면서 묶음 머리의 가로줄이 비로소 구분선 노릇을 한다.
 * 테두리는 손이 올라올 때만 나타난다. */
.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.service-card:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* 앱 아이콘처럼 보이는 타일. color-mix 로 두 테마 모두에서 배경보다 한 겹 위에 뜬다. */
.service-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  font-size: 22px;
  line-height: 1;
}

.service-card__body {
  flex: 1;
  min-width: 0;
}

.service-card__name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.service-card__desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* 화살표는 장식이 아니라 "여기를 누르면 열린다"는 표시다. 원형 버튼으로 두고
 * 호버에서 채워지게 해서, 카드 전체가 눌리는 것이라는 걸 손이 오기 전에 알려준다. */
.service-card__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* 터치 화면에는 호버가 없다. 누르는 순간에도 같은 신호를 준다. */
.service-card:hover .service-card__arrow,
.service-card:active .service-card__arrow {
  background: var(--accent);
  color: var(--bg);
  transform: translateX(2px);
}

@media (prefers-color-scheme: dark) {
  /* 어두운 배경에서는 그림자만으로 면이 떠 보이지 않는다. 옅은 테두리를 늘 둔다. */
  .service-card {
    border-color: color-mix(in srgb, var(--fg) 7%, transparent);
  }

  .service-card:hover {
    border-color: color-mix(in srgb, var(--fg) 22%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .service-card:hover .service-card__arrow {
    transition: none;
    transform: none;
  }
}

/* ------------------------------------------------------------------
 * 업데이트 소식 (news.json)
 *
 * 머리는 서비스 묶음과 같은 .services__title 을 써서 같은 리듬으로 읽히게 하고,
 * 항목은 아이콘·화살표 없이 날짜·꼬리표·한 줄 제목만 둔다. 카드처럼 굵으면
 * 바로 아래 서비스 목록과 경쟁하므로, 한 덩어리 면 안에 줄로만 나눴다.
 * ------------------------------------------------------------------ */

/* 업데이트 소식 중 딱 하나를 띄우는 자리 (news.json 의 highlight).
 *
 * 사이트 전체가 무채색이라, 화면에서 유일하게 색을 쓴 덩어리는 그것만으로 첫 시선을 가져간다.
 * 카드 전체를 채운 버튼처럼 만들고 안에 흰 알약 CTA 를 한 번 더 둬서
 * "읽는 소식"이 아니라 "누르는 것"으로 보이게 했다. 흰 글자가 읽히도록 그라데이션 양 끝은
 * 흰색 대비 4.5:1 이상인 색만 쓴다(#e11d48 · #a21caf). */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  margin: 0 0 12px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e11d48 0%, #a21caf 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(225, 29, 72, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 한쪽 위에 빛을 하나 얹어 평평한 색면이 아니라 눌리는 면처럼 보이게 한다. */
.spotlight::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px -12px rgba(225, 29, 72, 0.7), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.spotlight:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}

.spotlight__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 32px;
  line-height: 1;
}

.spotlight__body {
  min-width: 0;
}

.spotlight__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  color: #be123c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.spotlight__title {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.spotlight__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* 카드 안의 진짜 CTA. 아래 줄을 꽉 채워 엄지가 어디를 눌러도 닿게 한다. */
.spotlight__cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.spotlight:hover .spotlight__cta,
.spotlight:active .spotlight__cta {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .spotlight,
  .spotlight:hover,
  .spotlight:hover .spotlight__cta {
    transition: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  .spotlight {
    padding: 18px;
    gap: 12px 14px;
  }

  .spotlight__icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .spotlight__title {
    font-size: 19px;
  }
}

.news__list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.news__list li + li {
  border-top: 1px solid var(--line);
}

.news__item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

a.news__item:hover {
  background: color-mix(in srgb, var(--fg) 4%, transparent);
}

a.news__item:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.news__tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
}

.news__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a.news__item .news__title::after {
  content: " \2192";
  color: var(--muted);
}

.news__body {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .news__list {
    border-color: color-mix(in srgb, var(--fg) 7%, transparent);
  }
}

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

/* 서비스를 실제로 여는 버튼.
 *
 * 예전에는 12px 짜리 외곽선 알약이라 본문의 태그처럼 보였고, 페이지에서 유일하게
 * 눌러야 할 것인데도 눈에 걸리지 않았다. 지금은 손가락이 닿는 크기(최소 48px)의
 * 버튼이고, 첫 번째 플랫폼 하나만 채워서 시선을 몰아 준다. */
.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.platform-link:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

/* 주 CTA — 페이지당 하나. 채워 두면 "여기를 누르면 된다"가 설명 없이 읽힌다.
 *
 * 클래스를 두 번 겹쳐 쓴 건 실수가 아니다. `.doc a` 가 색을 var(--fg) 로 잡고 있어서
 * 클래스 하나로는 특정도에서 밀리고, 검은 버튼에 검은 글자가 된다. */
.platform-link.platform-link--primary {
  padding: 14px 30px;
  font-size: 16px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.platform-link.platform-link--primary:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* 아직 못 누르는 플랫폼. 점선으로 두어 눌리는 버튼과 헷갈리지 않게 한다. */
.platform-link--pending {
  border-style: dashed;
  font-weight: 500;
  color: var(--muted);
  cursor: default;
}

.platform-link--pending:hover {
  border-color: var(--line);
  transform: none;
}

.platform-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  /* 어두운 배경에서는 검은 그림자가 보이지 않는다. 더 깊게 준다. */
  .platform-link.platform-link--primary {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  }

  .platform-link.platform-link--primary:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-link,
  .platform-link:hover {
    transition: none;
    transform: none;
  }
}

.profile__note {
  margin: 0 auto;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.profile__note a {
  color: var(--fg);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Content pages (about, privacy, terms, contact)
 *
 * The landing page is a vertically centred card; documents are long, so
 * `body.doc` switches the flex alignment to the top and widens the column.
 * ------------------------------------------------------------------ */

body.doc {
  /* Documents are taller than the viewport; centring would push the top out of reach. */
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 32px 24px 64px;
}

.site-header,
.site-footer,
.doc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.site-header__home {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.doc {
  text-align: left;
  font-size: 15px;
  line-height: 1.75;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc__lead {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.doc__updated {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.doc p {
  margin: 0 0 16px;
}

/* 기본 disc 불릿은 글머리가 본문에 파묻혀서, 소개 페이지처럼 항목마다 두세 줄씩
   설명이 붙는 목록에서는 어디서 한 항목이 끝나는지가 보이지 않았다.
   점을 작게 떼어 내고 항목 사이를 벌려 덩어리가 눈에 잡히게 한다. */
.doc ul {
  list-style: none;
  margin: 0 0 18px;
  padding-left: 0;
}

.doc ul > li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.doc ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

.doc ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc ol > li {
  margin-bottom: 10px;
  padding-left: 2px;
}

.doc ol > li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 소개 페이지의 서비스 목록처럼 "**이름** — 설명" 꼴인 항목.
   이름은 링크지만 밑줄을 늘 긋지 않는다 — 열 몇 줄이 전부 밑줄이면 목록이 시끄럽다. */
.doc li > strong:first-child a {
  text-decoration: none;
}

.doc li > strong:first-child a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.doc strong {
  font-weight: 600;
}

.doc__table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.doc table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.doc th {
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  border-bottom-color: var(--fg);
}

.doc__note {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.doc__note p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--fg);
}

.site-footer__copy {
  margin: 0;
}

/* The landing page is a narrow card, so its footer matches that column. */
.site-footer--narrow {
  max-width: 640px;
  margin-top: 48px;
}

/* ------------------------------------------------------------------
 * Service detail pages (/apps/*)
 * ------------------------------------------------------------------ */

.app-hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.app-hero__icon {
  display: block;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
}

.app-hero__name {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-hero__tagline {
  margin: 0 auto 20px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.app-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* ------------------------------------------------------------------
 * 본문 끝의 실행 CTA — 상세 페이지마다 빌드가 자동으로 붙인다.
 * ------------------------------------------------------------------ */

.app-cta {
  width: 100%;
  max-width: 720px;
  margin: 48px auto 0;
  padding: 36px 24px 40px;
  /* 홈 카드와 같은 말 — 배경 위에 뜬 면이지 외곽선이 아니다. */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  text-align: center;
}

.app-cta__icon {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
}

.app-cta__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-cta__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app-cta__sub {
  margin: 0 auto 22px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.app-cta__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* 좁은 화면에서는 버튼이 가로로 쪼그라들지 않고 한 줄씩 꽉 차게 둔다.
   좌우 여백도 줄인다 — 24px씩 떼면 카드 안의 설명이 네 줄로 늘어난다. */
@media (max-width: 480px) {
  body {
    padding: 40px 16px;
  }

  body.doc {
    padding: 24px 16px 56px;
  }

  .app-hero__links,
  .app-cta__links {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-link {
    width: 100%;
  }
}

/* A strip of phone screenshots that scrolls sideways on narrow viewports. */
.shots {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* 155px keeps four phone shots inside the text column with room to spare;
 * narrower viewports fall back to sideways scrolling. */
.shots figure {
  flex: 0 0 auto;
  width: 155px;
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.shots figcaption,
.shot-wide figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Single wide screenshot, used for the web services. */
.shot-wide {
  margin: 0 0 20px;
}

.shot-wide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Inline SVG board diagrams that explain the game rules. */
.diagram {
  margin: 0 0 24px;
  text-align: center;
}

/* Diagrams are small figures, not banners — cap them so the labels stay text-sized. */
.diagram svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.diagram figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.faq__q {
  margin: 24px 0 6px;
  font-size: 15px;
  font-weight: 600;
}
