/* ============================================================================
   list3+ — marketing site
   토큰 값의 출처는 list4의 디자인 시스템(.claude/skills/list3plus-design/
   colors_and_type.css)이며, 여기에는 이 페이지가 쓰는 것만 옮겨 적었다.
   앱과 같은 규칙: 중성 near-black/white 바탕 + 저채도 포인트 색 하나,
   그라데이션·텍스처·이모지 없음.
   ============================================================================ */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --point: #2b3a47;
  --point-on: #fafafc;

  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-high: #eef2f6;
  --surface-highest: #e5e5ea;

  --fg-strong: #090909;
  --fg: #222325;
  --fg-muted: #32383e;
  --fg-subtle: #555b6a;
  --fg-faint: #909caa;

  --outline-variant: #d6dbe2;
  --divider: #efefec;

  --card-radius: 12px;
  --card-shadow: 0 1px 3px rgba(9, 9, 9, 0.12), 0 1px 2px rgba(9, 9, 9, 0.08);
  --device-shadow: 0 24px 60px rgba(9, 9, 9, 0.18),
    0 4px 12px rgba(9, 9, 9, 0.1);

  --gutter: 24px;
  --measure: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --point: #8ea6b8;
    --point-on: #151618;

    --bg: #151618;
    --surface: #222325;
    --surface-high: #2c2c2e;
    --surface-highest: #2c2c2e;

    --fg-strong: #fafafc;
    --fg: #d8d8d8;
    --fg-muted: #eaeaea;
    --fg-subtle: #b3b8c5;
    --fg-faint: #6a7684;

    --outline-variant: #474b53;
    --divider: #474b53;

    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --device-shadow: 0 24px 60px rgba(0, 0, 0, 0.6),
      0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 시각적으로만 숨긴다 — 스크린리더는 읽는다. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 헤더 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--divider);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header {
    background: var(--bg);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

/* 실제 로고가 없다 — 디자인 시스템의 워드마크 처리(슬레이트 타일 + 흰 L3+). */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  text-decoration: none;
}

.wordmark__tile {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--point);
  color: var(--point-on);
}

.wordmark__tile svg {
  width: 22px;
  height: 22px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  font-size: 13px;
}

.lang-switch a,
.lang-switch span {
  padding: 3px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-subtle);
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  background: var(--surface-highest);
  color: var(--fg-strong);
}

.lang-switch [aria-current="true"] {
  background: var(--point);
  color: var(--point-on);
  font-weight: 500;
}

/* ------------------------------------------------------------- 히어로 --- */

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 64px 24px;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
    padding-block: 96px 56px;
  }
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--fg-strong);
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--fg-subtle);
}

/* --------------------------------------------------------- 스토어 버튼 --- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--point);
  color: var(--point-on);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 140ms ease, opacity 140ms ease;
}

.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-1px);
}

.store-btn:active {
  transform: translateY(0);
}

/* 아직 스토어에 없는 상태 — 링크가 아니라 <span>으로 그린다. */
.store-btn--soon {
  background: transparent;
  border-color: var(--outline-variant);
  color: var(--fg-subtle);
  cursor: default;
}

.store-btn--soon:hover {
  transform: none;
}

.store-btn__label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-btn__label small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

.store-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--fg-faint);
}

/* --------------------------------------------------------- 기기 목업 --- */

.device {
  justify-self: center;
  width: min(320px, 100%);
  padding: 10px;
  border-radius: 40px;
  background: var(--fg-strong);
  box-shadow: var(--device-shadow);
}

.device__screen {
  border-radius: 31px;
  overflow: hidden;
  background: var(--bg);
}

.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
}

.device__bar .glyph {
  color: var(--fg-faint);
  font-weight: 400;
}

.mock-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

.mock-row__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--point);
}

.mock-row__body {
  min-width: 0;
  flex: 1;
}

.mock-row__title {
  display: block;
  font-size: 14px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-row__meta {
  display: block;
  font-size: 11px;
  color: var(--fg-faint);
}

.mock-row__trail {
  flex: none;
  font-size: 13px;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}

/* 앱의 떠 있는 하단 필 — 네 가지 타입 필터 + 분리된 추가 버튼. */
.mock-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 18px;
}

.mock-nav__pill {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 14px;
  background: var(--surface-highest);
  font-size: 11px;
  color: var(--fg-subtle);
}

.mock-nav__pill span[aria-current] {
  color: var(--fg-strong);
  font-weight: 700;
}

.mock-nav__add {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-highest);
  color: var(--fg-strong);
  font-size: 18px;
}

/* ---------------------------------------------------------------- 섹션 --- */

section {
  padding-block: 56px;
}

@media (min-width: 900px) {
  section {
    padding-block: 88px;
  }
}

.section-head {
  max-width: 40em;
  margin-bottom: 36px;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg-strong);
}

.section-head p {
  margin: 12px 0 0;
  color: var(--fg-subtle);
}

.rule {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0;
}

/* 네 가지 타입 — 아이콘 모양만으로 구분된다는 원칙을 그대로 보여준다. */
.types {
  display: grid;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--card-radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .types {
    grid-template-columns: repeat(4, 1fr);
  }
}

.type {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  background: var(--surface);
}

.type__icon {
  color: var(--point);
}

.type__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
}

.type__desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-subtle);
}

.type__trail {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

/* 그 밖의 기능 */
.features {
  display: grid;
  gap: 28px 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  gap: 14px;
}

.feature__icon {
  flex: none;
  color: var(--fg-faint);
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-strong);
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-subtle);
}

/* ---------------------------------------------------------------- 푸터 --- */

.site-footer {
  border-top: 1px solid var(--divider);
  padding-block: 36px 48px;
  font-size: 14px;
  color: var(--fg-subtle);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--fg-subtle);
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fg-strong);
  border-bottom-color: var(--outline-variant);
}

.copyright {
  margin: 0;
  color: var(--fg-faint);
}

/* 키보드 포커스는 어디서나 보이게 둔다. */
:focus-visible {
  outline: 2px solid var(--point);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ 법적 문서 --- */

.doc {
  padding-block: 48px 72px;
}

.doc .wrap {
  max-width: 760px;
}

.doc {
  word-break: keep-all;
}

.doc h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
}

.doc__meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--fg-faint);
}

.doc__lead {
  margin: 24px 0 0;
  color: var(--fg-subtle);
}

.doc h2 {
  margin: 44px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 28px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-strong);
}

.doc p,
.doc ul,
.doc ol {
  margin: 12px 0 0;
  color: var(--fg-muted);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

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

.doc li::marker {
  color: var(--fg-faint);
}

.doc strong {
  color: var(--fg-strong);
}

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

/* 표 — 수집 항목처럼 짝을 이루는 정보에만 쓴다. */
.doc table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.doc th {
  width: 1%;
  white-space: nowrap;
  color: var(--fg-strong);
  font-weight: 700;
}

.doc__table-scroll {
  overflow-x: auto;
}

/* 아직 채워지지 않은 값 — 배포 전에 반드시 없어져야 한다. */
.todo {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-highest);
  color: var(--error);
  font-weight: 700;
}
