/* VISM STUDIO — site styles
   토큰(색·글꼴·간격)은 :root 에만 정의하고, 컴포넌트는 토큰만 참조합니다.
   다크 모드는 prefers-color-scheme 으로 토큰만 바꿉니다. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EDEFF4;
  --ink: #141826;
  --ink-2: #525A6E;
  --ink-3: #7A8295;
  --line: #DDE1EA;
  --line-2: #C9CFDC;
  --accent: #2A47D0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7EBFB;
  /* 히어로 마지막 줄이 순환할 때 쓰는 색 */
  --rot-1: #F3511B;   --rot-2: #0F805E;
  --rot-3: #0968F6;   --rot-4: #631F99;
  --ok: #1E7A4B;      --ok-soft: #E2F3E9;
  --warn: #8A5A00;    --warn-soft: #FBEFD6;
  --mute: #5F677A;    --mute-soft: #ECEEF3;
  --radius: 14px;
  --radius-sm: 8px;
  /* eBay 의 Market Sans 는 전용 폰트라 쓸 수 없다. 가장 가까운 무료 조합으로
     라틴은 Inter, 한글은 Noto Sans KR 을 쓴다. */
  --font-sans: Inter, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1016;
    --surface: #151823;
    --surface-2: #1C2030;
    --ink: #E8EAF1;
    --ink-2: #A4ABBE;
    --ink-3: #7C8499;
    --line: #262B3A;
    --line-2: #343A4C;
    --accent: #91A5FF;
    --accent-ink: #0E1016;
    --accent-soft: #1B2342;
    --rot-1: #FF8A5C;   --rot-2: #4FC79C;
    --rot-3: #6BA5FF;   --rot-4: #C08CF0;
    --ok: #63CF92;      --ok-soft: #143324;
    --warn: #E6B864;    --warn-soft: #382C12;
    --mute: #9AA2B6;    --mute-soft: #1F2431;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* 위 규칙이 letter-enter 를 없애면 글자가 opacity 0 으로 남는다 */
  .hero-title .rot-letter { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand b { font-weight: 700; letter-spacing: 0.04em; font-size: 14.5px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 4px 10px; border-radius: 999px;
  font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--ink-3);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 14px; }
  .brand b { display: none; }
}

/* ---------- type helpers ---------- */
.eyebrow {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.sub { color: var(--ink-2); margin-top: 8px; max-width: 40em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding: 96px var(--gutter) 76px; }
/* developer.ebay.com 의 히어로 규격을 그대로 따른다:
   line-height 1, letter-spacing -0.03em, weight 700.
   크기는 eBay 가 15vw 를 쓰지만 한글이 글자당 1em 을 차지해 같은 값이면
   줄이 넘친다 — 우리 컨테이너(1080px)에서 가장 긴 줄이 꽉 차는 9.5vw 로 맞췄다. */
.hero-title {
  font-size: clamp(28px, 11vw, 120px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 34px;
}
.hero-title span { display: block; }
/* 순환 줄. developer.ebay.com 과 같은 방식으로 글자를 하나씩 스팬에 담아
   0.05s 씩 밀리며 아래에서 튀어오르게 한다. --y-offset 과 스프링 곡선,
   지속시간 모두 그 페이지에서 실측한 값이다. */
.hero-title .rot-line {
  display: inline-flex; position: relative;
  --y-offset: .125em;
  color: var(--rot-1);
  transition: opacity .16s ease;
}
.hero-title .rot-line.is-out { opacity: 0; }
.hero-title .rot-letter {
  display: block; white-space: pre; opacity: 0;
  animation: letter-enter .5s forwards;
  animation-timing-function: linear(
    0 0%, 0.008 1.1%, 0.034 2.3%, 0.134 4.9%, 0.264 7.3%, 0.683 14.3%,
    0.797 16.5%, 0.89 18.6%, 0.967 20.7%, 1.027 22.8%, 1.073 25%,
    1.104 27.3%, 1.123 30.6%, 1.119 34.3%, 1.018 49.5%, 0.988 58.6%,
    0.985 65.2%, 1 84.5%, 1 100%);
}
@keyframes letter-enter {
  from { opacity: 0; transform: translateY(var(--y-offset)); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-lede {
  color: var(--ink); max-width: 690px;
  font-size: 20px; line-height: 1.5;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .hero { padding: 56px var(--gutter) 48px; }
  .hero-title { margin-bottom: 22px; }
  .hero-lede { font-size: 17px; margin-bottom: 26px; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.section h1, .section h2, .page-head h1 { font-size: 28px; font-weight: 700; }
main > .section:first-child { border-top: 0; padding-top: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.group-label {
  display: flex; align-items: center; gap: 14px; margin: 30px 0 14px;
  font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label .count { color: var(--ink-2); }

/* ---------- app cards ---------- */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.app:hover { border-color: var(--line-2); }
.app-icon { width: 72px; height: 72px; border-radius: 17px; object-fit: cover; background: var(--surface-2); }
.app-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.app-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app-cat { font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }
.app-tag { margin: 6px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  font-size: 13.5px; font-weight: 500; line-height: 1.3;
  transition: border-color .15s ease, color .15s ease;
}
a.store:hover { border-color: var(--accent); color: var(--accent); }
.store svg { width: 13px; height: 13px; flex: none; }
.store svg.pf { width: 14px; height: 14px; margin-right: -1px; }
.store.is-pending svg.pf { opacity: .7; }
.store.is-pending { color: var(--ink-3); border-style: dashed; }
.st {
  font: 500 10.5px/1.4 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 4px;
}
.st-review { background: var(--warn-soft); color: var(--warn); }
.st-soon   { background: var(--mute-soft); color: var(--mute); }
.st-live   { background: var(--ok-soft); color: var(--ok); }
.app-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12.5px/1.6 var(--font-mono); }
.app-links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.app-links a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 420px) {
  .app { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .app-icon { width: 56px; height: 56px; border-radius: 13px; }
}
.noscript-list { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink-2); }

/* ---------- duo (support / legal teasers) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.duo h2 { font-size: 22px; margin-bottom: 8px; }
.duo p { color: var(--ink-2); max-width: 34em; }
.duo .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- inner pages ---------- */
.page-head { padding: 56px 0 28px; }
.page-head .lede { font-size: 17px; color: var(--ink-2); max-width: 36em; margin-top: 12px; }
.page-head .eyebrow { margin-bottom: 12px; }
.notice {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; color: var(--ink-2); font-size: 14.5px; margin-top: 18px;
}
.notice b { color: var(--ink); }
.support-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .support-list { grid-template-columns: 1fr; } }
.support-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.support-item img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--surface-2); }
.support-item .name { font-weight: 600; font-size: 15.5px; }
.support-item .meta { font: 400 12.5px/1.6 var(--font-mono); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; }
.support-item .meta a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.support-item .meta a:hover { color: var(--accent); border-color: var(--accent); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1 var(--font-mono); color: var(--ink-3); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { color: var(--ink-2); font-size: 15px; margin-top: 10px; max-width: 44em; }
.faq .answer a { color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.legal { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 14.5px; }
table.legal th {
  text-align: left; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.legal tr:last-child td { border-bottom: 0; }
table.legal .cell-app { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
table.legal .cell-app img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
table.legal td a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
table.legal td a:hover { border-color: var(--accent); }
table.legal .none { color: var(--ink-3); }
table.legal td.mono { font: 400 13px/1.5 var(--font-mono); }
.prose { max-width: 44em; color: var(--ink-2); font-size: 15.5px; }
.prose p + p { margin-top: 12px; }
.prose h2 { font-size: 20px; color: var(--ink); margin: 36px 0 10px; }
.prose a { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 64px; color: var(--ink-2); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; }
.site-footer .brand { margin-bottom: 10px; }
.site-footer .note { margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.site-footer .cols h4 { margin: 0 0 8px; font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.site-footer .cols a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.site-footer .cols a:hover { color: var(--ink); }
.site-footer .legal-line { margin-top: 10px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { padding: 96px 0; }
.nf h1 { font-size: 32px; margin: 12px 0; }
.nf p { color: var(--ink-2); }
.nf .actions { margin-top: 20px; display: flex; gap: 10px; }
