/* 틈 소개 사이트. 앱과 같은 색(teum-app/src/constants/tokens.ts): 라이트는 회색 바탕, 다크는 먹색 바탕, 형광 라임은 채움에만. */
:root {
  --ground: #f5f6f8;
  --surface: #ffffff;
  --raised: #eef0f3;
  --line: #e3e6ea;
  --text: #111317;
  --text-2: #3d424a;
  --muted: #626873;
  --accent: #d4ff3a;
  --accent-edge: rgba(17, 19, 23, 0.08);
  --on-accent: #111317;
  --accent-ink: #4f6b00;
  --accent-tint: #f0facb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0c0e;
    --surface: #16181c;
    --raised: #1f2227;
    --line: #23262c;
    --text: #f2f3f5;
    --text-2: #c9cdd3;
    --muted: #8a909a;
    --accent-edge: transparent;
    --on-accent: #0b0c0e;
    --accent-ink: #d4ff3a;
    --accent-tint: rgba(212, 255, 58, 0.1);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 44rem; }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; padding: 10px 4px; }
.lang:hover { color: var(--text); }

/* 첫 화면 */
.hero { display: grid; gap: 40px; padding: 32px 0 56px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding: 56px 0 72px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-tint); padding: 4px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.18; letter-spacing: -0.02em; margin: 16px 0 16px; }
h1 .mark { background: var(--accent); color: var(--on-accent); padding: 0 0.12em; border-radius: 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 19px; color: var(--text-2); margin: 0 0 28px; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font-weight: 700; text-decoration: none; font-size: 17px;
}
.button.primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent-edge); }
.button.ghost { border: 1px solid var(--line); background: var(--surface); }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
/* 스토어 배지: Apple 배지 높이에 맞춰 Google Play 배지(여백 포함 이미지)를 키운다 */
.store-badge { display: inline-flex; align-items: center; line-height: 0; }
.store-badge img { height: 48px; width: auto; display: block; }
.store-badge.play { margin: -11px -10px; }
.store-badge.play img { height: 70px; }
.hero-shot { justify-self: center; }

.phone { width: 100%; max-width: 280px; border-radius: 34px; border: 6px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12); }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); } }

/* 구획 */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--text-2); margin: 0 0 32px; max-width: 40rem; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 880px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shots figure { margin: 0; }
.shots .phone { max-width: none; border-radius: 26px; border-width: 4px; }
.shots figcaption { font-size: 15px; color: var(--text-2); margin-top: 12px; text-align: center; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1px solid var(--accent-edge); margin-right: 8px; vertical-align: 2px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-2); font-size: 16px; }

.facts { display: grid; gap: 12px; margin: 0; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
details p { margin: 0 0 16px; color: var(--text-2); }

/* 문서(처리방침·약관) */
.doc { padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }

/* 바닥 */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 12px; }
footer nav a { text-decoration: none; padding: 8px 0; }
footer nav a:hover { color: var(--text); text-decoration: underline; }
footer p { margin: 4px 0; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 0.15s ease; }
  .button:hover { transform: translateY(-1px); }
}
