/* 같이타자 랜딩 (spec 5-6). 색 · 라운드 · 글꼴은 앱(규칙 04 색 토큰)과 같다.
   다크는 기본으로 OS 설정을 따르고, 헤더의 토글(theme.js)이 <html data-theme> 로 덮어쓴다. */
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT@2/fonts/variable/woff2/SUIT-Variable.css");

:root {
  --bg: #F5F1EA; --surface: #FFFFFF; --surface2: #EFE9E0;
  --line: #E6DFD4; --line-strong: #D5CCBE;
  --text: #3B3634; --text2: #6E6461; --text3: #A39A91;
  --accent: #7F997D; --accent-soft: #E7EDE4; --on-accent: #FFFFFF;
  --beige: #E9DFCC; --point: #D97D54; --danger: #B5524A;
  --shadow-card: 0 1px 3px rgba(59, 54, 52, .06);
  --shadow-float: 0 10px 30px rgba(59, 54, 52, .08);
  --radius-card: 18px; --radius-btn: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1E1C1A; --surface: #2A2725; --surface2: #332F2C;
  --line: #3D3835; --line-strong: #4E4743;
  --text: #EFE9E0; --text2: #BDB3A9; --text3: #7F766F;
  --accent: #A3B8A0; --accent-soft: #2F3A2E; --on-accent: #1B211A;
  --beige: #3E372F; --point: #E4916B; --danger: #E08A80;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1E1C1A; --surface: #2A2725; --surface2: #332F2C;
    --line: #3D3835; --line-strong: #4E4743;
    --text: #EFE9E0; --text2: #BDB3A9; --text3: #7F766F;
    --accent: #A3B8A0; --accent-soft: #2F3A2E; --on-accent: #1B211A;
    --beige: #3E372F; --point: #E4916B; --danger: #E08A80;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "SUIT Variable", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1040px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--text2); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 10px; }
.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }

/* 헤더 */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand img { width: 30px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: var(--text2); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }
/* 화면 테마 토글 — 라이트에서는 달(다크로), 다크에서는 해(라이트로). JS 가 없으면 달만 보이고 아무 일도 없다 */
.theme-toggle { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text2); display: grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: var(--radius-btn); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* 스토어 배지 — 출시 전이라 비활성 (2026-11-06 사용자 결정) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 12px; background: var(--text); color: var(--bg); min-width: 170px; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 15px; line-height: 1.2; }
.store .icon { width: 24px; height: 24px; }
.store[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.store-note { font-size: 13px; color: var(--text3); margin-top: 8px; }

/* 히어로 */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.hero .catch { font-size: 18px; color: var(--text2); margin: 16px 0 28px; }
.bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; color: var(--text2); }
.bullets li { display: flex; align-items: center; gap: 8px; }
.bullets .icon { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } .bullets { grid-template-columns: 1fr; } }

/* 폰 목업 — Figma 390 프레임을 그대로 */
.phone { margin: 0; justify-self: center; width: min(300px, 80vw); border-radius: 36px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-float); background: var(--surface); }
.phone img, .phone picture { width: 100%; display: block; }
.phone.sm { width: min(260px, 70vw); }

/* 섹션 공통 */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.section .lead { color: var(--text2); margin-top: 10px; max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text2); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* 기능 블록 — 글 · 스크린샷 교차 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .phone { order: -1; }
.feature h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.feature ul { padding-left: 0; list-style: none; margin: 18px 0 0; display: grid; gap: 10px; color: var(--text2); font-size: 15px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; }
.feature li .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.feature .note { font-size: 13px; color: var(--text3); margin-top: 14px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature:nth-child(even) .phone { order: 0; } }

/* 이용 방법 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.step .num { font-size: 13px; font-weight: 800; color: var(--point); letter-spacing: .06em; }
.step h3 { font-size: 17px; margin: 8px 0; }
.step p { font-size: 14px; color: var(--text2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--text3); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .a { padding: 0 0 18px; font-size: 14px; color: var(--text2); }

/* 하단 CTA */
.cta { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 56px 0; }
.cta h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.cta .stores { justify-content: center; margin-top: 22px; }

/* 푸터 */
.footer { padding: 36px 0 48px; font-size: 13px; color: var(--text3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer .links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text2); }
.footer .copy { margin-left: auto; }
@media (max-width: 640px) { .footer .copy { margin-left: 0; } }

/* 문서(약관) 페이지 */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.doc .meta { font-size: 13px; color: var(--text3); margin-bottom: 32px; }
.doc h2 { font-size: 18px; font-weight: 800; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 15px; color: var(--text2); }
.doc ol, .doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface2); color: var(--text); font-weight: 700; }
.doc .box { background: var(--beige); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--text); margin: 16px 0; }

/* 초대 착륙점 */
.join { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 0; }
.join .card { max-width: 420px; width: 100%; text-align: center; padding: 32px 24px; }
.join .code { font-size: 32px; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; margin: 14px 0 4px; color: var(--text); }
.join .hint { font-size: 14px; color: var(--text2); }
.join .btn { width: 100%; margin-top: 20px; }
.join .fallback { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.join .fallback .stores { justify-content: center; margin-top: 12px; }
[hidden] { display: none !important; }
