/* narrasync.net — 원고지 위의 녹화 표시등. 종이 톤 바탕, 먹색 글, 녹화 빨강 하나만 강조로 쓴다. */
:root {
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --ink: #17140f;
  --ink-2: #4a443a;
  --ink-3: #7c7466;
  --rule: #d6cdb9;
  --rec: #e0412a;
  --rec-ink: #b32a16;
  --tape: #1a1814;
  --tape-2: #25221c;
  --clip: #4c7bd9;
  --voice: #d9902b;
  --overlay: #3fa37a;
  --serif: "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
/* 종이 결 */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--rec); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow {
  font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }

/* 머리 */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rec); }
.top .btn { padding: 9px 16px; font-size: 14.5px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--rec); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { box-shadow: 0 8px 0 -2px var(--ink); }
.btn .rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rec) 25%, transparent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* 히어로 */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font: 800 clamp(42px, 6.6vw, 84px)/1.12 var(--serif);
  letter-spacing: -.035em; margin: 22px 0 26px;
}
.hero h1 em { font-style: normal; color: var(--rec); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em;
  background: var(--rec); transform-origin: left; animation: underline 1s .7s cubic-bezier(.7,0,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero .lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 30em; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font: 13px/1.6 var(--mono); color: var(--ink-3); margin-top: 18px; }

/* 히어로 오른쪽: 움직이는 타임라인 */
.deck {
  background: var(--tape); border-radius: 18px; padding: 18px 18px 20px; color: #ece6d8;
  box-shadow: 0 1px 0 #fff4 inset, 0 40px 80px -30px #2b1d0c66, 0 0 0 1px #0006;
  transform: rotate(-1.2deg); position: relative;
}
.deck-head { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: #a59d8c; margin-bottom: 14px; }
.deck-head i { width: 10px; height: 10px; border-radius: 50%; background: #3a362e; }
.deck-head i:first-child { background: var(--rec); }
.deck-head span { margin-left: auto; color: #ece6d8; }
.screen {
  aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #f6f3ec, #e4ddcd);
}
.screen .win { position: absolute; inset: 9% 8%; background: #fff; border-radius: 6px; box-shadow: 0 6px 20px #0002; }
.screen .win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13%; background: #25221c; border-radius: 6px 6px 0 0; }
.screen .bar { position: absolute; bottom: 14%; width: 7%; background: var(--clip); border-radius: 2px 2px 0 0; animation: grow 2.4s ease-in-out infinite alternate; }
@keyframes grow { from { height: 18%; } to { height: 52%; } }
.screen .sub {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  background: #000c; color: #fff; font: 600 clamp(10px, 1.2vw, 13px)/1.4 var(--sans);
  padding: 5px 12px; border-radius: 4px; white-space: nowrap;
}
.tracks { margin-top: 14px; position: relative; display: grid; gap: 7px; }
.ruler { display: flex; justify-content: space-between; font: 10.5px/1 var(--mono); color: #7d766a; padding: 0 0 4px 64px; }
.track { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; font: 11px/1 var(--mono); color: #a59d8c; }
.lane { position: relative; height: 24px; background: var(--tape-2); border-radius: 4px; }
.lane b { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; font: 500 10.5px/18px var(--sans); color: #fff; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.lane .v { background: var(--clip); }
.lane .n { background: var(--voice); color: #1a1209; }
.lane .o { background: var(--overlay); }
.playhead { position: absolute; top: 14px; bottom: -4px; left: 64px; width: 2px; background: var(--rec); animation: play 9s linear infinite; }
.playhead::before { content: ""; position: absolute; top: -5px; left: -4px; border: 5px solid transparent; border-top-color: var(--rec); }
@keyframes play { from { left: calc(64px); } to { left: calc(100% - 2px); } }
.wave { display: flex; align-items: center; gap: 2px; height: 100%; padding: 0 2px; }
.wave s { flex: 1; background: #1a120966; border-radius: 1px; text-decoration: none; }

/* 섹션 */
section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
h2 { font: 800 clamp(32px, 4.4vw, 54px)/1.18 var(--serif); letter-spacing: -.03em; margin: 16px 0 0; }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 34em; }
.ruled { border-top: 1px solid var(--rule); }

/* 기능 원고지 */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.feature { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--rule); position: relative; }
.feature:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.feature:not(:nth-child(3n+1)) { padding-left: 28px; }
.feature .tc { font: 500 12.5px/1 var(--mono); color: var(--rec); }
.feature h3 { font: 700 22px/1.35 var(--serif); margin: 14px 0 10px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* 흐름 */
.flow { background: var(--tape); color: #ece6d8; }
.flow h2 { color: #f6f1e6; }
.flow .sec-head p { color: #b9b09e; }
.flow .eyebrow { color: #a59d8c; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, #4a443a 0 8px, transparent 8px 14px); }
.steps li { counter-increment: s; padding-right: 28px; position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink);
  font: 600 15px/1 var(--mono); position: relative;
}
.steps li:last-child::before { background: var(--rec); color: #fff; }
.steps h3 { font: 700 21px/1.35 var(--serif); margin: 22px 0 8px; color: #f6f1e6; }
.steps p { margin: 0; color: #b9b09e; font-size: 15.5px; }
.flow .shot { margin-top: 64px; }

/* 스크린샷 액자 */
.shot { border-radius: 14px; overflow: hidden; background: var(--tape); box-shadow: 0 0 0 1px #0000001f, 0 30px 70px -30px #2b1d0c80; }
.shot figcaption { font: 12.5px/1.5 var(--mono); color: #a59d8c; padding: 12px 16px; border-top: 1px solid #ffffff12; }
.shot.tilt { transform: rotate(.6deg); }

/* 요구 사항 · 다운로드 띠 */
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fbf8f1; }
.spec div { padding: 22px 24px; }
.spec div + div { border-left: 1px solid var(--rule); }
.spec dt { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 10px; }
.spec dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.5; }

.getit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  background: var(--rec); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.getit::after {
  content: "REC"; position: absolute; right: -10px; bottom: -48px; font: 800 180px/1 var(--mono);
  color: #ffffff14; letter-spacing: -.05em; pointer-events: none;
}
.getit h2 { color: #fff; margin: 0 0 10px; }
.getit p { margin: 0; color: #ffe6df; }
.getit .btn { background: #fff; color: var(--ink); border-color: #fff; position: relative; z-index: 1; }
.getit .btn:hover { box-shadow: 0 8px 0 -2px var(--ink); }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 700 19px/1.5 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 400 26px/1 var(--mono); color: var(--rec); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 46em; }

/* 바닥 */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 13.5px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot a { color: var(--ink-2); }
.foot nav { display: flex; gap: 20px; }

/* 가이드 */
.doc-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); border-bottom: 1.5px solid var(--ink); }
.doc-head h1 { font: 800 clamp(40px, 5.6vw, 68px)/1.15 var(--serif); letter-spacing: -.035em; margin: 18px 0 16px; }
.doc-head p { color: var(--ink-2); max-width: 40em; margin: 0; font-size: 18px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; }
.toc b { display: block; font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 30px 1fr; padding: 6px 0; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a::before { content: counter(t, decimal-leading-zero); font: 12px/1.9 var(--mono); color: var(--ink-3); }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on::before { color: var(--rec); }
.prose { max-width: 760px; }
.prose > section { padding: 0 0 64px; scroll-margin-top: 90px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 18px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font: 500 15px/1 var(--mono); color: var(--rec); }
.prose h3 { font: 700 20px/1.4 var(--serif); margin: 34px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--rec); font-family: var(--mono); font-size: .9em; }
.prose .shot { margin: 26px 0 8px; }
.ui { font-weight: 600; color: var(--ink); background: #fff8; border: 1px solid var(--rule); border-radius: 5px; padding: 1px 7px; font-size: .94em; white-space: nowrap; }
kbd {
  font: 500 13px/1 var(--mono); background: #fff; border: 1px solid var(--rule); border-bottom-width: 2.5px;
  border-radius: 6px; padding: 4px 8px; color: var(--ink); white-space: nowrap;
}
code, pre { font-family: var(--mono); font-size: 14px; }
:not(pre) > code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
pre {
  background: var(--tape); color: #ece6d8; border-radius: 12px; padding: 18px 20px; overflow-x: auto; line-height: 1.6;
  position: relative;
}
pre .c { color: #8c8474; }
.copy {
  position: absolute; top: 10px; right: 10px; font: 500 12px/1 var(--mono); color: #ece6d8;
  background: #ffffff14; border: 1px solid #ffffff22; border-radius: 6px; padding: 6px 9px; cursor: pointer;
}
.copy:hover { background: #ffffff26; }
.note {
  border-left: 3px solid var(--rec); background: #fbf8f1; padding: 14px 18px; border-radius: 0 10px 10px 0;
  margin: 20px 0; font-size: 15.5px; color: var(--ink-2);
}
.note b { color: var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 18px 0; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; border-bottom: 1.5px solid var(--ink); }
td:first-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* 다운로드 페이지 */
.dl-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center;
  border: 1.5px solid var(--ink); border-radius: 18px; padding: 28px 30px; background: #fbf8f1;
}
.dl-card img { width: 84px; height: 84px; border-radius: 20px; }
.dl-card h2 { margin: 0; font-size: 30px; }
.dl-card .meta { font: 13.5px/1.7 var(--mono); color: var(--ink-3); margin-top: 6px; }
.checksum { font: 12.5px/1.6 var(--mono); color: var(--ink-3); word-break: break-all; margin-top: 18px; }

/* 등장 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .stagger > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .stagger > *:nth-child(2) { animation-delay: .08s; }
.hero .stagger > *:nth-child(3) { animation-delay: .16s; }
.hero .stagger > *:nth-child(4) { animation-delay: .24s; }
.hero .stagger > *:nth-child(5) { animation-delay: .32s; }
.hero .deck { animation: rise 1.1s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 좁은 화면 */
@media (max-width: 960px) {
  .hero-grid, .sec-head { grid-template-columns: minmax(0, 1fr); }
  .deck { transform: none; }
  .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature:not(:nth-child(3n)) { border-right: 0; }
  .feature:not(:nth-child(3n+1)) { padding-left: 0; }
  .feature:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 24px; }
  .feature:nth-child(even) { padding-left: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spec div:nth-child(3) { border-left: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: 12px; padding: 18px; }
  .toc ol { columns: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .features, .steps, .spec { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(n) { border-right: 0; padding: 26px 0; }
  .spec div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .getit { grid-template-columns: minmax(0, 1fr); }
  .dl-card { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
  .ruler span:nth-child(even) { display: none; }
}
