/* ZAGO.TO — 스타일
   팔레트: bone(종이) / ink(잉크) / fuse(도화선 주황) / ash(보조) / edge(선)
   서체:  Pretendard(본문) / Azeret Mono(코드·숫자·라벨)
   모티프: 번호표(ticket)와 타들어가는 도화선(fuse). 타이머는 막대가 아니라 도화선이다.       */

:root {
  --bone: #F4F2ED;
  --bone-2: #FFFFFF;
  --ink: #141416;
  --ink-2: #2A2A2E;
  --ash: #7B7B80;
  --ash-2: #B4B3AE;
  --edge: #DDDAD2;
  --fuse: #FF5A1F;
  --fuse-soft: rgba(255, 90, 31, 0.12);
  --danger: #C8321E;
  --ok: #1F9D55;

  --bg: var(--bone);
  --surface: var(--bone-2);
  --text: var(--ink);
  --text-2: var(--ash);
  --line: var(--edge);
  --accent: var(--fuse);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --r: 14px;
  --r-lg: 20px;
  --pad: 18px;
  --tap: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1C1C1F;
    --text: #F1EFEA;
    --text-2: #9A9A9F;
    --line: #2E2E33;
    --fuse-soft: rgba(255, 90, 31, 0.16);
    --ash-2: #5A5A60;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 90, 31, 0.09), transparent 60%),
    radial-gradient(700px 480px at 100% 20%, rgba(20, 20, 22, 0.05), transparent 60%);
  pointer-events: none;
}
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ─────────── 헤더 ─────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 0;
  max-width: 1120px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark-tick {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.wordmark-dot { color: var(--accent); }
/* 언어: 두 개를 다 보여주고 현재 언어를 칠한다. "바꿀 언어"만 보여주면 헷갈린다 */
.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  min-height: 28px;
  border-radius: 999px;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.lang button.is-on { background: var(--text); color: var(--bg); }

/* ─────────── 앱 ─────────── */
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px var(--pad) 32px;
}
/* ─────────── 첫 장면 ─────────── */
.hero { margin: 4px 0 22px; display: grid; gap: 18px; }
.hero h1 {
  font-size: clamp(30px, 8.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 15px; color: var(--text-2); margin-top: 8px; }

/* 데모: 보내는 쪽 → 선 → 받는 쪽. 좌우 대칭. 상태 클래스(typing/ticket/travel/input/read/gone)로 장면이 바뀐다 */
.demo-wrap { position: relative; }
.demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: stretch;
  min-height: 176px;
}
/* 배경의 떠다니는 숫자가 카드 사이로 비치지 않게 받침을 깐다 */
.demo::before {
  content: "";
  position: absolute;
  inset: -10px -8px;
  background: var(--bg);
  border-radius: 20px;
  z-index: 0;
}
.demo > * { position: relative; z-index: 1; }
.dev {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(20, 20, 22, 0.06);
  min-width: 0;
}
.dev-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dev-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--ash-2); flex: none; }
.demo.s-typing .dev:first-child .dev-bar i, .demo.s-ticket .dev:first-child .dev-bar i { background: var(--accent); }
.demo.s-input .dev:last-child .dev-bar i, .demo.s-read .dev:last-child .dev-bar i { background: var(--accent); }
.dev-screen { position: relative; flex: 1; padding: 12px; min-height: 120px; }
.dev-screen > * {
  position: absolute; inset: 12px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(4px);
  pointer-events: none;
}
.demo .is-on { opacity: 1; transform: none; }

/* 보내는 쪽: 글 → 번호표 */
.d-text {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
  overflow: hidden;
}
.d-text::after { content: "▍"; color: var(--accent); animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.d-ticket { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.d-ticket small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--text-2); text-transform: uppercase; }
.d-ticket b { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: 0.1em; text-indent: 0.1em; line-height: 1.1; margin: 2px 0; }
.d-ticket b span { display: inline-block; animation: drop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.d-ticket b span:nth-child(2) { animation-delay: 0.06s; }
.d-ticket b span:nth-child(3) { animation-delay: 0.12s; }
.d-ticket b span:nth-child(4) { animation-delay: 0.18s; }
/* 보낸 쪽 상태: 실제 번호표와 같은 세 단계. 기다리는 중 → 열렸습니다 → 사라졌습니다 */
.d-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--text-2); margin-top: 2px; }
.d-status em { font-style: normal; }
.d-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ash-2); flex: none; }
.d-status.waiting i { background: var(--accent); animation: pulse 1.6s infinite; }
.d-status.opened { color: var(--ok); }
.d-status.opened i { background: var(--ok); }
.d-status.gone i { background: var(--ash-2); }

/* 선: 불꽃이 왼쪽에서 오른쪽으로 건너간다 */
.wire { align-self: center; height: 0; border-top: 2px dashed var(--line); position: relative; }
.wire i {
  position: absolute; top: -6px; left: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 3px rgba(255, 90, 31, 0.5);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
.demo.s-travel .wire i, .demo.s-input .wire i { opacity: 1; transform: translateX(42px); }

/* 말풍선: "자고투 3342" 를 말로, 카톡으로 */
.bubble {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 10px 24px rgba(20, 20, 22, 0.18);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2 !important;
}
.bubble svg { width: 14px; height: 14px; flex: none; }
.bubble.voice { background: var(--accent); color: #fff; }
.bubble.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 받는 쪽: 입력 → 읽기(도화선) → 사라짐 */
.d-input { display: flex; align-items: center; justify-content: center; }
.d-input span {
  min-width: 100px; height: 40px;
  border: 1px solid var(--line); border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.25em; text-indent: 0.25em;
  background: var(--bg);
}
.demo.s-input .d-input span { border-color: var(--text); }
.d-read { display: flex; flex-direction: column; gap: 8px; }
.d-fuse { height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.d-fuse i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: width 3.2s linear;
}
.d-fuse i::after {
  content: ""; position: absolute; right: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px 2px rgba(255, 90, 31, 0.55);
}
.demo.s-read .d-fuse i { width: 0; }
.d-out { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; word-break: break-all; color: var(--text); transition: opacity 0.7s, filter 0.7s; overflow: hidden; }
.demo.s-gone .d-out { opacity: 0; filter: blur(5px); }
/* 다 쓴 뒤: 요란하지 않게. 꺼진 도화선 자리에 한 줄 */
.d-gone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.d-gone i { width: 28px; height: 2px; background: var(--line); border-radius: 2px; }
.d-gone b { display: none; }
.d-gone span { font-size: 11.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }

.demo-cap {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  min-height: 1.5em;
  transition: opacity 0.3s;
}
.demo-cap.fade { opacity: 0; }

.tabs {
  scroll-margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}
.tab {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.tab.is-active { background: var(--text); color: var(--bg); }

.stage { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 10px; }

/* 종이(입력) */
.paper {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.paper textarea {
  display: block;
  width: 100%;
  min-height: 30dvh;
  padding: 52px 18px 18px;
  border: 0;
  background: transparent;
  resize: none;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-all;
}
.paper textarea::placeholder { color: var(--ash-2); font-family: var(--font); }
.paper textarea:focus { outline: none; }
.paper:focus-within { border-color: var(--text); }
.paste {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fuse-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
}
.paste:active { transform: scale(0.97); }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; padding: 0 4px; }
.row.gap { gap: 10px; }
.row.gap > .btn { flex: 1; }
.count { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.count b { font-weight: 500; color: var(--text); }

.lock { display: inline-flex; align-items: center; cursor: pointer; }
.lock input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lock-ui {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  min-height: 34px;
  transition: all 0.15s;
}
.lock input:checked + .lock-ui { background: var(--text); color: var(--bg); border-color: var(--text); }
.lock input:focus-visible + .lock-ui { outline: 2px solid var(--accent); outline-offset: 3px; }

.pin-row { display: flex; flex-direction: column; gap: 8px; }
.pin-row label, .field-label { font-size: 14px; font-weight: 700; }
.hint { font-size: 13px; color: var(--text-2); }
.note { font-size: 13.5px; color: var(--text-2); text-align: center; }

/* 코드 입력 */
.code-input {
  width: 100%;
  min-height: 92px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(40px, 12vw, 56px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--text);
}
.code-input::placeholder { color: var(--ash-2); letter-spacing: 0.32em; }
.code-input:focus { outline: none; border-color: var(--text); }
.code-input.small { min-height: 64px; font-size: 30px; }
.code-input.shake { animation: shake 0.4s; border-color: var(--danger); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* 버튼 */
.btn {
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 15.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.done { border-color: var(--ok); color: var(--ok); }

/* ─────────── 번호표 ─────────── */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px 18px;
  overflow: hidden;
}
/* 절취선: 번호표 아래쪽을 뜯는 자리 */
.tear {
  position: relative;
  height: 0;
  border-top: 1.5px dashed var(--line);
  margin: 0 -22px 18px;
}
.tear::before, .tear::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tear::before { left: -11px; }
.tear::after { right: -11px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.digits {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(64px, 20vw, 104px);
  line-height: 1;
  letter-spacing: 0.06em;
  display: flex;
  gap: 0.12em;
  color: var(--text);
  margin: 6px 0 10px;
}
.digits span {
  display: inline-block;
  animation: drop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.digits span:nth-child(2) { animation-delay: 0.06s; }
.digits span:nth-child(3) { animation-delay: 0.12s; }
.digits span:nth-child(4) { animation-delay: 0.18s; }
.digits span:nth-child(5) { animation-delay: 0.24s; }
.digits span:nth-child(6) { animation-delay: 0.30s; }
@keyframes drop {
  from { transform: translateY(-18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ticket-say { font-size: 13.5px; color: var(--text-2); margin-bottom: 22px; }
.ticket-say b { color: var(--text); font-weight: 800; }

/* 크게 보기: 숫자만 화면 가득. 폰을 들어 보여주거나 회의실 화면에 띄운다 */
.big {
  position: fixed; inset: 0; z-index: 20;
  background: var(--text); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px;
  text-align: center;
}
.big-say { font-size: clamp(22px, 6vw, 40px); font-weight: 800; letter-spacing: -0.01em; opacity: 0.7; }
.big-digits {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(96px, 26vw, 260px);
  line-height: 1; letter-spacing: 0.08em; text-indent: 0.08em;
}
.big-sub { font-size: 14px; opacity: 0.6; }
.big-sub b { font-family: var(--mono); }
.big-close { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 24px; right: 24px; width: auto; color: var(--bg); border-color: rgba(255,255,255,0.3); }
.ticket-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
}
.ticket-status .time { margin-left: auto; }
.time { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ash-2);
  flex: none;
}
.dot.live { background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5); animation: pulse 1.6s infinite; }
.dot.opened { background: var(--ok); }
.dot.gone { background: var(--danger); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}

/* 도화선: 오른쪽에서 왼쪽으로 타들어간다. 남은 길이가 남은 시간 */
.fuse {
  position: relative;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: visible;
}
.fuse i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 1s linear;
}
.fuse i::after {
  content: "";
  position: absolute;
  right: -4px; top: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(255, 90, 31, 0.55);
}
.fuse.out i { width: 0 !important; }
.fuse.out i::after { opacity: 0; }

/* ─────────── 읽기 ─────────── */
.reading {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 18px;
}
.reading-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.reading-head .time { margin-left: auto; }
.received {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 46dvh;
  overflow: auto;
  user-select: all;
  -webkit-user-select: all;
}
.received.dissolve { animation: dissolve 0.9s ease-in forwards; }
@keyframes dissolve {
  to { opacity: 0; filter: blur(6px); transform: translateY(6px); }
}

.gone { align-items: center; text-align: center; padding-top: 30px; }
.gone-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 64px;
  color: var(--ash-2);
  letter-spacing: 0.04em;
}
.gone h2 { font-size: 22px; font-weight: 800; }

/* ─────────── 광고 ─────────── */
.ad { display: none; margin-top: 8px; }
.ad.on {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--ash-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  overflow: hidden;
}
.ad.on.filled { border: 0; min-height: 0; }
.ad iframe, .ad img, .ad ins { max-width: 100%; }

/* 제휴 배너 (Ledger) — 페이지와 같은 언어, 같은 서체. 잉크 바탕이라 종이 위에서 광고임이 분명하다 */
.spon {
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
  background: #141416;
  color: #F1EFEA;
  border-radius: var(--r-lg);
  padding: 16px 18px 14px;
  text-decoration: none;
  letter-spacing: 0;
  text-align: left;
  transition: transform 0.15s;
}
.spon:hover { transform: translateY(-1px); }
.spon:hover em { text-decoration: underline; }
.spon-cover { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.spon-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spon-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9A9A9F;
  margin-bottom: 10px;
}
.spon-body { display: flex; gap: 14px; align-items: center; }
.spon-copy { flex: 1; display: flex; flex-direction: column; gap: 6px; font-family: var(--font); min-width: 0; }
.spon-visual { display: inline-flex; flex: none; }
.spon-embed { flex: none; display: inline-flex; border-radius: 8px; overflow: hidden; background: #fff; }
.spon-embed iframe { display: block; border: 0; width: 120px; height: 240px; }
.spon-copy b { font-size: 17px; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.spon-copy small { font-size: 12.5px; color: #B4B3AE; line-height: 1.5; }
.spon-copy em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #FF5A1F;
  margin-top: 4px;
}
.spon-device { width: 46px; height: 86px; flex: none; }
.spon-row { display: flex; flex-direction: column; gap: 10px; }
.spon-row .spon { padding: 14px 16px 12px; }
.spon-row .spon-copy b { font-size: 15.5px; }
.spon-row .spon-device { width: 38px; height: 72px; }
.spon-coupang { background: #1F1416; }
.spon-coupang .spon-copy em { color: #FF7A59; }
.spon-note {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2E2E33;
  font-family: var(--font);
  font-size: 10.5px;
  color: #7B7B80;
  line-height: 1.4;
}

/* ─────────── 토스트 ─────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: calc(100% - 32px);
  text-align: center;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }

/* ─────────── 설명 ─────────── */
.info { border-top: 1px solid var(--line); margin-top: 8px; }
.info-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px var(--pad) 16px;
  display: grid;
  gap: 36px;
}
.info h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.steps li span { padding-top: 2px; }
.steps b {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.uses { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.uses li {
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface);
}
.keeps { list-style: none; display: grid; gap: 10px; }
.keeps li { font-size: 14.5px; color: var(--text-2); padding-left: 14px; position: relative; }
.keeps li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-size: 14.5px;
  font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--text-2); }
details[open] summary::after { content: "–"; }
details p { font-size: 14px; color: var(--text-2); padding: 0 0 14px; }

.foot { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--pad) 28px;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-2);
  font-family: var(--mono);
}
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ─────────── PC ─────────── */
@media (min-width: 900px) {
  .app { max-width: 1120px; padding-top: 34px; }
  .hero { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin: 12px 0 40px; }
  .hero h1 { font-size: 56px; }
  .hero-sub { font-size: 18px; margin-top: 14px; }
  .demo { min-height: 236px; grid-template-columns: 1fr 64px 1fr; }
  .demo.s-travel .wire i, .demo.s-input .wire i { transform: translateX(62px); }
  .bubble { font-size: 15px; padding: 10px 18px; }
  .demo-cap { font-size: 14.5px; }
  .dev-bar { font-size: 10.5px; padding: 9px 12px; }
  .dev-screen { padding: 14px; }
  .dev-screen > * { inset: 14px; }
  .d-text, .d-out { font-size: 12.5px; }
  .d-ticket b { font-size: 44px; }
  .d-input span { min-width: 120px; height: 48px; font-size: 26px; }
  .d-gone b { font-size: 34px; }
  .tabs { display: none; }
  .panels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .panel[hidden] { display: block !important; }
  /* PC에서는 받는 사람일 때가 많다. 받기를 왼쪽에 */
  #panel-receive { order: 0; }
  #panel-send { order: 1; }
  .panel::before {
    content: attr(data-title);
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 12px;
  }
  .paper textarea { min-height: 260px; }
  .code-input { min-height: 112px; font-size: 64px; }
  .received { max-height: 360px; }
  .info-inner { grid-template-columns: 1fr 1fr 1.2fr; gap: 48px; padding-top: 48px; }
  .spon-row { flex-direction: row; }
  .spon-row .spon { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
