/* notelayer 첫 화면: 위쪽 막대 · 「notelayer 켜기」 입구 · 예시 */
:root {
  --bg: #f3efe6; --paper: #fffdf7; --ink: #2b2b2b; --muted: #7a7166; --line: #e8dfcf;
  --ui: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); }
button { font: inherit; }

/* ── 위쪽 막대 ── */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: rgba(255,255,255,.94); border-bottom: 1px solid #e5e7eb; backdrop-filter: blur(6px); font: 14px var(--ui); color: #1f2328; }
.bar .brand { font: 700 15px var(--ui); letter-spacing: -.01em; color: #111827; margin-right: 4px; }
.bar .act { border: 1px solid #d1d5db; background: #fff; padding: 6px 12px; border-radius: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.bar .act:hover { background: #f9fafb; }

/* ── 맨 위: 핵심 입구(「notelayer 켜기」 즐겨찾기 버튼) ── */
.bm { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #f59e0b; color: #fff; font-weight: 600; text-decoration: none; cursor: grab; }
.hero { position: relative; max-width: 780px; margin: 22px auto 0; padding: 22px 24px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(17, 24, 39, .06); }
.hero-main { display: flex; align-items: center; gap: 20px; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.4; letter-spacing: -.01em; }
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.bm-big { padding: 12px 22px; font-size: 16px; box-shadow: 0 4px 14px rgba(245, 158, 11, .35); }
.bm-big:hover { background: #d97706; }
.hero-drag { font-size: 12px; color: var(--muted); }
.hero-steps { margin: 18px 0 4px; padding: 14px 16px 2px 34px; background: var(--bg); border-radius: 12px; font-size: 13.5px; line-height: 1.65; }
.hero-steps li { margin-bottom: 10px; }
.hero kbd { font: 12px var(--ui); padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--paper); }
.hero-fold { position: absolute; right: 14px; bottom: 10px; border: 0; background: none; color: var(--muted); font: 12px var(--ui); cursor: pointer; padding: 2px 4px; }
.hero-fold:hover { color: var(--ink); text-decoration: underline; }
.hero.folded { padding-bottom: 34px; }
.hero.folded .hero-sub, .hero.folded .hero-steps { display: none; }
.hero.folded h1 { font-size: 16px; margin: 0; }
@media (max-width: 600px) {
  .hero { margin: 14px 12px 0; padding: 18px 16px 34px; }
  .hero-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero h1 { font-size: 18px; }
}

/* ── 예시: 예시 화면을 그대로 끼워, 읽던 페이지에서 켰을 때의 모습을 보여 준다 ── */
.examples { max-width: 980px; margin: 18px auto 40px; padding: 0 16px; }
.ex-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.ex-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.ex-tab { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 13px var(--ui); cursor: pointer; text-decoration: none; }
.ex-tab[aria-selected="true"] { background: #111827; color: #fff; border-color: #111827; }
.ex-link { color: var(--muted); }
.ex-open { margin-left: auto; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.ex-open:hover, .ex-link:hover { text-decoration: underline; }
.ex-frame { display: block; width: 100%; height: min(78vh, 900px); min-height: 520px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 6px 24px rgba(17, 24, 39, .06); }
@media (max-width: 600px) { .examples { padding: 0 12px; } .ex-open { margin-left: 0; flex-basis: 100%; } .ex-frame { height: 72vh; min-height: 420px; } }

/* ── 잠깐 뜨는 알림 ── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; max-width: min(640px, calc(100vw - 32px));
  background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font: 14px/1.5 var(--ui); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
