/* LEAN LINE — 메인 랜딩 (차분·전문 톤) */
:root {
  --ink: #1a1d21;
  --ink-muted: #5c6370;
  --ink-soft: #8b9299;
  --line: #e4e6ea;
  --line-strong: #d1d5db;
  --surface: #ffffff;
  --canvas: #f6f7f9;
  --accent: #2d4a3a;
  --accent-hover: #243c2f;
  --accent-faint: rgba(45, 74, 58, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(26, 29, 33, 0.08);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.site-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switcher__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.lang-select {
  min-height: 40px;
  padding: 6px 32px 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  max-width: 100%;
}

.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.nav-inline a {
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
}

.nav-inline a:hover {
  color: var(--ink);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--accent-hover);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* 모바일: 터치 영역·헤더 내비 */
@media (max-width: 639px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 4px;
  }

  .site-header__right {
    align-items: stretch;
    width: 100%;
  }

  .lang-switcher {
    justify-content: space-between;
    width: 100%;
  }

  .nav-inline {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 12px;
    row-gap: 4px;
    font-size: 0.8125rem;
  }

  .nav-inline a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
  }

  .nav-inline .btn-outline {
    min-height: 44px;
    padding: 10px 14px;
    margin-left: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .nav-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-inline .btn-outline {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ----- Hero ----- */
.hero {
  padding: 48px 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .hero {
    padding: 72px 0 64px;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 18em;
}

.hero__lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.8vw, 1.0625rem);
  color: var(--ink-muted);
  max-width: 36rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

html[lang='ko'] .hero__lead {
  word-break: keep-all;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.hero__note {
  margin: 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* App Store / Google Play (placeholder → 실제 URL로 href 교체) */
.store-row {
  margin: 28px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}

.store-row__label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-row__badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.store-row__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

@media (max-width: 480px) {
  .store-row__badges {
    flex-direction: column;
  }
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: min(158px, 100%);
  flex: 1 1 auto;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge__img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
}

@media (max-width: 480px) {
  .store-badge__img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .store-badge {
    width: 100%;
    min-width: 0;
  }
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.92;
}

.store-badge:active {
  transform: scale(0.99);
}

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.store-badge--apple {
  background: transparent;
  border: none;
}

.store-badge--apple:hover {
  color: inherit;
}

.store-badge--google {
  background: transparent;
  border: none;
  box-shadow: none;
}

.store-badge--google:hover {
  color: inherit;
  border-color: transparent;
}

.store-row__hint {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ----- Sections ----- */
.section {
  padding: 40px 0;
}

@media (min-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section__headline {
  margin: 0 0 32px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Feature grid (4 cards: 1 → 2 → 4 columns) */
.grid-features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .grid-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Documents */
.doc-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding-bottom: 4px;
}

.doc-table-scroll .doc-table {
  min-width: 280px;
}

@media (max-width: 520px) {
  .doc-table-scroll {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.doc-block {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 520px) {
  .doc-block {
    padding: 20px 16px;
  }
}

.doc-block h2 {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

.doc-table th {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 38%;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table td a {
  font-weight: 500;
}

.doc-meta {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  padding: 40px 0 max(48px, env(safe-area-inset-bottom));
  background: #2c2e33;
  color: #a8adb4;
  font-size: 0.8125rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer__brand {
  color: #e8eaed;
}

.site-footer__rights {
  margin-top: 8px;
}

.site-footer a {
  color: #c9cdd4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.footer-links a:hover {
  text-decoration: underline;
}
