/* 지면 데모 — craft 광고 카드 + 터미널 상태줄 목업. `/about`과 `/advertise`가 함께 쓴다.
 *
 * ⚠️ 이 파일은 `extension/src/content/ad-slot.ts`의 `renderCraft()` + `SITE_TOKENS`의 쌍둥이다.
 *    값(토큰·기하)은 거기서 그대로 옮긴다. 한쪽을 바꾸면 반드시 다른 쪽도 바꿀 것.
 *    (`backend/public/partner.html`의 광고주 미리보기도 같은 쌍둥이이고, 아직 자기 사본을 쓴다.)
 *
 * 왜 파일로 뺐나: 2026-08-19까지 같은 카드를 그리는 곳이 셋이었고 그중 둘이 각자 낡았다.
 * partner는 08-05에 craft로 고쳤는데 about은 그날부터 8/19까지, advertise는 그 뒤에도
 * **폐기된 classic**을 그리고 있었다. prod는 DESIGN_MODE=on이라 유저 100%가 craft를 본다
 * = 랜딩과 영업 페이지가 **아무도 못 보는 카드**를 보여주고 있었다. 사본을 하나 더 만드는 대신
 * 어긋날 수 있는 부분을 한 곳으로 모은다.
 *
 * 전제(쓰는 페이지가 갖춰야 할 것): --mono/--soft/--line/--ink 변수, `pulse` 키프레임.
 */

/* ── 지면 토글 ─────────────────────────────────────────────────────────────
   오른쪽 지갑 데모의 .dlink(자세히 보기)와 같은 자리·같은 여백에 놓는다.
   ⚠️ 데모 **아래**여야 한다 — 위에 두면 왼쪽 목업이 오른쪽 지갑보다 밀려 시작선이 어긋난다. */
.sitetog { display: flex; gap: 6px; margin-top: 10px; padding: 8px 0; justify-content: center; }
.sitetog .tog { font: inherit; font-size: 12px; font-weight: 600; color: var(--soft);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
  cursor: pointer; transition: color .14s ease, border-color .14s ease; }
.sitetog .tog:hover { color: var(--ink); }
.sitetog .tog[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

/* ── craft 광고 카드 (ad-slot.ts renderCraft()와 동일) ────────────────────
   토큰 기본값 = ChatGPT 라이트. JS가 안 붙는 정적 예시(광고 포맷 샘플 등)도 그냥 그려진다.
   토글이 있는 데모에서는 craft-demo.js가 이 값을 지면별로 덮어쓴다. */
:root {
  --c-sans: -apple-system, 'Apple SD Gothic Neo', 'Pretendard', system-ui, sans-serif;
  --c-surface: #f7f7f8; --c-surface-hover: #f0f0f2; --c-border: 1px solid #e7e7ec; --c-radius: 16px;
  --c-ink: #0d0d0d; --c-sub: #676767; --c-brand: #8e8ea0; --c-label: #acacba; --c-accent: #10a37f;
  --c-brandfont: var(--c-sans); --c-brandweight: 600; --c-brandls: 0; --c-brandsize: 11.5px;
}
.card { font: 13px/1.4 var(--c-sans); border: var(--c-border); border-radius: var(--c-radius);
  padding: 11px 13px; display: flex; gap: 11px; align-items: center; background: var(--c-surface);
  min-height: 60px; box-sizing: border-box; transition: background .14s ease; }
.card:hover { background: var(--c-surface-hover); }
.card .ctxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card .meta { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 11.5px; }
.card .brand { font-family: var(--c-brandfont); font-weight: var(--c-brandweight); letter-spacing: var(--c-brandls);
  font-size: var(--c-brandsize); color: var(--c-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .label { flex: none; color: var(--c-label); font-size: 10.5px; }
.card .h { font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: var(--c-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .14s ease; }
.card:hover .h { color: var(--c-accent); }
.card .b { font-size: 12.5px; color: var(--c-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .rep { font-size: 10.5px; color: var(--c-label); flex: none; align-self: flex-start; opacity: .5; }
/* 썸네일(이미지형). renderCraft()는 40px 타일에 object-fit:cover 를 쓴다. */
.card .tile { width: 40px; height: 40px; flex: none; border-radius: 9px; overflow: hidden; display: flex; }
.card .tile img { width: 100%; height: 100%; object-fit: cover; }
.card .tile-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg,#0c5f56,#0d6e6e); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: -.02em; }

/* ── 호스트 목업의 바탕색 ──────────────────────────────────────────────────
   카드만 호스트 네이티브이고 주변이 아무 사이트나 되면 "실제로 이렇게 보인다"가 성립하지 않는다.
   craft-demo.js가 --m-* 를 #demo-mock 에 건다.
   ⚠️ 각 페이지의 인라인 <style>이 이 파일보다 **뒤에** 오므로, 같은 특정도면 인라인이 이긴다.
      그래서 색은 여기서만 선언하고 페이지 인라인에서는 빼둔다(레이아웃만 남긴다). */
.demo { background: var(--m-page, #fff); transition: background .14s ease; }
.msg-user { background: var(--m-bubble, #eef6f5); }
.composer { border-color: var(--m-cline, #e2e5e8); color: var(--m-ghost, #b6bcc2); }
.composer .send { background: var(--c-accent, #0c5f56); }

/* ── 터미널 상태줄 목업 ────────────────────────────────────────────────────
   색은 실제 ANSI 출력의 역할을 그대로 옮긴 것이다(제품 재현이라 색 규율 예외).
   구조: <기존 상태줄>  ⏰ 광고·AD <헤드라인> · <광고주명>
   ⚠️ 손으로 그리지 말 것. `statusline.mjs`를 격리 실행해 뽑은 실출력이 원본이다.
   ⚠️ `.demo.demo-term`으로 특정도를 올린다 — `.demo` 하나만 쓰면 페이지 인라인의 `.demo`가
      순서로 이겨서 **터미널 목업이 흰 바탕으로 나온다**(2026-08-20에 실제로 그랬다). */
.demo.demo-term { background: #14171a; border-color: #2b2f33; }
.demo-term .term-bar { background: #1b1f22; border-bottom-color: #2b2f33; }
.demo-term .term-bar .u { color: #8b939c; }
.term-body { padding: 13px 14px 0; font: 12.5px/1.7 var(--mono); color: #c8cdd3; background: #14171a; }
.t-in { color: #e6eaee; }
.t-caret { color: #6b7681; margin-right: 6px; }
.t-out { margin-top: 9px; }
.t-dot { color: #4ec9a7; margin-right: 6px; }
.t-sub { color: #7d8792; padding-left: 15px; }
.t-wait { color: #8b939c; margin-top: 9px; }
.t-el { animation: pulse 1.1s ease-in-out infinite; }
.t-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px;
  margin: 13px -14px 0; padding: 9px 14px; border-top: 1px solid #2b2f33; background: #101315; }
.t-prev { color: #6b7681; }
.t-clock { color: #c8cdd3; }
.t-label { color: #6b7681; }                    /* ANSI dim */
.t-head { color: #f2f5f7; font-weight: 700; }   /* ANSI bold · 광고주 링크 */
.t-sep { color: #6b7681; }
.t-brand { color: #4bc2d4; }                    /* ANSI cyan */

/* ── 지갑 데모의 터미널 카드 ───────────────────────────────────────────────
   ⚠️ 카드 하나가 **여러 CLI를 대표한다** — 마더 페이지(wallet.html CARD_DEFS)와 같은 규칙.
   도구명을 박으면 Gemini CLI만 쓰는 사람이 "Claude Code" 카드를 보게 된다(거짓말). */
.wcard.ct { background: linear-gradient(165deg,#2b2b30,#17171b); }
/* 주머니가 카드 아래쪽(지갑 38% 지점부터)을 덮는다. 가운데 정렬하면 글자가 잘린다 —
   이미지 카드가 로고를 위쪽에 두는 것과 같은 이유. */
.wcard .lbl { font: 700 10.5px/1.25 var(--mono); color: #e8e8ea; text-align: center;
  padding: 0 4px; margin-top: 16%; }
