/* FunS 사이트 · Dark (디자인 시안 Q = C + N 을 운영 페이지로 옮김)
   골격은 C(Dark Premium): 거의 검정 바탕, 라임 강조 #C6F432, 1px 헤어라인, C의 섹션 순서.
   N(Hero 3D)에서 가져온 것: 히어로의 점 3D(hero3d.js), 제품 사진을 크게 쓰는 배치.
   라임은 버튼·번호·작은 라벨·3D 강조점에만. 그라데이션·글로우·그림자 장식 없음. */

:root {
  --bg: #0B0D0E;
  --raise: #111314;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #EDEDED;        /* 바탕 대비 약 16:1 */
  --muted: #A1A6AB;       /* 보조 글 약 7.8:1 */
  --faint: #8C9196;       /* 작은 라벨 약 6:1 */
  --lime: #C6F432;        /* 유일한 강조색 */
  --lime-hover: #D4FF52;
  --lime-ink: #0B0D0E;    /* 라임 위 글자 약 15:1 */
  --dot: #E3E6E8;         /* 3D 점(밝은 단색) */
  --sans: 'Geist', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --mono: 'Geist Mono', 'Pretendard Variable', Pretendard, ui-monospace, SFMono-Regular, monospace;
  --wrap: 1200px;
  --gut: 24px;
  --sec: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { word-break: keep-all; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
:where(main, section, footer, nav) :where(div, article, li, dl, dd, figure) { min-width: 0; }

/* 포커스: 어두운 바탕에서는 라임 링. 라임 버튼에서는 바깥 밝은 링 + 안쪽 어두운 링(라임과 대비 15:1) */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.btn-fill:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--lime-ink); }

/* ── 헤더 ─────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 36px; }
.nav-logo { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; min-width: 0; }
.nav-links a { font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--lime); }
.soon {
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; line-height: 1.4;
  color: var(--lime); border: 1px solid rgba(198, 244, 50, 0.55); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); cursor: pointer;
}
.mobile-menu { display: none; }

/* ── 버튼 ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-fill { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-fill:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.nav-right .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.arrow { display: inline-block; transition: transform .15s; }
a:hover .arrow { transform: translateX(3px); }
.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--text); font-size: 15px; border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s;
}
.tlink:hover { color: var(--lime); border-bottom-color: var(--lime); }

/* ── 라벨 ─────────────────────────────── */
.eyebrow, .tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--lime); }
.tag b { font-weight: 500; }
.tag span { color: var(--faint); }

/* ── 히어로: 왼쪽 글(C), 오른쪽 점 3D(N) ───────────── */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; min-height: 600px;
}
.hero-copy { padding: 88px 0; }
.hero h1 { margin-top: 24px; font-size: clamp(36px, 5.2vw, 68px); font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; }
.hero-sub { margin-top: 24px; max-width: 34em; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-status { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--faint); }

/* 3D 무대: 높이가 고정된 헤어라인 상자 — JS가 없거나 실패해도 레이아웃이 그대로다 */
.stage { position: relative; height: 500px; border: 1px solid var(--line); }
.stage::before { /* 라임 강조: 왼쪽 위 모서리 눈금 하나 */
  content: ""; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px;
  border-top: 2px solid var(--lime); border-left: 2px solid var(--lime); pointer-events: none;
}
.hero3d {
  position: absolute; inset: 0 0 40px 0; width: 100%; height: calc(100% - 40px); display: block;
  color: var(--dot); --dot-accent: var(--lime); opacity: 0; transition: opacity .9s ease;
}
.hero3d.is-ready { opacity: 1; }
.stage figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--faint); border-top: 1px solid var(--line);
}

/* 히어로 아래 넓은 사진 띠(N의 큰 사진) */
.band { padding: 0 var(--gut); }
.band > figure, .band .band-grid { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; padding: 56px 0 0; }
.band > figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }

/* ── 섹션 공통 ────────────────────────────── */
.sec { padding: var(--sec) 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.sec-foot { margin-top: 40px; }
.num { font-family: var(--mono); font-size: 13px; color: var(--lime); }

/* 홈 제품: 헤어라인 격자 안에 큰 사진. 둘은 나란히, 곧 공개는 가로로 길게 */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prod { background: var(--bg); padding: 24px 24px 32px; display: flex; flex-direction: column; }
.prod img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.prod-body { padding: 28px 8px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.prod p { color: var(--muted); }
.prod-meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.status { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.status.off { color: var(--faint); }
.prod.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.prod.wide img { aspect-ratio: 16 / 9; }
.prod.wide .prod-body { padding: 0 8px 0 0; }

/* 홈 보안: 왼쪽 사진, 오른쪽 2×2 헤어라인 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.split > figure { background: var(--bg); padding: 24px; }
.split > figure img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 2px; }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.cells li { background: var(--bg); padding: 32px; }
.cells h3, .rows h3, .steps h3, .pair h3 { margin-top: 12px; font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -0.015em; }
.cells p, .rows p, .steps p, .pair p { margin-top: 8px; color: var(--muted); }

/* 실제 Wallet 화면 */
.screens { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.screens h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; }
.caption { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--faint); line-height: 1.8; }
.screen-panel { background: var(--raise); border: 1px solid var(--line); padding: 48px 24px; display: flex; justify-content: center; }
.screen-panel img { width: 280px; border: 1px solid var(--line-2); border-radius: 20px; }

/* 마무리 CTA (C의 가운데 정렬) */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.cta p { margin-top: 16px; color: var(--muted); }
.cta .btn { margin-top: 32px; }

/* 기능 목록: 번호 + 헤어라인 줄(C), 두 열 */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows li .num { padding-top: 15px; }
.rows .soon { margin-top: 12px; }
.rows.one { grid-template-columns: minmax(0, 1fr); }
.rows.spec li { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 24px; align-items: baseline; }
.rows.spec h3 { margin-top: 0; }
.rows.spec p { margin-top: 0; }
.rows.spec li .num { padding-top: 0; }

/* Wallet 보안: C의 4칸 헤어라인 카드 */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards li { background: var(--bg); padding: 32px 28px; }
.cards h3 { margin-top: 12px; font-size: 18px; font-weight: 650; line-height: 1.4; }
.cards p { margin-top: 8px; color: var(--muted); }

/* Talk 사용법: 가로 헤어라인 위 4단계, 라임 점 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { position: relative; padding-top: 32px; }
.steps li::before { content: ""; position: absolute; left: 0; right: -32px; top: 5px; height: 1px; background: var(--line-2); }
.steps li:last-child::before { right: 0; }
.steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; max-width: 54em; }

/* 문서 링크 */
.docs-label { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.docs { display: flex; flex-wrap: wrap; gap: 0 28px; }
.docs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; }
.docs a:hover { color: var(--lime); }

/* Wallet 히어로 아래: 실제 화면 + 사진 */
.band .band-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1px; background: var(--line); border: 1px solid var(--line); padding: 0; margin-top: 56px; }
.band-grid > div { background: var(--raise); display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.band-grid > div img { width: 220px; border: 1px solid var(--line-2); border-radius: 18px; }
.band-grid > figure { background: var(--bg); padding: 0; margin: 0; }
.band-grid > figure img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 0; }

/* 버전 표 */
.ver { width: 100%; border-collapse: collapse; }
.ver th, .ver td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.ver thead th { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 0; border-bottom-color: var(--line-2); }
.ver td:nth-child(2) { font-family: var(--mono); color: var(--lime); }
.ver td:last-child, .ver th:last-child { text-align: right; padding-right: 0; }
.ver .tlink { min-height: 0; }

/* 보안: 제품별 두 열 */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.pair h2 { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--lime); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.pair li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pair li .tlink { margin-top: 8px; }
.notice { margin-top: 72px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 4px; padding: 32px 36px; }
.notice h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.notice h2 svg { color: var(--lime); }
.notice ul { margin-top: 16px; display: grid; gap: 12px; }
.notice li { position: relative; padding-left: 22px; }
.notice li::before { content: ""; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--lime); }

/* 단순 페이지 머리(회사·다운로드) */
.page-head { padding: clamp(72px, 9vw, 112px) 0 clamp(56px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; }
.page-head p { margin-top: 20px; color: var(--muted); max-width: 40em; font-size: 18px; }

/* 스왑 */
.swap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: clamp(64px, 8vw, 104px) 0; }
.big-soon { display: inline-flex; font-family: var(--mono); font-size: 15px; color: var(--lime); border: 1px solid var(--lime); border-radius: 999px; padding: 4px 14px; }
.swap h1 { margin-top: 24px; font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.swap p { margin-top: 20px; color: var(--muted); font-size: 17px; max-width: 30em; }
.swap .hero-actions { margin-top: 32px; }
.swap .swap-more { margin-top: 20px; }
.swap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* 회사 */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.about-grid h2 { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--lime); margin-bottom: 16px; }
.facts { border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.plist li { border-top: 1px solid var(--line-2); }
.plist li:last-child { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; align-items: center; }
.plist strong { font-size: 19px; font-weight: 650; }
.plist small { grid-column: 1; color: var(--muted); font-size: 15px; }
.plist .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--lime); }
.plist a:hover strong { color: var(--lime); }
.contact { margin-top: 56px; }
.contact .hero-actions { margin-top: 0; }

/* 다운로드: C의 카드 3개 */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dl-card { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.dl-card h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
.dl-card > p { color: var(--muted); }
.stores { display: grid; gap: 12px; }
.store { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-height: 72px; justify-content: center; background: var(--raise); border: 1px solid var(--line-2); border-radius: 4px; transition: border-color .15s; }
.store:hover { border-color: var(--lime); }
.store small { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.store strong { font-size: 16px; font-weight: 600; }
.store.off { background: transparent; border-style: dashed; }
.store.off strong { color: var(--muted); }
.store.off:hover { border-color: var(--line-2); }
.dl-card .tlink { margin-top: auto; align-self: flex-start; }

/* ── 푸터 (C) ─────────────────────────────── */
footer { padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.foot-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; }
.foot-col h2 { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.04em; margin-bottom: 12px; }
.foot-col ul { display: grid; gap: 4px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--muted); font-size: 14px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.badge-mockup { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps li:nth-child(2)::before { right: 0; }
  .rows.spec li { grid-template-columns: 40px minmax(0, 1fr); }
  .rows.spec p { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open {
    display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border-top: 1px solid var(--line); padding: 8px var(--gut) 32px;
  }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .mobile-menu a[aria-current="page"] { color: var(--lime); }
  .mobile-menu .btn { margin-top: 24px; width: 100%; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero-copy { padding: 56px 0 40px; }
  .stage { height: 340px; margin-bottom: 48px; }
  .prod-grid, .split, .cells, .rows, .pair, .about-grid, .screens, .swap { grid-template-columns: minmax(0, 1fr); }
  .prod.wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prod.wide .prod-body { padding: 28px 8px 0; }
  .split > figure img { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .cells { gap: 1px; }
  .rows { column-gap: 0; }
  .rows li:first-child ~ li { border-top: 0; }
  .pair { gap: 56px; }
  .screens, .about-grid { gap: 40px; }
  .swap { gap: 40px; }
  .band-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .band-grid > figure img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .band > figure img { aspect-ratio: 16 / 10; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  .nav-inner { gap: 12px; }
  .nav-right .btn { padding: 0 12px; }
  .hero-copy { padding: 40px 0 32px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stage { height: 300px; }
  .band > figure, .band .band-grid { padding-top: 0; margin-top: 0; }
  .prod { padding: 16px 16px 28px; }
  .prod-body { padding: 24px 4px 0; }
  .split > figure { padding: 16px; }
  .cells li, .cards li { padding: 28px 20px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .steps li::before, .steps li:nth-child(2)::before { right: 0; }
  .screen-panel { padding: 32px 16px; }
  .screen-panel img { width: 240px; }
  .ver th, .ver td { padding: 14px 12px 14px 0; font-size: 15px; }
  .notice { padding: 24px 20px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dl-card { padding: 28px 20px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col a { min-height: 44px; }
  .cta .btn { width: 100%; }
}
@media (max-width: 360px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── 로고·헤더 정렬 통일 (2026-11-03) ──────────────────────────
   여백을 잘라낸 마크(/mockups/assets/funs-mark.png)를 32px로 고정하고,
   글자와 세로 중앙을 맞춘다. 테두리·배경·원형 틀은 쓰지 않는다.
   오른쪽 버튼 묶음은 항상 헤더 오른쪽 끝에 붙인다. */
.nav-logo,.brand,.hud-logo{display:inline-flex;align-items:center;gap:10px;line-height:1;flex:0 0 auto;text-decoration:none}
.nav-logo img,.brand img,.hud-logo img{width:32px;height:32px;flex:0 0 32px;display:block;object-fit:contain;
  border:0;border-radius:0;background:none;padding:0;box-shadow:none;margin:0}
.nav-logo span,.brand span,.hud-logo span{line-height:1;display:block}
.nav-right,.hud-right,.nav-actions{margin-left:auto}

/* ── 운영 사이트 추가 (2026-11-03) ────────────────────────────
   한/영: 같은 주소에서 <html lang>으로 바꾼다. 문구는 data-l="ko|en" 쌍으로 넣고,
   첫 페인트 전에 머리말 스크립트가 lang 을 정한다(funs_lang · /talk/download/ 와 같은 키). */
html[lang="ko"] [data-l="en"], html[lang="en"] [data-l="ko"] { display: none !important; }
html[lang="en"] body { word-break: normal; }
html[lang="en"] .hero h1, html[lang="en"] .sec-head h2 { letter-spacing: -0.025em; }

.lang { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; padding: 2px; flex: 0 0 auto; }
.lang button {
  min-width: 44px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 2px; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--faint);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* 곧 공개 제품: 사진 대신 로고 판(로고 + 워드마크). 그라데이션·그림자 없음. */
.logo-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  width: 100%; aspect-ratio: 16 / 10; background: var(--raise); border: 1px solid var(--line); border-radius: 2px;
}
.logo-panel img { width: clamp(72px, 22%, 112px); height: auto; aspect-ratio: 1; object-fit: contain; }
.logo-panel span { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.prod-grid.soon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1px; border-top: 0; }
.soon-grid .prod h3 { font-size: 21px; }
.swap .logo-panel { aspect-ratio: 4 / 3; border-radius: 4px; }
.swap .logo-panel img { width: clamp(112px, 30%, 176px); }
.swap .logo-panel span { font-size: clamp(26px, 3vw, 34px); }
.note-soon { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; max-width: 34em; }

@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .nav-links .soon { display: none; } /* 좁은 데스크톱에선 메뉴 줄의 '곧 공개' 꼬리표를 숨긴다(모바일 메뉴·본문에는 남는다) */
}
@media (max-width: 900px) {
  .prod-grid.soon-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-right { gap: 6px; }
}
@media (max-width: 380px) {
  .lang button { min-width: 38px; padding: 0 4px; }
  .nav-logo span { display: none; } /* 아주 좁은 화면: 로고 그림만 남겨 헤더가 넘치지 않게 */
}

/* JS 가 없을 때(머리말 스크립트가 data-js 를 못 단 경우): 모바일에서 메뉴 버튼을 숨기고 메뉴를 펼쳐 둔다. */
@media (max-width: 900px) {
  html:not([data-js]) .menu-toggle { display: none; }
  html:not([data-js]) .mobile-menu { display: block; border-bottom: 1px solid var(--line); padding: 0 var(--gut) 24px; }
  html:not([data-js]) .mobile-menu a:not(.btn) { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 16px; }
  html:not([data-js]) .mobile-menu .btn { margin-top: 20px; width: 100%; }
}
html:not([data-js]) .lang { display: none; } /* JS 없이는 언어를 바꿀 수 없으니 버튼을 숨긴다(한국어 고정) */
.screens-sub { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 28em; }
.split.no-fig { grid-template-columns: minmax(0, 1fr); } /* 사진 없이 네 칸만: 넓은 화면은 2×2, 900px 이하는 다른 구역처럼 한 열 */

/* FunS Talk 우선 표시 (2026-11-03): 홈 마지막 안내의 버튼 두 개, 다운로드 페이지의 Talk 카드 강조 */
.cta .cta-actions { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta .cta-actions .btn { margin-top: 0; }
.dl-grid.talk-first { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-main { grid-column: 1 / -1; padding: 40px 32px; }
.dl-main h2 { font-size: clamp(28px, 3.4vw, 36px); }
.dl-main .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.dl-main .store:not(.off) { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.dl-main .store:not(.off) small { color: var(--lime-ink); opacity: .75; }
.dl-main .store:not(.off):hover { background: var(--lime-hover); border-color: var(--lime-hover); }
@media (max-width: 900px) { .dl-grid.talk-first { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cta .cta-actions .btn { width: 100%; } .dl-main { padding: 28px 20px; } }
.dl-main .store:not(.off):focus-visible { outline-color: var(--text); } /* 라임 바탕 위에서도 포커스 링이 보이게 */

/* ── 문서 페이지(약관·개인정보·아동 안전·회사) (2026-11-03) ──────────
   본문 문구는 원문 그대로 두고 겉모습만 맞춘다. 영어 원문이라 <article class="doc" lang="en">. */
.doc { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.doc .meta { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.doc h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; }
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 650; }
.doc p, .doc ul, .doc ol, .doc dl, .doc table, .doc .note, .doc .card { margin-top: 16px; }
.doc p, .doc li, .doc dd { color: var(--muted); }
.doc strong, .doc b { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--faint); }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--lime); }
.doc .table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .table-wrap table { margin-top: 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.04em; background: var(--raise); }
.doc tr:last-child td { border-bottom: 0; }
.doc .note, .doc .card { padding: 20px 22px; background: var(--raise); border: 1px solid var(--line); border-left: 2px solid var(--lime); }
.doc .note p:first-child, .doc .card > :first-child { margin-top: 0; }
.doc dl { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 10px 20px; }
.doc dt { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.doc dd { margin: 0; }
.doc .doc-nav { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
@media (max-width: 600px) {
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .doc dd + dt { margin-top: 12px; }
  .doc th, .doc td { padding: 10px 10px; font-size: 14px; }
}
/* 문서 페이지 좌우 여백(좁은 화면에서 본문이 화면 끝에 붙지 않게) */
.doc { max-width: calc(760px + 2 * var(--gut)); padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
/* /wallet/app/: 이 브라우저에 옛 웹 지갑이 저장돼 있을 때만 보이는 안내 */
.legacy-note { margin-top: 24px; padding: 18px 20px; background: var(--raise); border: 1px solid var(--line); border-left: 2px solid var(--lime); max-width: 34em; }
.legacy-note p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
