/* noter.im 첫 화면 — "노트 한 장".
   페이지 자체가 Noter 노트처럼 보인다: 왼쪽 여백선과 녹음 시각, 줄노트 종이, 학생의 파란 펜 자국과 형광펜.
   색은 앱과 같은 GitHub Primer Light/Dark(design/SPEC.md §2). 버튼도 앱의 파란 버튼을 쓴다. */

:root {
  color-scheme: light;
  --mw: 136px;                 /* 여백 칸 폭 */
  --bg: #ffffff;
  --canvas: #f6f8fa;
  --ink: #1f2328;
  --body: #59636e;
  --muted: #818b98;
  --border: #d1d9e0;
  --border-soft: #e4e9ee;
  --rule: #eaeef2;
  --rule-strong: #dfe5ea;
  --margin-rule: #d8dee4;
  --accent: #0969da;
  --accent-fill: #0969da;
  --accent-hover: #0860ca;
  --pen: #1f4fd1;
  --hl: rgba(255, 214, 51, 0.62);
  --hl-solid: #ffe27a;
  --hl-ink: #3b2f00;
  --header: rgba(255, 255, 255, 0.86);

  /* 앱 화면(시안과 같은 GitHub Light) */
  --a-paper: #ffffff;
  --a-canvas: #f6f8fa;
  --a-border: #d1d9e0;
  --a-rule: #eaeef2;
  --a-margin: #d8dee4;
  --a-text: #1f2328;
  --a-muted: #59636e;
  --a-draft: #8c959f;
  --a-accent: #0969da;
  --a-accent-subtle: #ddf4ff;
  --a-accent-line: rgba(9, 105, 218, 0.32);
  --a-rec: #cf222e;
  --a-rec-subtle: #ffebe9;
  --a-ok: #1a7f37;
  --a-ok-subtle: #dafbe1;
  --a-float: 0 1px 3px rgba(31, 35, 40, 0.12), 0 12px 32px rgba(66, 74, 83, 0.16);
  --frame: rgba(31, 35, 40, 0.12);
  --frame-shadow: 0 1px 2px rgba(31, 35, 40, 0.06), 0 30px 60px -34px rgba(31, 35, 40, 0.34);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1117; --canvas: #151b23; --ink: #f0f6fc; --body: #9198a1; --muted: #7d8590; --border: #3d444d; --border-soft: #21262d;
    --rule: #1b2129; --rule-strong: #2a313a; --margin-rule: #2a313a; --accent: #4493f8; --accent-fill: #1f6feb; --accent-hover: #388bfd;
    --pen: #6ea8fe; --hl: rgba(210, 153, 34, 0.42); --hl-solid: #d29922; --hl-ink: #1f1500; --header: rgba(13, 17, 23, 0.84);
    --a-paper: #0d1117; --a-canvas: #151b23; --a-border: #3d444d; --a-rule: #1d232b; --a-margin: #2a313a; --a-text: #f0f6fc; --a-muted: #9198a1; --a-draft: #656c76;
    --a-accent: #4493f8; --a-accent-subtle: rgba(56, 139, 253, 0.12); --a-accent-line: rgba(68, 147, 248, 0.45); --a-rec: #f85149; --a-rec-subtle: rgba(248, 81, 73, 0.15);
    --a-ok: #3fb950; --a-ok-subtle: rgba(46, 160, 67, 0.15); --a-float: 0 12px 32px #010409;
    --frame: rgba(240, 246, 252, 0.12); --frame-shadow: 0 30px 60px -30px rgba(1, 4, 9, 0.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117; --canvas: #151b23; --ink: #f0f6fc; --body: #9198a1; --muted: #7d8590; --border: #3d444d; --border-soft: #21262d;
  --rule: #1b2129; --rule-strong: #2a313a; --margin-rule: #2a313a; --accent: #4493f8; --accent-fill: #1f6feb; --accent-hover: #388bfd;
  --pen: #6ea8fe; --hl: rgba(210, 153, 34, 0.42); --hl-solid: #d29922; --hl-ink: #1f1500; --header: rgba(13, 17, 23, 0.84);
  --a-paper: #0d1117; --a-canvas: #151b23; --a-border: #3d444d; --a-rule: #1d232b; --a-margin: #2a313a; --a-text: #f0f6fc; --a-muted: #9198a1; --a-draft: #656c76;
  --a-accent: #4493f8; --a-accent-subtle: rgba(56, 139, 253, 0.12); --a-accent-line: rgba(68, 147, 248, 0.45); --a-rec: #f85149; --a-rec-subtle: rgba(248, 81, 73, 0.15);
  --a-ok: #3fb950; --a-ok-subtle: rgba(46, 160, 67, 0.15); --a-float: 0 12px 32px #010409;
  --frame: rgba(240, 246, 252, 0.12); --frame-shadow: 0 30px 60px -30px rgba(1, 4, 9, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65; letter-spacing: -0.012em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--accent-fill); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── 버튼(앱과 같은 파란 버튼) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 12px; border: 0;
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 1px 0 rgba(31, 35, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-line { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn-line:hover { background: var(--canvas); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14.5px; }

/* ── 머리 ── */
.top { position: fixed; inset: 0 0 auto; z-index: 1000; transition: background-color 0.3s, box-shadow 0.3s; }
.top.scrolled { background: var(--header); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 1px 0 var(--border-soft); }
.top-in { width: min(1240px, 100% - 48px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--frame); }
.top-nav { margin-left: auto; display: flex; gap: 2px; }
.top-nav a { font-size: 15px; color: var(--body); text-decoration: none; padding: 7px 12px; border-radius: 8px; }
.top-nav a:hover { color: var(--ink); background: var(--canvas); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--canvas); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ── 노트 한 장: 여백선과 첫 화면 줄노트 ── */
main { position: relative; }
main::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1;
  left: calc((100% - min(1240px, 100% - 48px)) / 2 + var(--mw));
  border-left: 1px solid var(--margin-rule);
}
main::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1100px; z-index: -2; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--rule) 43px, var(--rule) 44px);
  background-position: 0 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.sec { width: min(1240px, 100% - 48px); margin: 150px auto 0; display: grid; grid-template-columns: var(--mw) minmax(0, 1fr); }
.sec-tight { margin-top: 140px; }
.mlabel { grid-column: 1; padding: 12px 18px 0 0; text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; }
.mlabel time { color: var(--body); font-variant-numeric: tabular-nums; font-weight: 500; }
.mlabel span { color: var(--muted); }
.sec-body { grid-column: 2; min-width: 0; padding-left: 44px; }

h1, h2 { font-weight: 700; letter-spacing: -0.048em; line-height: 1.2; }
.sec-head h2 { font-size: clamp(30px, 3.5vw, 46px); }
.sec-head > p { margin-top: 16px; max-width: 640px; font-size: 18px; color: var(--body); line-height: 1.75; }

/* 펜 자국(동그라미·형광펜·밑줄). 제목이 보이면 그려진다 */
.mk { position: relative; display: inline-block; isolation: isolate; white-space: nowrap; }
.mk .ink { position: absolute; overflow: visible; pointer-events: none; }
.mk .ink path { fill: none; stroke: var(--pen); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mk-loop .ink { width: calc(100% + 0.56em); height: 1.32em; left: -0.28em; top: calc(50% - 0.64em); }
.mk-loop .ink path { stroke-width: 2.2; }
.mk-hl .ink { left: -0.1em; width: calc(100% + 0.2em); bottom: 0.04em; height: 0.52em; z-index: -1; }
.mk-hl .ink path { stroke: var(--hl); stroke-width: 22; stroke-linecap: butt; }
.mk-under .ink { left: -0.02em; width: calc(100% + 0.04em); bottom: -0.2em; height: 0.28em; }
.mk-under .ink path { stroke-width: 2.4; }
html.js .sec-head:not(.in) .mk .ink path,
html.js [data-draft]:not(.done) .mk .ink path { stroke-dashoffset: 1; }
.sec-head.in .mk .ink path, [data-draft].done .mk .ink path { transition: stroke-dashoffset 0.85s cubic-bezier(0.45, 0, 0.25, 1) 0.55s; }

/* '정리 중' 회색으로 써졌다가 확정되는 제목 */
[data-draft] { transition: color 0.7s ease; }
html.js [data-draft]:not(.done) { color: var(--a-draft); }
html.js .hero:not(.done) .mlabel time { font-size: 0; }
html.js .hero:not(.done) .mlabel time::after { content: "정리 중"; font-size: 13px; color: var(--a-draft); }

/* ── 00:00 첫 화면 ── */
.hero { margin-top: 0; padding-top: 150px; }
.hero .mlabel { padding-top: 26px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.16; }
.hero h1 > span { display: block; }
.lead { margin-top: 28px; max-width: 600px; font-size: 19px; color: var(--body); line-height: 1.75; }
.cta { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.proof { margin-top: 22px; font-size: 14px; color: var(--muted); }
.proof b { color: var(--ink); font-weight: 600; }
.hero-demo { grid-column: 1 / -1; position: relative; margin-top: 76px; }
.sheets { position: relative; margin-left: calc(var(--mw) + 44px); }
.sheets::before, .sheets::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 20px;
  background: var(--a-paper); box-shadow: 0 0 0 1px var(--frame), 0 10px 30px -20px rgba(31, 35, 40, 0.3);
}
.sheets::before { transform: rotate(-1.6deg) translate(-10px, 14px); }
.sheets::after { transform: rotate(1.1deg) translate(8px, 22px); }
.hero .app-body { height: 600px; }
.aside { position: absolute; left: 0; top: 150px; width: calc(var(--mw) + 30px); color: var(--pen); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; }
.aside span { display: block; width: calc(var(--mw) - 16px); text-align: right; }
.aside svg { display: block; width: 92px; height: 60px; margin: 6px 0 0 calc(var(--mw) - 70px); fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aside-r { display: none; }

/* ── 00:12 들은 말 → 노트 ── */
.said-wrote { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; }
.sw-col { background: var(--bg); border-radius: 16px; box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.sw-h { padding: 11px 18px; font-size: 13.5px; font-weight: 600; color: var(--body); background: var(--canvas); border-bottom: 1px solid var(--border); }
.sw-col li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; min-height: 92px; border-bottom: 1px solid var(--rule); }
.sw-col li:last-child { border-bottom: 0; }
.sw-col time { align-self: stretch; display: grid; place-items: center end; padding-right: 12px; border-right: 1px solid var(--margin-rule); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sw-col li p { padding: 12px 18px; font-size: 15.5px; line-height: 1.6; }
.said li p { color: var(--body); }
.said li p::before { content: "“"; } .said li p::after { content: "”"; }
.wrote li p { color: var(--ink); font-weight: 500; }
.wrote li p.d2 { padding-left: 34px; }
.wrote em { font-style: normal; color: var(--muted); font-weight: 400; }
.sw-arrow { display: grid; place-items: center; }
.sw-arrow svg { width: 40px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.js .said-wrote:not(.in) .said li, html.js .said-wrote:not(.in) .wrote li p { opacity: 0; }
.said-wrote.in .said li { animation: rise 0.6s var(--ease) both; }
.said-wrote.in .said li:nth-child(2) { animation-delay: 0.7s; }
.said-wrote.in .said li:nth-child(3) { animation-delay: 1.4s; }
.said-wrote.in .wrote li p { animation: type 0.9s linear both, commit 0.6s ease both; }
.said-wrote.in .wrote li:nth-child(1) p { animation-delay: 0.45s, 1.5s; }
.said-wrote.in .wrote li:nth-child(2) p { animation-delay: 1.15s, 2.2s; }
.said-wrote.in .wrote li:nth-child(3) p { animation-delay: 1.85s, 2.9s; }
@keyframes commit { from { color: var(--a-draft); } to { color: var(--ink); } }
.checks { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 16px; color: var(--body); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checks b { color: var(--ink); font-weight: 600; }

/* ── 00:31 한 학기(재생 막대) ── */
.scrub { margin-top: 56px; }
.scrub-line { position: relative; height: 6px; border-radius: 6px; background: var(--rule-strong); margin-bottom: 34px; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--accent-fill); }
.scrub-knob { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(31, 35, 40, 0.18); }
.scrub.in .scrub-fill, .scrub.in .scrub-knob { transition: width 3s cubic-bezier(0.45, 0, 0.3, 1) 0.2s, left 3s cubic-bezier(0.45, 0, 0.3, 1) 0.2s; }
.scrub.in .scrub-fill { width: 100%; }
.scrub.in .scrub-knob { left: 100%; }
html:not(.js) .scrub-fill { width: 100%; }
html:not(.js) .scrub-knob { left: 100%; }
.scrub-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.scrub-stops li { position: relative; transition: opacity 0.5s; }
.scrub-stops li::before { content: ""; position: absolute; left: 0; top: -34px; height: 14px; border-left: 2px solid var(--border); transition: border-color 0.4s; }
.scrub-stops time { font-size: 13.5px; font-weight: 650; color: var(--accent); }
.scrub-stops h3 { margin: 6px 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.4; }
.scrub-stops p { font-size: 15px; color: var(--body); line-height: 1.65; }
html.js .scrub:not(.in) .scrub-stops li { opacity: 0.3; }
.scrub.in .scrub-stops li::before { border-color: var(--accent-fill); }
.scrub.in .scrub-stops li:nth-child(2), .scrub.in .scrub-stops li:nth-child(2)::before { transition-delay: 0.95s; }
.scrub.in .scrub-stops li:nth-child(3), .scrub.in .scrub-stops li:nth-child(3)::before { transition-delay: 1.85s; }
.scrub.in .scrub-stops li:nth-child(4), .scrub.in .scrub-stops li:nth-child(4)::before { transition-delay: 2.75s; }

/* ── 01:12 둘러보기: 왼쪽 목차 + 오른쪽 앱 ── */
.tour {
  position: relative; z-index: 1; margin-top: 40px; background-color: var(--canvas);
  border-block: 1px solid var(--border-soft);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--rule) 43px, var(--rule) 44px);
}
.tour-track { --n: 4; position: relative; height: calc(var(--n) * 85vh + 30vh); }
.tour-sticky {
  position: sticky; top: 64px; height: calc(100vh - 64px); min-height: 620px;
  width: min(1240px, 100% - 48px); margin-inline: auto; padding: 30px 0;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center;
}
.rail { display: flex; flex-direction: column; gap: 6px; }
.tab { position: relative; display: grid; gap: 2px; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 16px 18px 16px 30px; border-radius: 14px; transition: background-color 0.3s, box-shadow 0.3s; }
.tab time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab b { font-size: 19px; font-weight: 650; letter-spacing: -0.03em; color: var(--muted); transition: color 0.3s; }
.tab .rail-d { font-size: 14.5px; line-height: 1.65; color: var(--body); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.35s, margin 0.35s; }
.tab .bar { position: absolute; left: 13px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--rule-strong); overflow: hidden; }
.tab .bar::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--accent-fill); transform-origin: 50% 0; transform: scaleY(0); }
.tab:hover b { color: var(--ink); }
.tab.on { background: var(--bg); box-shadow: 0 0 0 1px var(--border), 0 10px 26px -18px rgba(31, 35, 40, 0.3); }
.tab.on b { color: var(--ink); }
.tab.on .rail-d { max-height: 140px; opacity: 1; margin-top: 6px; }
.tab.on .bar::after { transform: scaleY(var(--tp, 0)); }
.tour-stage { position: relative; height: min(700px, 100%); min-height: 0; }
.step { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s 0.45s; }
.step.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s; }
.step-head { display: none; }
.step > .app { height: 100%; display: flex; flex-direction: column; }
.step > .app > .app-body { flex: 1; height: auto; }

/* ── 01:40 iPad · iPhone ── */
.sec-body.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.paper-panel {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 580px; display: grid; place-items: center;
  background-color: var(--canvas); box-shadow: inset 0 0 0 1px var(--border-soft);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule-strong) 35px, var(--rule-strong) 36px);
}
.paper-panel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 64px; border-left: 1px solid var(--margin-rule); }

/* ── 02:05 약속: 줄 그은 색인 카드 ── */
.index-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: card; }
.index-cards li {
  counter-increment: card; position: relative; padding: 20px 24px 24px; border-radius: 14px;
  background-color: var(--bg); box-shadow: 0 0 0 1px var(--border);
}
.index-cards li::after { content: ""; position: absolute; left: 0; right: 0; top: 78px; height: 1px; background: color-mix(in srgb, var(--a-rec) 35%, transparent); }
.index-cards li::before { content: counter(card, decimal-leading-zero); display: block; font-size: 13px; font-weight: 650; color: var(--pen); font-variant-numeric: tabular-nums; }
.index-cards h3 { margin: 4px 0 12px; font-size: 18.5px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.4; min-height: 26px; }
.index-cards p { font-size: 15px; color: var(--body); line-height: 28px; background-image: linear-gradient(to bottom, transparent 27px, var(--rule) 27px, var(--rule) 28px); background-size: 100% 28px; }

/* ── 02:31 요금제 ── */
.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--bg); border-radius: 18px; padding: 28px 28px 30px; box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; }
.plan h3 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.badge { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--hl-solid); color: var(--hl-ink); transform: rotate(-2deg); }
.price { margin-top: 16px; font-size: 42px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); margin-left: 4px; }
.give { margin-top: 8px; font-size: 16px; font-weight: 600; }
.plan ul { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); display: grid; gap: 10px; }
.plan li { font-size: 15px; color: var(--body); display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--pen); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13c2 2 4 4 5 6 3-6 7-11 11-14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13c2 2 4 4 5 6 3-6 7-11 11-14'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan.pick { box-shadow: 0 0 0 2px var(--accent-fill), 0 18px 40px -26px rgba(9, 105, 218, 0.55); }
.addon { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border); font-size: 15.5px; color: var(--body); }
.addon b { color: var(--ink); font-weight: 650; }
.fine { margin-top: 22px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.fine li { display: flex; gap: 8px; }
.fine li::before { content: "·"; }
/* 네 칸(무료 · Plus · Pro · Max): 칸이 좁아 가격이 두 줄로 꺾이기 전(약 1,225px)에 두 칸씩 */
@media (max-width: 1260px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 02:48 자주 묻는 질문 ── */
.faq-list { margin-top: 30px; max-width: 820px; border-top: 1px solid var(--border-soft); }
.faq-list details { border-bottom: 1px solid var(--border-soft); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.025em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list details > div { padding: 0 4px 22px; color: var(--body); font-size: 16px; line-height: 1.75; }
.faq-list details a { color: var(--accent); text-underline-offset: 0.2em; }

/* ── 03:02 마지막 장 ── */
.final-sheet {
  position: relative; overflow: hidden; border-radius: 22px; padding: 64px 56px 60px;
  background-color: var(--canvas); box-shadow: inset 0 0 0 1px var(--border-soft);
}
.final-sheet h2 { font-size: clamp(30px, 3.8vw, 50px); }
.final-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; border-left: 1px solid color-mix(in srgb, var(--a-rec) 30%, transparent); }
.final-sheet h2 > span { display: inline-block; }
.final-sheet > p { margin: 20px 0 32px; max-width: 580px; font-size: 17.5px; color: var(--body); line-height: 1.75; }
.final-cta { display: flex; align-items: flex-start; gap: 12px; }
.final-arrow { width: 118px; height: 68px; margin-top: 4px; fill: none; stroke: var(--pen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.final-arrow path { stroke-dasharray: 1; }
html.js .final-sheet:not(.in) .final-arrow path { stroke-dashoffset: 1; }
.final-sheet.in .final-arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s cubic-bezier(0.45, 0, 0.25, 1) 2s; }

/* ── 바닥 ── */
.foot { margin-top: 130px; border-top: 1px solid var(--border-soft); padding: 50px 0 40px; background: var(--bg); position: relative; z-index: 1; }
.foot-in { width: min(1240px, 100% - 48px); margin-inline: auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-in p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.foot ul a { color: var(--body); text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.foot ul b { font-weight: 650; color: var(--ink); }
.copy { width: min(1240px, 100% - 48px); margin: 36px auto 0; font-size: 13px; color: var(--muted); }

/* ── 나타나기 ── */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.index-cards li.reveal:nth-child(3n+2), .plans .plan.reveal:nth-child(2) { transition-delay: 0.08s; }
.index-cards li.reveal:nth-child(3n), .plans .plan.reveal:nth-child(3) { transition-delay: 0.16s; }
.plans .plan.reveal:nth-child(4) { transition-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }


/* ── 앱 화면(시안) ── */
.app {
  --row: 40px; --margin: 80px; --top: 20px;
  container: app / inline-size;
  position: relative; text-align: left; overflow: hidden;
  background: var(--a-paper); color: var(--a-text);
  border-radius: 20px; box-shadow: 0 0 0 1px var(--frame), var(--frame-shadow);
  font-size: 16px; line-height: 1.4; letter-spacing: -0.01em;
}
.app-bar { height: 62px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--a-border); background: var(--a-paper); }
.ab-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ab-title b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ab-title small { display: block; font-size: 12.5px; color: var(--a-muted); white-space: nowrap; }
.chev { width: 11px; height: 11px; flex: none; border-left: 2.2px solid var(--a-muted); border-bottom: 2.2px solid var(--a-muted); transform: rotate(45deg); margin-left: 4px; }
.ab-tools { display: flex; align-items: center; gap: 8px; }
.tool { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.tool svg { width: 21px; height: 21px; fill: none; stroke: var(--a-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool.on { background: var(--a-accent-subtle); }
.tool.on svg { stroke: var(--a-accent); }
.tool.hl svg { stroke: #d4a72c; }
.sep { width: 1px; height: 24px; background: var(--a-border); margin: 0 6px; }
.dot { width: 24px; height: 24px; border-radius: 50%; }
.dot.blue { background: var(--pen); }
.dot.black { background: #1f2328; }
.dot.red { background: #e5534b; }
.dot.on { box-shadow: 0 0 0 2px var(--a-paper), 0 0 0 4px var(--pen); }
.ab-right { display: flex; align-items: center; gap: 12px; }
.rec { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--a-rec-subtle); color: var(--a-rec); font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--a-rec); animation: blink 1.6s ease-in-out infinite; }
.review { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--a-accent-subtle); color: var(--a-accent); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.ab-ic { width: 26px; height: 21px; border: 1.8px solid var(--a-muted); border-radius: 5px; position: relative; }
.ab-ic::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 1.8px solid var(--a-muted); }
@keyframes blink { 50% { opacity: 0.25; } }

.app-body { display: grid; grid-template-columns: 33.7% 1fr; height: 100%; min-height: 0; }
.app-body.solo { grid-template-columns: 1fr; }

/* 슬라이드 패널: PDF 쪽이라 어두운 화면에서도 흰 종이다 */
.slides { position: relative; overflow: hidden; background: var(--a-canvas); border-right: 1px solid var(--a-border); padding: 18px 16px; display: flex; flex-direction: column; gap: 18px; }
.slide { flex: none; aspect-ratio: 16 / 10; background: #fff; color: #1f2328; border: 1px solid #d8dee4; border-radius: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 8.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(31, 35, 40, 0.06); }
.s-head { display: flex; justify-content: space-between; color: #8c959f; font-size: 7.5px; border-bottom: 1px solid #eaeef2; padding-bottom: 5px; }
.s-head span:first-child::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #0969da; margin-right: 5px; vertical-align: 1px; }
.s-title { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.s-title small { font-size: 9px; color: #8c959f; font-weight: 500; }
.s-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.s-cols > div { border: 1px solid #e3e8ed; border-radius: 4px; padding: 6px 7px; display: flex; flex-direction: column; gap: 4px; }
.s-cols b { font-size: 8.5px; }
.s-cols p { color: #59636e; font-size: 7.5px; }
.s-cols ol { margin-top: auto; display: grid; gap: 2px; font-size: 7.2px; }
.s-cols li i { font-style: normal; color: #8c959f; margin-right: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.s-cols li.r { color: #cf222e; }
.s-table { border-collapse: collapse; font-size: 7.5px; width: 100%; }
.s-table th, .s-table td { border-bottom: 1px solid #eaeef2; padding: 4px 3px; text-align: center; }
.s-table td:first-child { text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.s-table th { color: #59636e; font-weight: 600; }
.page-pill { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; background: color-mix(in srgb, var(--a-paper) 92%, transparent); box-shadow: 0 0 0 1px var(--a-border); font-size: 14px; color: var(--a-text); font-variant-numeric: tabular-nums; }

/* 줄노트 */
.paper {
  position: relative; overflow: hidden; background-color: var(--a-paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--a-rule) calc(var(--row) - 1px), var(--a-rule) var(--row));
  background-position: 0 var(--top);
}
.paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--margin); border-left: 1px solid var(--a-margin); }
.note { position: relative; padding: var(--top) 24px 0 0; }
.ln { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); align-items: start; min-height: var(--row); }
.ln time { align-self: start; height: var(--row); line-height: var(--row); padding-right: 14px; text-align: right; font-size: 12.5px; color: var(--a-muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ln .tx { justify-self: start; padding-left: 40px; font-size: 16.5px; line-height: var(--row); }
.ln.h .tx { padding-left: 22px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.ln.d2 .tx { padding-left: 60px; }
.ln em, .ph-note em, .rc-note em { font-style: normal; color: var(--a-muted); }
.ln.h em { font-weight: 500; }
.tag { display: inline-block; background: var(--a-rec-subtle); color: var(--a-rec); font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; margin-right: 7px; vertical-align: 2px; letter-spacing: 0; }
.listening { display: flex; align-items: center; gap: 5px; height: var(--row); padding-left: calc(var(--margin) + 22px); font-size: 14px; color: var(--a-muted); }
.listening i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-draft); animation: dots 1.2s ease-in-out infinite; }
.listening i:nth-child(2) { animation-delay: 0.15s; }
.listening i:nth-child(3) { animation-delay: 0.3s; margin-right: 8px; }
@keyframes dots { 0%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* 실시간으로 자라는 노트(home.js가 클래스를 붙인다) */
.ln.pending { display: none; }
.ln.draft .tx { color: var(--a-draft); }
.ln.draft .tag { background: transparent; color: var(--a-draft); box-shadow: inset 0 0 0 1px var(--a-border); }
.ln.draft em { color: var(--a-draft); }
.ln.draft time { font-size: 0; border-right: 2px dotted var(--a-border); margin-right: -2px; }
.ln.draft time::after { content: "정리 중"; font-size: 12.5px; }
.ln .tx, .ln .tag, .ln em { transition: color 0.6s ease, background-color 0.6s ease, box-shadow 0.6s ease; }
.ln.typing .tx { animation: type 1.1s linear both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* 펜 잉크 */
.anchor { position: relative; display: inline-block; line-height: 1.4; isolation: isolate; }
.ink { position: absolute; overflow: visible; pointer-events: none; }
.ink path, .ink circle { fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ink.loop { width: 3.8em; height: 2.35em; left: calc(50% - 1.9em); top: calc(50% - 1.18em); }
.ink.star { position: relative; display: inline-block; width: 1.3em; height: 1.3em; margin-left: 0.5em; vertical-align: -0.22em; }
.ink.star path { stroke-width: 2; }
.ink.hl { left: -4px; width: calc(100% + 8px); top: 50%; height: 1.5em; transform: translateY(-50%); z-index: -1; }
.ink.hl path { stroke: var(--hl); stroke-width: 18; stroke-linecap: butt; }
.ink.under { left: 0; width: 100%; bottom: -0.3em; height: 0.75em; }
.ink.under path { stroke-width: 2.2; }
.sketch { padding: 8px 0 0 calc(var(--margin) + 40px); height: calc(var(--row) * 3); }
.ink.draw { position: static; width: min(520px, 100%); height: auto; }
.ink.draw path, .ink.draw circle { stroke-width: 2.2; }
.ink-wait .ink path, .ink-wait .ink circle { stroke-dashoffset: 1; }
.ink-go .ink path, .ink-go .ink circle { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.25, 1); }
.ink.draw path:nth-child(n+3) { transition-delay: 0.25s; }
.ink.draw path:nth-child(n+5) { transition-delay: 0.6s; }
.ink.draw path:nth-child(n+7), .ink.draw circle { transition-delay: 0.95s; }
.ink.draw path:nth-child(n+12) { transition-delay: 1.35s; }

/* 줄 누르기: 원문 창과 재생 막대 */
.selbox { display: inline-block; border-radius: 9px; padding: 0 8px; margin-left: -8px; line-height: 34px; box-shadow: 0 0 0 2px transparent; transition: background-color 0.35s, box-shadow 0.35s; }
.tap { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(9, 105, 218, 0.22); margin: -2px 0 0 -260px; opacity: 0; transform: scale(0.3); pointer-events: none; }
.ln.sel .tx { position: relative; }
.pop {
  position: absolute; z-index: 3; top: calc(var(--top) + var(--row) * 4 + 10px); left: calc(var(--margin) + 28px); width: min(470px, 100% - var(--margin) - 44px);
  background: var(--a-paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--a-border), var(--a-float); padding: 16px 18px 14px;
  opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: 20% 0; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.pop::before { content: ""; position: absolute; top: -7px; left: 120px; width: 14px; height: 14px; background: var(--a-paper); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--a-border); }
.pop-h { display: flex; justify-content: space-between; font-size: 14px; }
.pop-h span { color: var(--a-muted); font-variant-numeric: tabular-nums; }
.pop blockquote { margin: 10px 0 6px; padding-left: 12px; border-left: 3px solid var(--a-border); font-size: 15.5px; line-height: 1.55; }
.pop-meta { font-size: 12.5px; color: var(--a-muted); }
.pop-btns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 12px; }
.pop-btns span { height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 600; white-space: nowrap; }
.b-play { background: var(--a-accent); color: #fff; }
.b-slide { background: var(--a-accent-subtle); color: var(--a-accent); }
.player {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; height: 66px; padding: 0 18px;
  display: flex; align-items: center; gap: 14px; background: var(--a-paper); border-radius: 20px; box-shadow: 0 0 0 1px var(--a-border), var(--a-float);
  font-variant-numeric: tabular-nums; font-size: 15px;
}
.p-play { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--a-text); position: relative; }
.p-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid var(--a-paper); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.p-skip { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--a-text); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.p-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--a-rule); margin-top: 10px; }
.p-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 1.3%; border-radius: 4px; background: var(--a-accent); transition: width 2.4s linear; }
.p-knob { position: absolute; top: 50%; left: 1.3%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--a-paper); box-shadow: 0 0 0 1px var(--a-border), 0 2px 6px rgba(0, 0, 0, 0.18); transition: left 2.4s linear; }
.p-ticks i:nth-child(1) { left: 4%; } .p-ticks i:nth-child(2) { left: 26%; } .p-ticks i:nth-child(3) { left: 47%; } .p-ticks i:nth-child(4) { left: 71%; }
.p-ticks i { position: absolute; bottom: 10px; font-style: normal; font-size: 11px; color: var(--a-muted); border-left: 1px solid var(--a-border); padding-left: 4px; line-height: 1; height: 14px; }
.p-end { color: var(--a-muted); }
.p-rate { padding: 4px 9px; border-radius: 8px; background: var(--a-canvas); font-size: 14px; font-weight: 600; }
.play .selbox { background: var(--a-accent-subtle); box-shadow: 0 0 0 2px var(--a-accent-line); transition-delay: 0.45s; }
.play .tap { animation: tap 0.7s 0.2s var(--ease) both; }
.play .pop { opacity: 1; transform: none; transition-delay: 0.8s; }
.play .p-fill { width: 24%; transition-delay: 1.5s; transition-duration: 6s; }
.play .p-knob { left: 24%; transition-delay: 1.5s; transition-duration: 6s; }
@keyframes tap { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }

/* 시험 대비 */
.app-body.exam { grid-template-columns: 210px 1fr 320px; height: 100%; }
.side { background: var(--a-canvas); border-right: 1px solid var(--a-border); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.side-logo { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; margin-bottom: 14px; }
.side-logo img { border-radius: 5px; box-shadow: 0 0 0 1px var(--a-border); }
.side-i { padding: 7px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.side-i.on { background: var(--a-paper); box-shadow: 0 0 0 1px var(--a-border); font-weight: 600; }
.side-i span { color: var(--a-rec); font-size: 13px; }
.side-h { margin: 14px 10px 4px; font-size: 12.5px; color: var(--a-muted); }
.side-c { padding: 6px 10px; display: flex; align-items: center; gap: 9px; }
.side-c i, .subj i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.c-blue { --c: #0969da; } .c-purple { --c: #8250df; } .c-green { --c: #1a7f37; } .c-orange { --c: #bc4c00; } .c-teal { --c: #0f8a8a; } .c-pink { --c: #bf3989; }
.side-credit { margin-top: auto; background: var(--a-paper); border-radius: 12px; box-shadow: 0 0 0 1px var(--a-border); padding: 10px 12px; }
.side-credit small { display: flex; justify-content: space-between; color: var(--a-muted); font-size: 12px; }
.side-credit small b { color: var(--a-accent); }
.side-credit p { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.side-credit p span { font-size: 13px; color: var(--a-muted); font-weight: 400; }
.meter { display: block; height: 5px; border-radius: 5px; background: var(--a-rule); margin-top: 6px; overflow: hidden; }
.meter span { display: block; width: 72%; height: 100%; background: var(--a-accent); border-radius: 5px; }
.sum { padding: 22px 26px; overflow: hidden; }
.sum-h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--a-border); }
.sum-h b { font-size: 21px; font-weight: 650; letter-spacing: -0.03em; }
.sum-h span { font-size: 13.5px; color: var(--a-muted); }
.sum-h em { font-style: normal; color: var(--a-rec); }
.sum-t { font-size: 16.5px; font-weight: 650; margin: 18px 0 4px; }
.sum-l { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--a-rule); font-size: 15px; }
.sum-l > span:first-child::before { content: "•"; margin-right: 9px; color: var(--a-muted); }
.ts { flex: none; font-size: 13px; font-weight: 600; color: var(--a-accent); padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--a-accent-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz { border-left: 1px solid var(--a-border); padding: 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.q-h { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--a-muted); }
.q-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--a-rule); overflow: hidden; }
.q-bar span { display: block; width: 30%; height: 100%; background: var(--a-accent); }
.q-q { font-size: 16px; font-weight: 600; line-height: 1.5; }
.q-opts { display: grid; gap: 8px; counter-reset: q; }
.q-opts li { counter-increment: q; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--a-border); font-size: 14.5px; display: flex; gap: 10px; transition: background-color 0.4s, box-shadow 0.4s, color 0.4s; }
.q-opts li::before { content: counter(q, upper-alpha); color: var(--a-muted); font-size: 13px; width: 14px; }
.play .q-opts li.ok, .phone-card .q-opts li.ok { background: var(--a-ok-subtle); box-shadow: inset 0 0 0 1.5px var(--a-ok); color: var(--a-ok); font-weight: 600; transition-delay: 0.9s; }
.q-why { font-size: 13.5px; color: var(--a-muted); line-height: 1.55; opacity: 0; transform: translateY(6px); transition: opacity 0.5s 1.5s, transform 0.5s 1.5s var(--ease); }
.q-why b { color: var(--a-ok); margin-right: 6px; }
.q-why .ts { display: inline-block; margin-top: 8px; }
.play .q-why { opacity: 1; transform: none; }
.play .sum-l { animation: rise 0.5s var(--ease) both; }
.play .sum-l:nth-of-type(2) { animation-delay: 0.08s; } .play .sum-l:nth-of-type(3) { animation-delay: 0.16s; }
.play .sum-l:nth-of-type(4) { animation-delay: 0.24s; } .play .sum-l:nth-of-type(6) { animation-delay: 0.36s; } .play .sum-l:nth-of-type(7) { animation-delay: 0.44s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* 좁은 앱 화면(폰 폭): 슬라이드와 도구를 접고 노트 한 단으로 */
@container app (max-width: 760px) {
  .app-bar { height: 54px; padding: 0 14px; }
  .ab-tools, .ab-ic { display: none; }
  .ab-title b { font-size: 14.5px; }
  .ab-title small { font-size: 11.5px; }
  .rec, .review { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .app-body { grid-template-columns: 1fr; }
  .slides, .side { display: none; }
  .app { --row: 34px; --margin: 52px; --top: 14px; }
  .note { padding-right: 14px; }
  .ln time { font-size: 10.5px; padding-right: 8px; }
  .ln.draft time::after { font-size: 10.5px; }
  .ln .tx { font-size: 14px; padding-left: 20px; }
  .ln.h .tx { font-size: 16px; padding-left: 12px; }
  .ln.d2 .tx { padding-left: 32px; }
  .tag { font-size: 10.5px; padding: 4px 7px; margin-right: 5px; }
  .listening { padding-left: calc(var(--margin) + 12px); font-size: 12.5px; }
  .sketch { padding-left: calc(var(--margin) + 18px); height: calc(var(--row) * 2.6); }
  .pop { left: 12px; width: calc(100% - 24px); padding: 12px 14px; top: calc(var(--top) + var(--row) * 5 + 8px); }
  .pop::before { left: 90px; }
  .pop blockquote { font-size: 13.5px; }
  .pop-btns span { height: 38px; font-size: 13px; }
  .player { left: 10px; right: 10px; bottom: 10px; height: 56px; padding: 0 12px; gap: 10px; font-size: 13px; }
  .p-skip, .p-end, .p-ticks { display: none; }
  .p-play { width: 36px; height: 36px; }
  .p-play::after { left: 14px; top: 10px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
  .app-body.exam { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sum { padding: 14px 16px 6px; }
  .sum-h b { font-size: 17px; }
  .sum-t { font-size: 14.5px; margin-top: 10px; }
  .sum-l { font-size: 13px; padding: 6px 0; }
  .sum-l:nth-of-type(n+5), .sum-t:nth-of-type(n+2) { display: none; }
  .ts { font-size: 11px; padding: 2px 7px; }
  .quiz { border-left: 0; border-top: 1px solid var(--a-border); padding: 14px 16px; gap: 10px; }
  .q-q { font-size: 14px; }
  .q-opts li { font-size: 13px; padding: 8px 10px; }
  .q-opts li:nth-child(4) { display: none; }
}


/* ── 폰 시안 ── */
.phone { position: relative; width: 290px; height: 560px; border-radius: 42px; background: var(--a-paper); color: var(--a-text); box-shadow: 0 0 0 7px #10131a, 0 0 0 8px rgba(255, 255, 255, 0.35), 0 40px 70px -30px rgba(20, 30, 90, 0.6); overflow: hidden; transform: translateX(-60px) rotate(-2deg); }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #10131a; z-index: 2; }
.ph-bar { display: flex; align-items: center; gap: 12px; padding: 54px 16px 12px; border-bottom: 1px solid var(--a-border); }
.ph-bar b { display: block; font-size: 14.5px; }
.ph-bar small { display: block; font-size: 11.5px; color: var(--a-muted); }
.ph-note { --row: 32px; padding: 10px 16px 0 14px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--a-rule) calc(var(--row) - 1px), var(--a-rule) var(--row)); background-position: 0 10px; height: 100%; font-size: 13.5px; line-height: var(--row); }
.ph-note li { display: flex; gap: 8px; }
.ph-note li > span:first-child { color: var(--a-muted); flex: none; }
.ph-note .h { font-size: 15.5px; font-weight: 650; justify-content: space-between; }
.ph-note .h > span:first-child { color: inherit; flex: 1; }
.pg { font-size: 11px; font-weight: 600; color: var(--a-accent); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--a-accent-line); padding: 0 7px; line-height: 20px; align-self: center; }
.ph-note .now { background: var(--a-accent-subtle); border-radius: 8px; margin: 0 -6px; padding: 0 6px; }
.ph-note .tag { font-size: 10px; padding: 3px 6px; }
.ph-player { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 54px; border-radius: 18px; background: var(--a-paper); box-shadow: 0 0 0 1px var(--a-border), var(--a-float); display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ph-player .p-play { width: 34px; height: 34px; }
.ph-player .p-play::after { left: 13px; top: 9px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
.ph-player .p-bar { margin-top: 0; }
.ph-player .p-fill { width: 38%; }
.ph-player .p-rate { font-size: 12px; }
.phone-card { position: absolute; right: 9%; bottom: 13%; width: 270px; background: var(--a-paper); color: var(--a-text); border-radius: 20px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 30px 60px -24px rgba(20, 30, 90, 0.55); transform: rotate(2deg); }
.phone-card .q-q { font-size: 15px; }
.phone-card .q-opts li { font-size: 13.5px; }


.c-blue { --c: #0969da; } .c-purple { --c: #8250df; } .c-green { --c: #1a7f37; } .c-orange { --c: #bc4c00; } .c-teal { --c: #0f8a8a; } .c-pink { --c: #bf3989; }
.ph-player .p-fill { width: 38%; }
.note { transition: opacity 0.4s ease; }
.note.fading { opacity: 0; }

/* ── 좁은 화면 ── */
@media (max-width: 1180px) {
  .aside { display: none; }
  .sec-body.split { grid-template-columns: 1fr; gap: 40px; }
  .index-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-sticky { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
  :root { --mw: 0px; }
  main::before { display: none; }
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .sec { grid-template-columns: minmax(0, 1fr); margin-top: 110px; width: calc(100% - 40px); }
  .mlabel { grid-column: 1; flex-direction: row; gap: 8px; text-align: left; padding: 0 0 12px; }
  .mlabel time::after { content: " ·"; color: var(--muted); }
  html.js .hero:not(.done) .mlabel time::after { content: "정리 중 ·"; }
  .sec-body { grid-column: 1; padding-left: 0; }
  .hero { padding-top: 108px; }
  .hero .mlabel { padding-top: 0; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .lead { font-size: 17px; }
  .hero-demo { grid-column: 1; margin-top: 52px; }
  .sheets { margin-left: 0; }
  .sheets::before { transform: rotate(-1.6deg) translate(-4px, 10px); }
  .sheets::after { transform: rotate(1.1deg) translate(4px, 16px); }
  .hero .app-body { height: 470px; }
  .sec-head > p { font-size: 16.5px; }

  .said-wrote { grid-template-columns: 1fr; gap: 0; }
  .sw-arrow { height: 48px; }
  .sw-arrow svg { transform: rotate(90deg); }
  .sw-col li { grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
  .sw-col li p { font-size: 14.5px; padding: 12px 14px; }
  .wrote li p.d2 { padding-left: 26px; }

  .scrub-line { display: none; }
  .scrub-stops { grid-template-columns: 1fr; gap: 0; }
  .scrub-stops li { padding: 0 0 26px 24px; border-left: 2px solid var(--border); transition: border-color 0.4s, opacity 0.5s; }
  .scrub-stops li::before { top: 2px; left: -8px; width: 14px; height: 14px; border: 2px solid var(--border); border-radius: 50%; background: var(--bg); }
  .scrub.in .scrub-stops li { border-left-color: var(--accent-fill); }
  .scrub-stops li:last-child { padding-bottom: 0; }

  .tour { margin-top: 32px; padding: 56px 0; }
  .tour-track { height: auto; }
  .tour-sticky { position: static; height: auto; min-height: 0; padding: 0; display: block; width: calc(100% - 24px); }
  .rail { display: none; }
  .tour-stage { height: auto; }
  .step { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; margin-bottom: 64px; }
  .step:last-child { margin-bottom: 0; }
  .step-head { display: block; padding: 0 8px 16px; }
  .step-head time { font-size: 13px; color: var(--accent); font-weight: 650; }
  .step-head h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; margin: 2px 0 8px; }
  .step-head p { font-size: 15.5px; color: var(--body); }
  .step > .app { height: 480px; }
  .step[data-step="3"] > .app { height: 540px; }

  .paper-panel { min-height: 0; padding: 40px 16px 120px; }
  .paper-panel::before { left: 28px; }
  .phone { transform: none; width: 262px; height: 500px; }
  .phone-card { right: 50%; margin-right: -170px; bottom: 30px; width: 240px; }

  .index-cards, .plans { grid-template-columns: 1fr; }
  .addon { flex-direction: column; align-items: flex-start; gap: 4px; }
  .final-sheet { padding: 40px 22px 36px; }
  .final-arrow { display: none; }
  .foot-in { flex-direction: column; }
  .foot-in, .copy { width: calc(100% - 40px); }
}
@media (max-width: 480px) {
  .top-in { width: calc(100% - 32px); }
  .btn { height: 48px; padding: 0 18px; font-size: 16px; }
  .btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }
  .hero .app-body { height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
