/* 랜딩 v3 시안. landing.css 위에 얹는다.
   흐름 띠, 새 장면(인용·그림 카드, 논문 찾기, 서재·노트 등), 기능 목록, 기능 페이지, 시안 전환 막대.
   앱 화면 조각은 client/styles의 실제 값(viewer-references.css, paper-search.css, home.css, library.css, notes.css)을 옮겼다. */

:root { --paper: color-mix(in srgb, var(--bg) 55%, #fff); --ink70: color-mix(in srgb, var(--ink) 70%, transparent); }

/* ---------- 머리: 기능 메뉴 ---------- */
.nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 7px; }
/* 메뉴는 가운데 링크 묶음 기준으로 놓아야 좁은 노트북에서도 화면 밖으로 안 나간다 */
.nav-links { position: relative; }
.nav-feat { display: flex; align-items: center; }
.nav-feat > a::after { content: "∨"; margin-left: 5px; font-size: 10px; color: var(--ink-faint); vertical-align: 1px; }
.feat-menu {
  position: absolute; top: calc(100% + 20px); left: 50%; z-index: 20;
  width: 780px; padding: 18px 22px 14px;
  border-radius: 8px; background: var(--paper);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 9%, transparent), 0 0 0 1px var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 22px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.feat-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav-feat:hover .feat-menu, .nav-feat:focus-within .feat-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fm-col h5 { font-size: 12.5px; font-weight: 400; color: var(--ink-faint); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav-links .fm-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-soft); opacity: 1; white-space: nowrap; }
.nav-links .fm-col a:hover { color: var(--ink); }
.fm-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.nav-links .fm-foot a { opacity: 1; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

/* ---------- 앱 창 안 공통: 머리 메뉴 ---------- */
.ap-nav { flex: none; height: 46px; display: flex; align-items: center; gap: 26px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 13.5px; }
.ap-logo { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink); }
.ap-logo img { width: 18px; height: 18px; }
.ap-menu { display: flex; gap: 20px; color: var(--ink-faint); }
.ap-menu .on { color: var(--ink); }
.ap-right { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--ink-soft); font-size: 13px; }
.ap-btn { display: inline-flex; align-items: center; white-space: nowrap; height: 28px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 8px; color: var(--ink); font-size: 12.5px; }
.ap-dot { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.ap-body { flex: 1; min-height: 0; overflow: hidden; position: relative; background: var(--bg); }
.tbtn { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.tbtn.main { border-color: var(--ink); }
.tl { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
.faint { color: var(--ink-faint); }
.soft { color: var(--ink-soft); }
.caret::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--ink); animation: caret 1s steps(1) infinite; }

/* ---------- 인용·그림 카드 장면 ---------- */
.vw-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid rgba(39, 38, 30, 0.11); background: #fbfbf8; font-size: 12.5px; color: #6e6d66; white-space: nowrap; }
.vw-crumb { color: #6e6d66; }
.vw-title { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.vw-pager { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.vw-pager b { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border: 1px solid var(--line-strong); border-radius: 5px; font-weight: 400; color: var(--ink); }
.vw-modes { display: inline-flex; gap: 2px; margin-left: 10px; }
.vw-modes span { position: relative; padding: 0 10px; line-height: 38px; color: var(--ink-soft); }
.vw-modes span.on { color: var(--ink); font-weight: 600; }
.vw-modes span.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); }
.vw-spacer { flex: 1; }
.vw-tool { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 6px; }
.vw-switch { position: relative; width: 22px; height: 12px; border-radius: 6px; background: #cc7d5e; }
.vw-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.cf-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f1f0eb; }
/* 2쪽 아래 3쪽이 이어지는 뷰어처럼: 쪽 묶음을 통째로 옮긴다(js/scenes.js frame) */
.cf-pages { position: absolute; left: 5%; top: 0; width: 90%; transition: transform 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
.cf-page { position: relative; aspect-ratio: 595.28 / 841.89; margin-bottom: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.cf-page img { width: 100%; }
.vr-mark { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 2px; transition: background-color 0.15s ease; }
.vr-mark.is-ref.hot { background: color-mix(in srgb, #2f5aa8 16%, transparent); }
.vr-mark.is-figure { border-bottom: 1px dotted color-mix(in srgb, var(--ink) 55%, transparent); }
.vr-mark.is-figure.hot { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.vr-card {
  position: absolute; z-index: 3; width: 384px; max-width: calc(100% - 24px);
  padding: 12px 14px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--card); box-shadow: 0 6px 18px rgba(30, 28, 18, 0.09);
  font-size: 13px; line-height: 1.55; word-break: keep-all; text-align: left;
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease;
}
.vr-card.show { opacity: 1; transform: none; }
.vr-card.static { position: relative; opacity: 1; transform: none; }
.vr-raw { color: var(--ink-faint); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vr-raw b { color: var(--ink-soft); font-weight: 500; margin-right: 4px; }
.vr-title { margin: 6px 0 2px; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.vr-meta { color: var(--ink-soft); font-size: 12.5px; }
.vr-lab { margin: 8px 0 1px; color: var(--ink-faint); font-size: 12px; }
.vr-abs { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.vr-abs.streaming { color: var(--ink-faint); }
.vr-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.vr-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
.vr-link.soft { color: var(--ink-soft); }
.vr-sep { color: var(--ink-faint); }
.vr-others { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; color: var(--ink-faint); font-size: 12px; }
.vr-others .vr-link { color: var(--ink-soft); }
.vr-others .vr-link.is-current { color: var(--ink); font-weight: 500; text-decoration-color: var(--ink); }
.vr-note { margin-top: 6px; color: var(--ink-faint); font-size: 12.5px; }
.vr-figbox { margin: 8px 0 6px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.vr-figbox img { width: 100%; max-height: 210px; object-fit: contain; }
.vr-caption { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 논문 찾기 장면 ---------- */
.ps { container-type: inline-size; display: flex; flex-direction: column; gap: 11px; height: 100%; padding: 18px 30px 0; font-size: 14px; line-height: 1.5; transition: transform 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
/* 검색을 마치면 검색창 쪽은 위로 밀어 올리고 그만큼 결과를 더 보여 준다(v3: scenes.js가 --lift를 잰다) */
.ps.lifted { height: calc(100% + var(--lift, 0px)); transform: translateY(calc(var(--lift, 0px) * -1)); }
.ps-head { display: flex; align-items: baseline; gap: 14px; }
.ps-h { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.ps-sub { color: var(--ink-soft); font-size: 13.5px; }
.ps-modes { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.ps-mode { display: flex; flex-direction: column; gap: 2px; padding-bottom: 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-soft); text-align: left; }
.ps-mode b { font-weight: 400; font-size: 14.5px; }
.ps-mode small { font-size: 12px; color: var(--ink-faint); }
.ps-mode.on { color: var(--ink); border-bottom-color: var(--ink); }
.ps-mode.on b { font-weight: 600; }
.ps-top { display: flex; align-items: center; gap: 22px; }
.ps-box { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-strong); }
.ps-field { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.ps-box svg { width: 15px; height: 15px; flex: none; color: var(--ink-faint); }
.ps-input { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; }
.ps-input:empty::before { content: "논문 제목, 키워드 · 한국어 질문도 돼요"; color: var(--ink-faint); }
.ps-go { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.ps-filters { display: flex; gap: 6px; flex: none; }
.ps-f { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.ps-f.on { background: var(--pill); color: var(--ink); }
.ps-qbox { display: flex; align-items: flex-end; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-strong); }
.ps-qtext { flex: 1; min-height: 1.6em; font-size: 15.5px; line-height: 1.6; }
.ps-qbox .ps-qstat { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.ps-qtext:empty::before { content: "궁금한 연구를 한 문장으로 써 보세요"; color: var(--ink-faint); }
.ps-q-go { font-size: 14px; white-space: nowrap; }
.ps-q { display: grid; gap: 7px; }
.ps-qmeta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-faint); margin-top: -2px; }
.ps-terms { font-size: 13px; color: var(--ink70); line-height: 1.65; }
.ps-lab { color: var(--ink-faint); margin-right: 10px; }
.ps-term { border-bottom: 1px dotted var(--ink-faint); }
.ps-log { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.ps-log ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; }
.ps-log li + li::before { content: "›"; margin: 0 7px; color: var(--ink-faint); }
.ps-log li:last-child { color: var(--ink); }
.ps-state { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.ps-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.ps-list { min-width: 0; overflow: hidden; }
.ps-trans { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; }
.ps-trans b { font-weight: 400; color: var(--ink-soft); }
.ps-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.ps-table th { padding: 6px 8px; text-align: left; font-weight: 400; font-size: 12px; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.ps-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ps-table .num { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ps-table th.num { text-align: right; }
.ps-table col.c-y { width: 50px; } .ps-table col.c-c { width: 58px; } .ps-table col.c-o { width: 64px; }
.ps-row { transition: background-color 0.2s ease, opacity 0.25s ease; }
.ps-row.sel { background: var(--card); }
.ps-row.sel .ps-rt { font-weight: 600; }
.ps-row.pending { opacity: 0; }
.ps-table thead { transition: opacity 0.25s ease; }
.ps-table thead.pending { opacity: 0; }
/* 표는 테두리를 합쳐 그려서(border-collapse) 투명도만으로는 선이 남는다. 나오기 전에는 선 색도 지운다 */
.ps-table th, .ps-table td { transition: border-color 0.25s ease; }
.ps-table thead.pending th, .ps-row.pending td { border-bottom-color: transparent; }
.ps-rt { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-rf { display: flex; gap: 12px; margin-top: 3px; font-size: 12px; }
.ps-rm { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-save { flex: none; color: var(--ink-soft); }
.ps-rq { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.ps-rq span { color: var(--ink-faint); }
.ps-pdf { color: var(--accent-text); font-size: 12px; }
.ps-pg { color: var(--ink-soft); font-size: 12px; }
.ps-detail { min-width: 0; margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); overflow: hidden; transition: opacity 0.3s ease; }
.ps-detail.pending { opacity: 0; }
.ps-dt { font-size: 18px; font-weight: 500; line-height: 1.4; }
.ps-dwho { margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }
.ps-dwhere { font-size: 12.5px; color: var(--ink70); }
.ps-jump { margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }
.ps[data-mode="question"] .ps-jump { display: none; }
.ps-qrel { margin-top: 8px; padding: 8px 11px; border-left: 2px solid var(--line-strong); background: var(--card); font-size: 13px; line-height: 1.6; }
.ps-qrel b { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.ps-judge { display: grid; gap: 5px; margin-top: 10px; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-judge > div { display: grid; grid-template-columns: 36px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.ps-judge dt { font-size: 12.5px; color: var(--ink-soft); }
.ps-judge .wait { color: var(--ink-faint); font-size: 13px; }
.ps-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); }
.ps-acts .tl { color: var(--ink-soft); }
.ps-acts .sep { color: var(--ink-faint); margin: 0 -4px; }
.ps-note { margin-top: 6px; font-size: 12px; color: var(--ink70); }
.ps-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ps-sec-h h5 { font-size: 13px; font-weight: 500; }
.ps-tg { font-size: 12.5px; color: var(--ink-faint); }
.ps-tg b { font-weight: 400; color: var(--ink); }
.ps-abs { margin-top: 6px; font-size: 13.5px; line-height: 1.75; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.ps-abs.wait { color: var(--ink-faint); }
@container (max-width: 760px) {
  .ps { padding: 16px 16px 0; gap: 12px; }
  .ps-sub, .ps-mode small, .ps-filters, .ps-go, .ps-field { display: none; }
  /* 좁으면 목록과 상세를 옆으로 나란히 두고, 상세를 볼 때 시야를 오른쪽으로 민다 */
  /* 실제 iOS Safari에서 grid '100% 100%'가 목록 칸을 반쯤으로 좁게 잡아서, 한 칸 폭을 확실히 쓰는 flex로 둔다 */
  .ps-body { display: flex; gap: 32px; transition: transform 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
  .ps-list, .ps-detail { flex: 0 0 100%; }
  .ps[data-mode="keyword"].show-detail .ps-body { transform: translateX(calc(-100% - 32px)); }
  /* 연구 질문: 지형 → 목록 → 상세 */
  .ps[data-mode="question"].show-list .ps-body { transform: translateX(calc(-100% - 32px)); }
  .ps[data-mode="question"].show-detail .ps-body { transform: translateX(calc(-200% - 64px)); }
  .ps-land { flex: 0 0 100%; }
  .ps.show-detail .ps-land { opacity: 1; }
  .pl-where { display: none; }
  /* 좁으면 질문 문장이 한 줄을 다 쓰고, 남은 횟수·찾기는 그 아래 오른쪽으로 */
  .ps-qbox { flex-wrap: wrap; row-gap: 2px; }
  .ps-qtext { flex-basis: 100%; }
  .ps-qbox .ps-qstat { margin-left: auto; }
  .ps-detail { margin: 0; padding: 0; border: 0; }
  /* WebKit(아이폰)은 고정 표에서 숨긴 열의 col 폭을 0으로 줘도 남는 폭을 그 빈 열에 나눠 줘서 목록이 짧아진다. col째 뺀다 */
  .ps-table col.c-c, .ps-table col.c-o { display: none; }
  .ps-table .c-hide { display: none; }
}

/* ---------- 홈 조각: 입력칸, 이어 읽기, 읽을 논문, 새로 나온 소식 ---------- */
.hm { padding: 26px 30px; font-size: 14px; line-height: 1.5; }
.hm-omni { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink-faint); transition: border-color 0.2s ease; }
.hm-omni.focus { border-color: var(--ink); }
.hm-omni svg { width: 17px; height: 17px; flex: none; }
.hm-in { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.hm-in:empty::before { content: "PDF를 끌어 놓거나, arXiv 번호·DOI를 붙여 넣거나, 연구 질문을 적어 보세요"; color: var(--ink-faint); }
.hm-tb { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.hm-kbd { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.hm-hint { margin-top: 9px; font-size: 12.5px; color: var(--ink-faint); min-height: 1.5em; }
.hm-hint b { font-weight: 400; color: var(--ink-soft); }
.hm-hint .tl { color: var(--ink); }
.hm-sec { margin-top: 26px; }
.hm-sec-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hm-sec-h h6 { font-size: 14.5px; font-weight: 500; }
.hm-sec-c { font-size: 12.5px; color: var(--ink-faint); }
.hm-more { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.hm-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: opacity 0.3s ease, transform 0.3s ease; }
.hm-row.pending { opacity: 0; transform: translateY(4px); }
.hm-thumb { width: 28px; height: 37px; border: 1px solid var(--line-strong); border-radius: 1.5px; background: #fff; overflow: hidden; }
.hm-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* 서재에 아직 없는 논문: 점선 대신 제목 줄과 글줄만 그린 작은 쪽 */
.hm-thumb.empty { background: linear-gradient(rgba(39, 38, 30, 0.42), rgba(39, 38, 30, 0.42)) 50% 6px / 16px 2px no-repeat, repeating-linear-gradient(to bottom, rgba(39, 38, 30, 0.16) 0 1px, transparent 1px 4px) 50% 12px / 18px 21px no-repeat, #fff; }
.hm-t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-m { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-acts { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.hm-feed-key { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.hm-feed-key b { font-weight: 500; color: var(--ink); }
.hm-feed { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hm-feed p { font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.hm-feed small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.hm-feed .hm-acts { align-self: start; }

/* ---------- 다음 읽을거리(번역 패널 안) ---------- */
.nr-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fbfbf8; }
.app-body.nr-app { grid-template-columns: 1fr min(430px, 58%); }
.nr-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 20px; }
.nr-pg { padding: 14px 0; }
.vr-list { font-size: 14px; line-height: 1.5; }
.vr-list-top { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vr-list-top p { font-size: 12.5px; color: var(--ink-faint); }
.vr-sort { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); }
.vr-sort span { white-space: nowrap; }
.vr-sort .on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.vr-row { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vr-row-n { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; padding-top: 2px; }
.vr-row-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-row-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 12px; color: var(--ink-faint); }
.vr-row-meta .vr-acts { margin: 0 0 0 auto; padding: 0; border: 0; font-size: 12px; }

/* ---------- 관련 논문 시간선 ---------- */
.tl-wrap { padding: 22px 26px; font-size: 13px; }
.tl-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tl-h h6 { font-size: 13.5px; font-weight: 500; }
.tl-svg { display: block; width: 100%; height: auto; max-height: 232px; margin-top: 8px; overflow: visible; }
.tl-svg text { font-family: var(--font-sans); font-size: 10.5px; fill: var(--ink-soft); }
.tl-svg .cap { fill: var(--ink-faint); font-size: 10.5px; }
.tl-svg .pt { transition: opacity 0.3s ease; }
.tl-svg .pt.pending { opacity: 0; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12px; color: var(--ink-faint); }
.tl-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; vertical-align: 0; }

/* ---------- 내 서재 표 ---------- */
.lb { padding: 22px 26px; font-size: 13.5px; }
.lb-h { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.lb-h span { font-size: 14px; color: var(--ink-faint); margin-left: 6px; }
.lb-tools { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; font-size: 13px; color: var(--ink-faint); }
.lb-tools .on { color: var(--ink); font-weight: 500; }
.lb-tools .n { font-size: 11.5px; margin-left: 3px; color: var(--ink-faint); font-weight: 400; }
.lb-sbox { margin-left: auto; width: 200px; height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink-faint); font-size: 12.5px; }
.lb-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lb-table th { padding: 6px 8px; text-align: left; font-weight: 400; font-size: 12px; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.lb-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-m { margin-top: 2px; font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-num { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-exp { color: var(--accent-text); }
.lb-st.r1 { color: var(--ink-soft); } .lb-st.r2 { color: var(--ink); } .lb-st.r3 { color: var(--ink-faint); }
.lb-row { transition: background-color 0.25s ease; }
.lb-row.hot { background: var(--card); }

/* ---------- 노트 표 ---------- */
.nt { padding: 22px 26px; font-size: 13.5px; }
.nt-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.nt-title { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.nt-lead { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.nt-acts { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.nt-kinds { display: flex; gap: 16px; margin: 14px 0 4px; font-size: 13px; color: var(--ink-faint); }
.nt-kinds .on { color: var(--ink); font-weight: 500; }
.nt-kinds .n { font-size: 11.5px; margin-left: 3px; font-weight: 400; color: var(--ink-faint); }
.nt-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.nt-table th { padding: 6px 8px; text-align: left; font-weight: 400; font-size: 12px; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.nt-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nt-en { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ko { margin-top: 1px; font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-pap small { display: block; font-size: 11.5px; color: var(--ink-faint); }
.nt-kind { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.nt-sq { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(39, 38, 30, 0.16); vertical-align: 0; }
.nt-sq.hollow { background: transparent; }
.nt-memo { font-size: 12.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-row { transition: background-color 0.25s ease; }
.nt-row.hot { background: var(--card); }

/* ---------- Markdown 받기 미리보기 ---------- */
.md-pop { position: absolute; right: 22px; top: 72px; width: min(440px, calc(100% - 44px)); padding: 14px 16px 16px; border-radius: 8px; background: var(--paper); box-shadow: 0 8px 24px rgba(30, 28, 18, 0.1), 0 0 0 1px var(--line); font-size: 13px; }
.md-h { display: flex; justify-content: space-between; font-size: 13.5px; }
.md-h span { color: var(--ink-faint); font-size: 12.5px; }
.md-tg { display: flex; gap: 14px; margin: 10px 0 8px; font-size: 12.5px; color: var(--ink-faint); }
.md-tg .on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.md-pre { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--ink-soft); white-space: pre-wrap; word-break: break-word; }
.md-pre b { font-weight: 400; color: var(--ink); }
.md-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-faint); }

/* ---------- 휴대폰 ---------- */
/* 휴대폰: 운영 휴대폰 뷰어(논문 아래 '번역 | ASK AI' 시트, 문장 눌러 질문)를 줄인 모습. 크기는 장면 칸 높이를 따라간다 */
.ph-stage { display: flex; align-items: center; justify-content: center; container-type: size; }
.ph { position: relative; height: min(720px, calc(100cqh - 44px)); aspect-ratio: 0.476; min-width: 0; padding: 10px; border-radius: 44px; background: #1f1e19; box-shadow: 0 24px 60px rgba(30, 28, 18, 0.3), inset 0 0 0 1.5px #3a3933; }
.ph-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #e9e8e2; display: flex; flex-direction: column; }
/* 상태 표시줄: 가운데 다이내믹 아일랜드, 시각은 왼쪽 귀 가운데, 신호·와이파이·배터리는 오른쪽 귀 가운데 */
.ph-status { flex: none; height: 44px; display: grid; grid-template-columns: 1fr 31% 1fr; align-items: center; padding-top: 2px; color: var(--ink); background: #fbfbf8; }
.ph-time { justify-self: center; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.ph-island { justify-self: center; width: 100%; aspect-ratio: 3.4; border-radius: 999px; background: radial-gradient(circle at 80% 50%, #233150 0 8%, #111 9%); }
.ph-sys { justify-self: center; display: flex; align-items: center; gap: 4px; }
.ph-sys svg { display: block; }
.ph-bar { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(39, 38, 30, 0.11); background: #fbfbf8; font-size: 12px; color: #6e6d66; white-space: nowrap; overflow: hidden; }
.ph-bar b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
/* 논문: 본문 단(107.5–505.7pt)에 양옆 10pt를 더한 폭이 화면 폭을 채우게 키운다(여백만 잘라 낸다) */
.ph-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.ph-pg { position: absolute; left: -23.31%; top: 0; width: 146.34%; transform: translateY(-35%); }
.ph-pg img { display: block; width: 100%; }
.ph-mk { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 2px; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.2s ease; }
/* 운영의 번역 짝 색(0.16)은 장면에서 잘 안 보여 조금 진하게 */
.ph-mk.pair { background: rgba(204, 125, 94, 0.26); }
.ph-mk.tap { background: rgba(204, 125, 94, 0.28); }
.ph-mk.on { opacity: 1; }
.ph-ask { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1% + 7px); z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; background: #cc7d5e; color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: 0 4px 12px rgba(30, 28, 18, 0.16); opacity: 0; transform: translateY(-3px); transition: opacity 0.18s ease, transform 0.18s ease; }
.ph-ask.on { opacity: 1; transform: none; }
.ph-ask svg { width: 14px; height: 14px; }
/* 시트: 휴대폰에서는 논문 아래 자리를 나눠 쓴다(논문 위에 덮지 않는다) */
.ph-sheet { flex: 0 0 50%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; background: #fbfbf8; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14); }
.ph-grip { flex: none; width: 36px; height: 4px; margin: 8px auto 4px; border-radius: 2px; background: var(--line-strong); }
.ph-head { flex: none; display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ph-tab { padding: 2px 2px 7px; border-bottom: 2px solid transparent; color: var(--ink-soft); }
.ph-tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.ph-side { flex: 1; min-height: 0; overflow: hidden; padding: 10px 16px 0; }
.ph-side[hidden], .ph-chat[hidden] { display: none; }
.ph-sb { margin: 0 0 10px; font-size: 13.5px; line-height: 1.75; color: var(--ink); word-break: keep-all; }
.ph-sb.h { font-weight: 700; }
.ph-sent { border-radius: 3px; transition: background-color 0.15s ease; }
.ph-sent.on { background: rgba(204, 125, 94, 0.26); }
.ph-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ph-modes { flex: none; display: flex; gap: 16px; padding: 8px 16px 0; font-size: 12px; color: var(--ink-faint); }
.ph-modes .on { color: var(--ink); }
/* 대화가 넘치면 위쪽이 흐려지며 밀려 올라간 것처럼 보이게 */
.ph-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 6px 14px 8px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px); mask-image: linear-gradient(to bottom, transparent, #000 16px); }
.ph-usel, .ph-sel { border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); font-size: 11px; line-height: 1.5; }
.ph-usel { align-self: flex-end; max-width: 86%; margin-bottom: -3px; padding: 6px 10px; }
.ph-usel span { display: block; font-size: 0.92em; opacity: 0.8; }
.ph-usel p, .ph-sel p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-q { align-self: flex-end; max-width: 86%; padding: 6px 11px; border-radius: 12px 12px 3px 12px; background: var(--accent); color: #fff; font-size: 12.5px; line-height: 1.5; }
.ph-a { align-self: flex-start; max-width: 96%; margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink); }
.ph-wait { color: var(--ink-faint); }
.ph-composer { flex: none; padding: 0 12px 22px; }
.ph-sel { display: none; margin-bottom: 6px; padding: 6px 9px 7px 10px; }
.ph-sel.on { display: block; animation: ph-in 0.2s ease; }
.ph-sel-h { display: flex; justify-content: space-between; margin-bottom: 1px; font-size: 10.5px; opacity: 0.85; }
.ph-in { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 4px 4px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 12.5px; color: var(--ink); }
.ph-in-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.ph-in-text:empty::before { content: "논문에 대해 질문하세요…"; color: var(--ink-faint); }
.ph-send { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pill); color: var(--ink-faint); transition: background 0.15s ease, color 0.15s ease; }
.ph-send.ready { background: var(--ink); color: var(--bg); }
.ph-send svg { width: 14px; height: 14px; }
/* 손가락 자리 */
.ph-touch { position: absolute; z-index: 6; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(39, 38, 30, 0.2); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.15s ease; pointer-events: none; }
.ph-touch.on { opacity: 1; transform: scale(1); }
.ph-touch.press { transform: scale(0.8); }
/* 폰이 작을 때(휴대폰 화면의 장면 칸)는 붙인 문장을 한 줄로 */
@container (max-height: 700px) { .ph-usel p { -webkit-line-clamp: 1; } }
@keyframes ph-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ph-home { position: absolute; left: 50%; bottom: 7px; z-index: 3; width: 100px; height: 4px; margin-left: -50px; border-radius: 2px; background: var(--ink); opacity: 0.85; }

/* ---------- PDFKOR ASK 앱 ---------- */
.ask-titlebar { height: 36px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg), var(--ink) 4%); font-size: 12.5px; color: var(--ink-soft); }
.ask-titlebar img { width: 16px; height: 16px; }
.ask-titlebar b { font-weight: 500; color: var(--ink); }
.linked-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 기능 목록(랜딩) ---------- */
.fx { padding-top: 140px; }
.fx-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.fx-more { font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.fx-more:hover { text-decoration-color: var(--ink); }
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.fx-col h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); font-size: 15px; font-weight: 400; }
.fx-col h3 small { font-size: 13px; color: var(--ink-faint); }
.fx-col h3 span { color: var(--ink-faint); font-size: 13px; margin-left: 8px; }
.fx-item { display: block; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.fx-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.fx-line { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.fx-item:hover .fx-name > span:first-child { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.fx-new { margin-left: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent-text); }

/* ---------- B안: 탭 하나로 접은 구역 ---------- */
/* 애플 제품 페이지처럼 제목 → 큰 화면 → 화면 아래 가운데 알약 탭 → 가운데 설명 순서 */
.tabs-sec { padding-top: 120px; }
.tabs-head { max-width: 860px; padding: 0 22px 32px; }
/* 부제는 넓으면 한 줄(789px), 좁으면 두 줄 길이를 고르게 나눠 끝말만 남는 줄이 없게 */
.tabs-head .duo span { text-wrap: balance; }
.tab-panel[hidden] { display: none; }
.tab-panel .stage { height: clamp(540px, 56vw, 700px); }
.tab-row { display: flex; width: fit-content; max-width: 100%; margin: 30px auto 0; padding: 4px; border-radius: 999px; background: var(--pill); overflow-x: auto; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
/* 가로로 넘치면 가려진 쪽 끝을 흐리게 해서 더 있다는 걸 보여 준다(v3.js가 fade-l·fade-r을 붙인다) */
.tab-row.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.tab-row.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.tab-row.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tab-row button { position: relative; flex: none; padding: 9px 20px; border-radius: 999px; overflow: hidden; font-size: 15px; color: var(--ink-soft); }
.tab-row button:hover { color: var(--ink); }
.tab-row button[aria-selected="true"] { background: var(--ink); color: var(--bg); font-weight: 500; }
/* 고른 탭만 굵어져도 탭 폭이 출렁이지 않게 굵은 글자 폭을 미리 잡아 둔다 */
.tab-name { display: inline-flex; flex-direction: column; }
.tab-name::after { content: attr(data-text); height: 0; overflow: hidden; visibility: hidden; font-weight: 500; }
/* 자동 넘김 진행은 고른 알약 안을 옅게 채우며 보여 준다 */
.tab-row.auto button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 100%; background: rgba(255, 255, 255, 0.12); animation: tab-fill var(--tab-ms, 9000ms) linear forwards; }
@keyframes tab-fill { to { width: 100%; } }
/* 설명은 넓으면 한 줄로, 좁아서 넘어가면 줄 길이를 고르게 나눠 낱말 하나만 남는 줄이 없게 한다 */
.tab-desc { max-width: 1040px; margin: 0 auto; padding: 22px 22px 28px; text-align: center; text-wrap: balance; font-size: 15px; color: var(--ink-soft); }
.tab-desc p { display: inline; }
.tab-desc b { font-weight: 400; color: var(--ink); }
.tab-plan, .tab-desc a { font-size: 13.5px; color: var(--ink-faint); white-space: nowrap; }
.tab-plan { margin-left: 8px; }
.tab-desc a { margin-left: 10px; }
.tab-desc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- 기능 페이지 ---------- */
.fp-hero { padding: 96px 0 34px; }
.fp-hero h1 { font-size: 30px; line-height: 1.38; font-weight: 400; letter-spacing: -0.02em; }
.fp-hero h1 span { display: block; color: var(--ink-soft); }
.fp-nav-wrap { position: sticky; top: 64px; z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.fp-nav { display: flex; align-items: center; gap: 28px; height: 48px; font-size: 14.5px; overflow-x: auto; scrollbar-width: none; }
.fp-nav a { flex: none; color: var(--ink-faint); }
.fp-nav a small { margin-left: 5px; font-size: 12px; }
.fp-nav a.on { color: var(--ink); }
.fp-group { padding-top: 100px; scroll-margin-top: 112px; }
.fp-gh { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 0 22px 26px; }
.fp-gh .duo { font-size: 26px; }
.fp-gh .duo span { font-size: 0.66em; max-width: 640px; }
.fp-gn { font-size: 13.5px; color: var(--ink-faint); }
.fp-item { scroll-margin-top: 130px; }
.fp-eyebrow { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 14px; }
.fp-eyebrow .plan-tag { color: var(--accent-text); }
.fp-visual { position: relative; border-radius: 4px; overflow: hidden; }
.fp-visual.mid { height: 540px; }
.fp-visual.big { height: clamp(520px, 46vw, 640px); }
/* 휴대폰 장면은 폰이 커야 논문이 읽히므로 더 높게 */
.fp-visual.tall { height: clamp(600px, 52vw, 740px); }
.fp-visual .window.fit { left: 6%; right: 6%; top: 44px; bottom: -24px; }
.fp-visual .f-window { width: 734px; }
.fp-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin: 40px 22px 0; }
.fp-small > div { padding: 12px 0 13px; border-top: 1px solid var(--line); }
.fp-small b { display: flex; justify-content: space-between; gap: 10px; font-weight: 400; font-size: 14.5px; }
.fp-small b small { font-size: 12px; color: var(--ink-faint); }
.fp-small p { margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
/* 한 줄에 하나, 글과 화면을 번갈아(사용자가 고른 A안) */
.fp-list { display: grid; gap: 24px; }
.fp-item { background: var(--card); border-radius: 4px; padding: 18px; display: grid; grid-template-columns: minmax(300px, 1fr) 2.1fr; gap: 18px; }
.fp-item.rev { grid-template-columns: 2.1fr minmax(300px, 1fr); }
.fp-item.rev .fp-text { order: 2; }
.fp-text { padding: 24px 22px; align-self: center; }
.fp-cta { padding: 160px 0 150px; text-align: center; }
.fp-cta h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; }
.fp-cta .hero-cta { justify-content: center; margin-top: 30px; }


/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .fx-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
  .fp-small { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .fp-item, .fp-item.rev { grid-template-columns: 1fr; }
  .fp-item.rev .fp-text { order: 0; }
  .fp-text { padding: 16px 10px 4px; }
}
@media (max-width: 600px) {
  .tabs-sec { padding-top: 96px; }
  .tab-panel .stage .window { left: 12px; right: 12px; }
  .vw-crumb, .vw-pager, .vw-tool, .vw-modes span:not(.on) { display: none; }
  .ap-menu, .ap-right .ap-t { display: none; }
  .fx { padding-top: 96px; }
  .fx-grid { grid-template-columns: 1fr; }
  .tabs-head { padding-bottom: 24px; }
  .tab-row { margin-top: 20px; }
  /* 탭이 줄에 3.4개만 들어가게 폭을 맞춰, 네 번째 탭이 반쯤 걸려 보이게(오른쪽에 더 있다는 표시) */
  .tab-row button { flex: 0 0 calc((100% - 8px) / 3.4); padding: 9px 6px; text-align: center; font-size: 14px; }
  .tab-desc { padding: 16px 0 22px; text-align: left; }
  .fp-hero { padding-top: 64px; }
  .fp-hero h1 { font-size: 24px; }
  .fp-gh { grid-template-columns: 1fr; padding: 0 4px 20px; }
  .fp-gh .duo { font-size: 21px; }
  .fp-small { grid-template-columns: 1fr; margin: 28px 4px 0; }
  .fp-visual.big, .fp-visual.mid { height: 540px; }
  .fp-visual.tall { height: 640px; }
  .lb-tools .lb-sbox, .lb-hide, .nt-hide { display: none; }
  /* 휴대폰: 서재·노트·홈 조각은 PC 가로 배치를 그대로 두면 제목이 한두 글자만 남거나 한 단어씩 꺾인다.
     안쪽 여백을 줄이고, 버튼·설명은 제목 아래 줄로 내린다. 서재는 상태 열을 빼고(필터로 보임) 보관 열만 둔다 */
  .lb, .nt { padding: 18px 16px; }
  .hm { padding: 20px 16px; }
  .lb-tools { gap: 10px; overflow: hidden; }
  .lb-tools .n { display: none; }
  .lb-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
  .hm-kbd { display: none; }
  .lb-tools > span, .nt-kinds > span { white-space: nowrap; }
  .lb-table th .faint { display: none; }
  .lb-table td, .lb-table th { padding-left: 6px; padding-right: 6px; }
  .nt-headrow { flex-direction: column; gap: 10px; }
  .hm-sec-h { flex-wrap: wrap; row-gap: 2px; }
  .hm-sec-h > * { white-space: nowrap; }
  .hm-sec-h .hm-sec-c { order: 1; flex-basis: 100%; }
  .hm-row { grid-template-columns: auto 1fr; row-gap: 8px; align-items: start; }
  .hm-row .hm-thumb { grid-row: span 2; }
  .hm-row .hm-acts { grid-column: 2; }
  .hm-feed { grid-template-columns: 1fr; gap: 6px; }
  .md-pop { right: 12px; left: 12px; top: 12px; width: auto; }
  .md-tg, .md-foot > span:first-child { display: none; }
  .md-foot { justify-content: flex-end; }
  .md-pre { font-size: 11px; }
  /* 휴대폰: 옆 패널만 보여 주는 장면(다음 읽을거리, ASK 앱, 요약), 넓은 창을 옆으로 밀어 보여 주는 장면(사이드 번역, 질문) */
  .app-body.nr-app, .app-body.ask-body { grid-template-columns: 1fr; }
  .nr-app .viewer, .ask-body .viewer, .nr-app .sd-follow { display: none; }
  .summary-app { grid-template-columns: 1fr !important; }
  .summary-app .zoom { display: none; }
  .fp-visual .window:has(> .side-app:not(.nr-app)) { left: 16px; right: auto; width: 1088px; max-width: none; }
}

/* 기능 페이지: 요약·하이라이트용 새 유화 무대(밤·초원 그림의 색을 바꿔 만듦, 다른 장면과 겹치지 않게) */
.stage.lavender::before { background-image: url("../assets/stage/lavender.webp"); }
.stage.clay::before { background-image: url("../assets/stage/clay.webp"); }
@media (max-width: 600px) {
  .stage.lavender::before { background-image: url("../assets/stage/lavender-m.webp"); }
  .stage.clay::before { background-image: url("../assets/stage/clay-m.webp"); }
}
/* 창이 무대 아래로 24px 넘치므로 질문 입력칸을 그만큼 올린다(랜딩 히어로와 같은 처리) */
.fp-visual .chat { padding-bottom: 38px; }
/* 논문 찾기·연구 질문·사이드 번역은 넓어야 제 모습이 나와 한 줄을 다 쓴다(글 위, 화면 아래) */
.fp-item.wide { grid-template-columns: 1fr; }
.fp-item.wide .fp-text { max-width: 860px; padding: 22px 22px 4px; }
.fp-item.wide .fp-visual { height: clamp(560px, 50vw, 700px); }
/* 요약·하이라이트 창은 무대 안에 띄워 사방으로 그림이 보이게 */
.fp-visual.float .window { left: 6%; right: 6%; top: 7%; bottom: 7%; }
.fp-visual .window.f-window { position: absolute; left: max(16px, 5%); right: max(16px, 5%); top: 44px; bottom: -24px; width: auto; height: auto; transform: none; }
@media (max-width: 600px) {
  /* 위 규칙보다 뒤에 둬야 이긴다: 휴대폰에서는 랜딩처럼 넓은 창을 옆으로 밀어 질문 패널을 보여 준다 */
  .fp-visual .window.f-window { right: auto; width: 734px; }
}
/* 아주 좁은 휴대폰(360px 미만)은 '인용·그림 카드'가 잘리지 않게 한 칸을 조금 넓힌다(여전히 네 번째 탭이 걸쳐 보인다) */
@media (max-width: 359px) {
  .tab-row button { flex-basis: calc((100% - 8px) / 3.1); font-size: 13px; }
}
/* 요금제 비교표(휴대폰 가로 밀기): 잡힌 첫 열이 체크 표시(mask로 따로 칠해짐) 아래로 깔리지 않게 위로 올리고,
   표 전체 폭을 차지하는 묶음 제목은 글자만 왼쪽에 붙어 있게 한다 */
.compare-table thead td:first-child, .compare-table tbody th[scope="row"] { z-index: 1; }
.compare-table .group th { position: static; }
.compare-table .group th span { position: sticky; left: 12px; display: inline-block; }
/* 하이라이트 메모: 쪽이 작게 보이는 칸에서는 쪽 폭의 30%가 너무 좁아 글자가 한 단어씩 떨어진다.
   최소 230px을 지키고, 오른쪽 끝을 넘으면 그만큼 왼쪽으로 당긴다 */
.hl-note { --nw: clamp(230px, 30%, 320px); width: var(--nw); left: min(var(--nx), calc(100% - var(--nw) - 10px)); }
/* 휴대폰 AI 하이라이트: 창은 그대로 두고 논문을 크게 키운 뒤, 칠하는 문장과 메모 쪽으로 쪽을 옮겨 보여 준다(main.js panPage) */
@media (max-width: 600px) {
  .zoom-page[data-highlight-demo] { width: 190%; transition: transform 0.6s cubic-bezier(0.3, 0, 0.2, 1); }
}
/* 연구 질문 분야 지형(운영 paper-question.js): PC는 오른쪽 칸에서 목록과 함께 나오고, 상세가 뜨면 그 자리를 넘겨준다 */
.ps-body > .ps-list { grid-column: 1; grid-row: 1; }
.ps-body > .ps-detail, .ps-body > .ps-land { grid-column: 2; grid-row: 1; }
.ps-land { display: none; min-width: 0; margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.ps[data-mode="question"] .ps-land { display: block; }
.ps-land.on { opacity: 1; }
.ps.show-detail .ps-land { opacity: 0; }
.pl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12.5px; color: var(--ink); }
.pl-h small { font-size: 11px; color: var(--ink-faint); }
.pl-bars { display: block; width: 100%; height: auto; max-height: 110px; overflow: visible; }
.pl-bars rect { fill: color-mix(in srgb, var(--ink) 22%, transparent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 0.5s cubic-bezier(0.3, 0, 0.2, 1) var(--d, 0ms); }
.pl-bars rect.is-recent { fill: var(--ink); }
.ps-land.on .pl-bars rect { transform: none; }
.pl-bars text { font-size: 10px; fill: var(--ink-faint); }
.pl-bars line { stroke: var(--line-strong); }
.pl-note { margin: 2px 0 10px; font-size: 11px; color: var(--ink-faint); }
.pl-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12px; }
.pl-table td { padding: 4px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.pl-table td.num { width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-tl { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@container (max-width: 760px) { .ps-land { margin: 0; padding: 0; border: 0; } }
