/* ============================================================
   몰래코인 (Coin Peek) — landing
   Plain paper and ink. Red stays in the app icon only.
   Soft rounded Korean headings (Gowun Dodum), Gothic A1 for reading.
   One trick: the real panel slides in from the right edge
   of this very browser window.
   ============================================================ */

:root {
  --paper: #fbfbfa;
  --paper-2: #f1f0ed;
  --ink: #222124;
  --ink-2: #5d5b60;
  --line: #e4e2de;
  --screen: #26262b;
  --up: #138a52;
  --down: #d9162f;
  --head: 'Gowun Dodum', 'Bricolage Grotesque', 'Gothic A1', sans-serif;
  --body: 'Gothic A1', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { font-family: var(--head); font-weight: 400; text-wrap: balance; line-height: 1.15; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 250, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 max(28px, env(safe-area-inset-right, 0px)) 0 max(28px, env(safe-area-inset-left, 0px)); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--head); font-size: 22px; display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: block; border-radius: 7px; }
.nav-right { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav-right a { text-decoration: none; }
.nav-right a.muted, .lang { padding: 12px 0; color: var(--ink-2); }
.nav-right a.muted:hover, .lang:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-dl { font-weight: 700; padding: 8px 16px; border-radius: 6px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.nav-dl:hover { background: #000; }

/* Hero */
.hero { padding-block: 80px 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.12; letter-spacing: -0.01em; }
.hero-sub { margin-top: 24px; font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 28em; }
.hero-cta { margin-top: 34px; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.edge-hint { margin-top: 28px; font-size: 15px; color: var(--ink); background: var(--paper-2); border-radius: 8px; padding: 12px 16px; max-width: 26em; }

.btn-dl { font-family: var(--body); font-weight: 800; font-size: 15.5px; padding: 14px 22px; min-height: 52px; border-radius: 6px; display: inline-flex; align-items: center; text-decoration: none; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn-dl:hover { background: #000; }
.btn-dl-alt { background: transparent; color: var(--ink); }
.btn-dl-alt:hover { background: var(--ink); color: var(--paper); }
.dl-pair { display: inline-flex; flex-wrap: wrap; gap: 10px; }

/* Demo: a dark desktop screen; the panel matches the app */
.demo { position: relative; height: 380px; border-radius: 10px; overflow: hidden; background: var(--screen); border: 10px solid var(--ink); }
/* 작업 표시줄 한 줄만: 데스크톱 화면이라는 표시 */
.demo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: rgba(255, 255, 255, 0.06); }
.demo-hint { position: absolute; top: 14px; left: 16px; font-size: 12.5px; color: rgba(255, 243, 232, 0.7); max-width: 44%; line-height: 1.5; }
.demo [data-panel], .demo [data-indicator], .demo [data-cursor],
.desk [data-panel], .desk [data-indicator], .desk [data-cursor] { position: absolute; top: 0; left: 0; will-change: transform; }
.demo-cursor { z-index: 4; pointer-events: none; transform-origin: 2px 2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.demo-cursor.is-down path { fill: #e9e9e9; }

.sp-indicator { z-index: 1; width: 6px; height: 50px; border-radius: 3px; background: rgba(120, 160, 220, 0.35); box-shadow: 0 0 8px rgba(120, 160, 220, 0.2); opacity: 0; transition: background 150ms; }
.sp-indicator.is-visible { opacity: 1; }
.sp-indicator.is-hover { background: rgba(120, 160, 220, 0.6); }

.sp-panel { z-index: 3; width: 228px; background: rgba(23, 25, 29, 0.96); border: 1px solid rgba(255,255,255,0.06); border-left-color: rgba(255,255,255,0.12); border-right: none; border-radius: 12px 0 0 12px; color: rgba(235,235,245,0.92); font: 13px/1.35 'Segoe UI', 'Malgun Gothic', system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; box-shadow: -6px 0 18px rgba(0,0,0,0.25); }
.sp-panel.dock-left { border-radius: 0 12px 12px 0; border-left: none; border-right: 1px solid rgba(255,255,255,0.12); box-shadow: 6px 0 18px rgba(0,0,0,0.25); }
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sp-handle { width: 18px; height: 3px; border-radius: 3px; background: rgba(235,235,245,0.18); }
.sp-icons { display: flex; gap: 10px; }
.sp-icons i { width: 11px; height: 11px; border: 1.5px solid rgba(235,235,245,0.45); border-radius: 3px; }
.sp-cards { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.sp-group { padding: 6px 10px 2px; font-size: 10.5px; font-weight: 600; color: rgba(235,235,245,0.42); letter-spacing: 0.04em; }
.sp-card { position: relative; padding: 8px 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 3px; transition: background 120ms; }
.sp-card.is-hover { background: rgba(255,255,255,0.04); }
.sp-actions { position: absolute; top: 6px; inset-inline-end: 6px; display: flex; gap: 3px; opacity: 0; transition: opacity 120ms; }
.sp-actions i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,0.06); }
.sp-card.is-hover .sp-actions { opacity: 1; }
.sp-card.is-hover .sp-row:first-of-type { padding-inline-end: 44px; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-name { font-weight: 600; white-space: nowrap; }
.sp-price { color: rgba(235,235,245,0.78); }
.sp-chg { font-weight: 600; }
.sp-panel .up { color: #2eb872; }
.sp-panel .down { color: #e0584a; }
.sp-spark { width: 60px; height: 18px; }
.sp-spark polyline { fill: none; stroke: #2eb872; stroke-width: 1.4; }
.sp-spark.down polyline { stroke: #e0584a; }
.sp-hold { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3px; padding-top: 5px; font-size: 11px; }
.sp-qty { color: rgba(235,235,245,0.55); }

/* Feature: two monitors, drag the panel across */
.desk { position: relative; width: 264px; height: 112px; display: flex; gap: 12px; }
.mon { flex: 1; height: 82px; border: 2px solid var(--ink); border-radius: 4px; background: var(--screen); position: relative; }
.mon::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 34px; height: 22px; transform: translateX(-50%); background: linear-gradient(var(--ink), var(--ink)) center top / 6px 16px no-repeat, linear-gradient(var(--ink), var(--ink)) center bottom / 34px 3px no-repeat; }
.mon-screen { position: absolute; inset: 0; overflow: hidden; }
.sp-panel.mini { width: 40px; border-radius: 4px 0 0 4px; box-shadow: none; }
.sp-panel.mini.dock-left { border-radius: 0 4px 4px 0; }
.sp-panel.mini .sp-head { padding: 3px 0; justify-content: center; }
.sp-panel.mini .sp-handle { width: 9px; height: 2px; }
.sp-panel.mini .sp-cards { padding: 4px 5px 6px; gap: 5px; }
.sp-panel.mini .sp-cards i { display: block; height: 4px; border-radius: 2px; background: rgba(235,235,245,0.35); position: relative; }
.sp-panel.mini .sp-cards i::after { content: ""; position: absolute; right: 0; top: 0; width: 9px; height: 4px; border-radius: 2px; }
.sp-panel.mini .sp-cards i.up::after { background: #2eb872; }
.sp-panel.mini .sp-cards i.down::after { background: #e0584a; }
.sp-indicator.mini { width: 3px; height: 16px; border-radius: 2px; }


/* The real panel at the right edge of this browser window */
.edge { position: fixed; top: 0; right: 0; height: 100%; width: 0; z-index: 60; pointer-events: none; }
.edge-ind { position: absolute; top: 28%; right: 2px; width: 6px; height: 50px; border-radius: 3px; background: rgba(120, 160, 220, 0.6); opacity: 0; transition: opacity 200ms; }
.edge.is-near .edge-ind { opacity: 1; }
.edge-panel { position: absolute; top: 28%; right: 0; transform: translateX(100%); transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: auto; }
.edge.is-open .edge-panel { transform: translateX(0); }

/* Sections on paper */
.how { padding-block: 72px 0; border-top: 1px solid var(--line); }
.spec, .faq { padding-block: 72px 0; }
.faq { padding-bottom: 96px; }
.how h2, .spec h2, .faq h2 { font-size: clamp(32px, 4.2vw, 48px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.how-grid h2 { grid-column: 1 / -1; max-width: 14em; }
.how-list { display: grid; gap: 28px; }
.how-list h3 { font-size: 25px; margin-bottom: 6px; }
.how-list p { color: var(--ink-2); max-width: 32em; }
.how-vis { align-self: center; justify-self: center; padding: 24px 0 36px; }

.spec-grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; }
.spec dl { display: grid; }
.spec dl > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-2); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }
.faq-more { margin-top: 22px; color: var(--ink-2); }

/* Footer */
footer.wrap { padding-block: 0 8px; }
.foot { border-top: 1px solid var(--line); padding-block: 26px 16px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.foot-left { font-size: 13.5px; color: var(--ink-2); }
.foot-links { display: flex; gap: 8px 20px; font-size: 14px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { padding-bottom: 36px; color: var(--ink-2); font-size: 12.5px; line-height: 1.65; max-width: 62em; }

/* Sub pages (guide, releases, privacy) */
.doc { max-width: 760px; margin: 0 auto; padding-block: 64px 96px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.doc-breadcrumb { font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.08; margin-bottom: 18px; }
.doc-lead { font-size: 18.5px; line-height: 1.75; color: var(--ink-2); margin-bottom: 40px; }
.doc section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 30px; margin-bottom: 14px; }
.doc h3 { font-size: 21px; margin: 22px 0 6px; }
.doc p, .doc li, .doc dd { color: var(--ink-2); line-height: 1.8; }
.doc p + p { margin-top: 12px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc ul, .doc ol { padding-inline-start: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc code { font-size: 0.92em; padding: 1px 6px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }
.answer-box { background: var(--paper-2); border-radius: 8px; padding: 22px 24px; }
.answer-box strong { display: block; font-family: var(--head); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.answer-box p { color: var(--ink) !important; }
.doc-note { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 15px !important; }
.doc dl { display: grid; }
.doc dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc dt { font-weight: 700; margin-bottom: 4px; }
.doc-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.doc-cta a { text-decoration: none; }
.release { padding: 18px 0; border-bottom: 1px solid var(--line); }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.release-head h2 { font-size: 24px; margin: 0; }
.release-head time { font-size: 14px; color: var(--ink-2); }
.release-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .hero-grid, .how-grid, .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .how-vis { justify-self: start; }
}
@media (max-width: 760px) {
  .nav-right .muted { display: none; }
  .hero { padding-block: 48px 56px; }
  .demo { height: 330px; border-width: 8px; }
  .how, .spec, .faq { padding-top: 64px; }
  .spec dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 520px) {
  .wrap, .nav-inner, .doc { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav-inner { height: 58px; }
  .brand-name { display: none; }
  .nav-right { gap: 12px; }
  .nav-dl { padding: 7px 12px; font-size: 13px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 16.5px; }
  .demo { height: 350px; }
  .sp-panel { width: 208px; }
  .foot { flex-direction: column; }
}
@media (hover: none), (pointer: coarse) { .edge { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sp-card, .sp-actions, .sp-indicator, .edge-panel, .edge-ind { transition: none; }
}

/* 일본어 */
html[lang="ja"] body { word-break: normal; line-break: strict; --body: 'Noto Sans JP', 'Gothic A1', 'Hiragino Sans', 'Yu Gothic UI', sans-serif; --head: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .brand { font-family: var(--head); }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-weight: 700; }
html[lang="ja"] .hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.25; }
/* 영어 */
html[lang="en"] body { --head: 'Bricolage Grotesque', 'Gothic A1', sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .brand { font-family: var(--head); font-weight: 700; letter-spacing: -0.03em; }
html[lang="en"] .hero h1 { font-size: clamp(42px, 5.8vw, 74px); }
/* 아랍어: 오른쪽→왼쪽. 데모와 가장자리 패널은 실제 화면이라 방향 고정 */
html[lang="ar"] body { --body: 'Noto Sans Arabic', 'Gothic A1', Tahoma, sans-serif; --head: 'Noto Kufi Arabic', 'Noto Sans Arabic', sans-serif; line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand { font-family: var(--head); font-weight: 700; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
html[lang="ar"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .doc-note { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .demo, [dir="rtl"] .desk, [dir="rtl"] .edge { direction: ltr; }
[dir="rtl"] .demo-hint { direction: rtl; text-align: left; }
[dir="rtl"] .sp-panel { direction: rtl; }
[dir="rtl"] .sp-price, [dir="rtl"] .sp-hold span { white-space: nowrap; }
[dir="rtl"] .sp-chg, [dir="rtl"] .sp-num, [dir="rtl"] .sp-hold .up, [dir="rtl"] .sp-hold .down { direction: ltr; unicode-bidi: isolate; }
