/* Ggeomddakji — 껌딱지 */
:root {
  --bg: #ffffff;
  --bg-soft: #faf6ef;
  --fg: #16181d;
  --fg-muted: #5c6270;
  --line: #ece4d8;
  --accent: #9a6236;
  --radius: 14px;
  --maxw: 1040px;
}


* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

/* 고정 헤더에 가려지지 않도록 앵커 이동 위치 보정 */
html {
  scroll-behavior: smooth;
}

:target,
section[id] {
  scroll-margin-top: 88px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
}

.brand .en {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
}

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

/* Sections */
main.wrap {
  padding-top: 68px;
  padding-bottom: 80px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.hero .lead,
.hero .lead-en,
main > p,
section > p,
section > ul,
.info {
  max-width: 820px;
}

.hero .lead {
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.hero .lead-en {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: 14px;
}

section { margin-top: 48px; }

h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 16px;
  margin: 26px 0 8px;
}

p { margin: 0 0 14px; }

a { color: var(--accent); }

ul { padding-left: 20px; }

li { margin-bottom: 6px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.card h3 { margin: 0 0 6px; font-size: 15px; }

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

/* App list */
.apps {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.app {
  padding: 20px 22px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-head img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex: none;
  object-fit: cover;
}

.app-title {
  flex: 1 1 auto;
  min-width: 0;
}

.app-title h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.app-title p {
  margin: 2px 0 0;
  color: var(--fg-muted);
  font-size: 14px;
}

.store-link {
  flex: none;
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.store-link:hover {
  background: var(--accent);
  color: #fff;
}

.app-features {
  margin: 16px 0 0;
  padding-left: 19px;
  font-size: 14px;
  color: var(--fg-muted);
}

.app-features li { margin-bottom: 4px; }

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.app-meta span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 560px) {
  .app { padding: 18px; }
  .app-head { flex-wrap: wrap; }
  .store-link { width: 100%; text-align: center; }
}

/* Language switcher */
.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.lang-select label {
  font-size: 15px;
  line-height: 1;
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6270' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 10px 7px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.lang-select select:hover { border-color: var(--accent); }

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

/* Support page */
.app-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.app-jump a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.app-jump a:hover { border-color: var(--accent); }

.app-jump img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

h2 .app-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  vertical-align: -6px;
  margin-right: 7px;
}

.path {
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

code {
  padding: 2px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

/* Data table with a header row */
.info.data th {
  width: auto;
  font-size: 13px;
  text-transform: none;
}

.info.data td {
  font-size: 14px;
  padding-right: 16px;
}

/* Business info table */
.info {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

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

.info th {
  width: 190px;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
}

.info th .en {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--fg-muted);
  font-size: 13px;
}

.site-footer p { margin: 0 0 6px; }

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

.note {
  color: var(--fg-muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  main.wrap {
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .hero h1 { font-size: 27px; }
  .nav { gap: 14px; font-size: 13px; }
  .brand .en { display: none; }
  .info th { width: 120px; font-size: 13px; }
  .info td { font-size: 14px; }
}
